diff --git a/data/sqlite/index/random/10/slt_good_1.slt b/data/sqlite/index/random/10/slt_good_1.slt index 39132ad..6820c54 100644 --- a/data/sqlite/index/random/10/slt_good_1.slt +++ b/data/sqlite/index/random/10/slt_good_1.slt @@ -27121,31 +27121,31 @@ SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - col4 AS col4 FROM tab4 cor0 WHERE # 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 "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\(45\) 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 45 AS col0, COUNT ( * ) - COUNT ( * ) col0 FROM tab0 WHERE 87 < - + col4 # 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 "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\(45\) 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 45 AS col0, COUNT ( * ) - COUNT ( * ) col0 FROM tab1 WHERE 87 < - + col4 # 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 "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\(45\) 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 45 AS col0, COUNT ( * ) - COUNT ( * ) col0 FROM tab2 WHERE 87 < - + col4 # 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 "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\(45\) 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 45 AS col0, COUNT ( * ) - COUNT ( * ) col0 FROM tab3 WHERE 87 < - + col4 # 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 "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\(45\) 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 45 AS col0, COUNT ( * ) - COUNT ( * ) col0 FROM tab4 WHERE 87 < - + col4 # Datafusion - Types were automatically converted from: diff --git a/data/sqlite/index/random/10/slt_good_10.slt b/data/sqlite/index/random/10/slt_good_10.slt index 4211395..5f54970 100644 --- a/data/sqlite/index/random/10/slt_good_10.slt +++ b/data/sqlite/index/random/10/slt_good_10.slt @@ -8211,31 +8211,31 @@ SELECT + 89 FROM tab4 AS cor0 WHERE NULL >= + col4 # Datafusion - Datafusion expected results: # Datafusion - Expected - -59 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) AS col5" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(\-59\) AS col5" at position 0 and "count\(Int64\(1\)\) (AS count\(\*\) )?AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 59 col5, + COUNT ( * ) AS col5 FROM tab0 AS cor0 WHERE 71 / - col0 >= NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -59 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) AS col5" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(\-59\) AS col5" at position 0 and "count\(Int64\(1\)\) (AS count\(\*\) )?AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 59 col5, + COUNT ( * ) AS col5 FROM tab1 AS cor0 WHERE 71 / - col0 >= NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -59 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) AS col5" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(\-59\) AS col5" at position 0 and "count\(Int64\(1\)\) (AS count\(\*\) )?AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 59 col5, + COUNT ( * ) AS col5 FROM tab2 AS cor0 WHERE 71 / - col0 >= NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -59 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) AS col5" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(\-59\) AS col5" at position 0 and "count\(Int64\(1\)\) (AS count\(\*\) )?AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 59 col5, + COUNT ( * ) AS col5 FROM tab3 AS cor0 WHERE 71 / - col0 >= NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -59 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) AS col5" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(\-59\) AS col5" at position 0 and "count\(Int64\(1\)\) (AS count\(\*\) )?AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 59 col5, + COUNT ( * ) AS col5 FROM tab4 AS cor0 WHERE 71 / - col0 >= NULL # Datafusion - Types were automatically converted from: diff --git a/data/sqlite/index/random/10/slt_good_11.slt b/data/sqlite/index/random/10/slt_good_11.slt index 166d6af..06acf51 100644 --- a/data/sqlite/index/random/10/slt_good_11.slt +++ b/data/sqlite/index/random/10/slt_good_11.slt @@ -25669,31 +25669,31 @@ SELECT 79 - + ( + 20 ) * + col3 AS col4 FROM tab4 AS cor0 WHERE col4 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col4" at position 0 and "Int64\(7\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col4" at position 0 and "Int64\(7\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col4, 7 AS col4 FROM tab0 WHERE NOT NULL >= + col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col4" at position 0 and "Int64\(7\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col4" at position 0 and "Int64\(7\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col4, 7 AS col4 FROM tab1 WHERE NOT NULL >= + col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col4" at position 0 and "Int64\(7\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col4" at position 0 and "Int64\(7\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col4, 7 AS col4 FROM tab2 WHERE NOT NULL >= + col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col4" at position 0 and "Int64\(7\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col4" at position 0 and "Int64\(7\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col4, 7 AS col4 FROM tab3 WHERE NOT NULL >= + col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col4" at position 0 and "Int64\(7\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col4" at position 0 and "Int64\(7\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col4, 7 AS col4 FROM tab4 WHERE NOT NULL >= + col1 query I rowsort label-4190 @@ -28644,31 +28644,31 @@ SELECT col4 FROM tab4 AS cor0 WHERE NULL < NULL # 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 "Int64\(\-78\) 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\(\-78\) 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 - 78 AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL # 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 "Int64\(\-78\) 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\(\-78\) 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 - 78 AS col2, COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL # 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 "Int64\(\-78\) 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\(\-78\) 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 - 78 AS col2, COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL # 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 "Int64\(\-78\) 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\(\-78\) 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 - 78 AS col2, COUNT ( * ) AS col2 FROM tab3 AS cor0 WHERE NOT NULL IS NOT NULL # 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 "Int64\(\-78\) 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\(\-78\) 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 - 78 AS col2, COUNT ( * ) AS col2 FROM tab4 AS cor0 WHERE NOT NULL IS NOT NULL # Datafusion - Types were automatically converted from: diff --git a/data/sqlite/index/random/1000/slt_good_6.slt b/data/sqlite/index/random/1000/slt_good_6.slt index f173a99..3a310ea 100644 --- a/data/sqlite/index/random/1000/slt_good_6.slt +++ b/data/sqlite/index/random/1000/slt_good_6.slt @@ -56734,31 +56734,31 @@ SELECT ALL * FROM tab4 cor0 WHERE NOT - col3 = NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) 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\) 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 + 78 AS col0, COUNT ( * ) AS col0 FROM tab0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) 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\) 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 + 78 AS col0, COUNT ( * ) AS col0 FROM tab1 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) 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\) 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 + 78 AS col0, COUNT ( * ) AS col0 FROM tab2 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) 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\) 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 + 78 AS col0, COUNT ( * ) AS col0 FROM tab3 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) 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\) 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 + 78 AS col0, COUNT ( * ) AS col0 FROM tab4 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL # Datafusion - Types were automatically converted from: diff --git a/data/sqlite/index/random/1000/slt_good_7.slt b/data/sqlite/index/random/1000/slt_good_7.slt index 90853aa..32f5545 100644 --- a/data/sqlite/index/random/1000/slt_good_7.slt +++ b/data/sqlite/index/random/1000/slt_good_7.slt @@ -41258,31 +41258,31 @@ SELECT ALL 30 col5 FROM tab4 AS cor0 WHERE NOT col4 * - col3 IS NULL # 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 "\(\- 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\(\*\)\) 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 ( * ) col0, + COUNT ( * ) AS col0 FROM tab0 WHERE NULL = + col1 # 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 "\(\- 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\(\*\)\) 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 ( * ) col0, + COUNT ( * ) AS col0 FROM tab1 WHERE NULL = + col1 # 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 "\(\- 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\(\*\)\) 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 ( * ) col0, + COUNT ( * ) AS col0 FROM tab2 WHERE NULL = + col1 # 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 "\(\- 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\(\*\)\) 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 ( * ) col0, + COUNT ( * ) AS col0 FROM tab3 WHERE NULL = + col1 # 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 "\(\- 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\(\*\)\) 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 ( * ) col0, + COUNT ( * ) AS col0 FROM tab4 WHERE NULL = + col1 # 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..d185a73 100644 --- a/data/sqlite/random/aggregates/slt_good_0.slt +++ b/data/sqlite/random/aggregates/slt_good_0.slt @@ -11801,7 +11801,7 @@ SELECT + + col1 * + ( 68 ) AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 80 -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\(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\(\*\) )?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 + COUNT ( * ) AS col1, 80 AS col1 FROM tab0 AS cor0 query II rowsort label-1946 @@ -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 Int32\) \+ 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 @@ -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 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\. SELECT DISTINCT - COUNT ( DISTINCT + + CAST ( NULL AS INTEGER ) ) AS col0, COUNT ( * ) AS col0 FROM tab2 AS cor0 query II rowsort @@ -36142,7 +36142,7 @@ SELECT + + col2 FROM tab1 WHERE + col2 + - + col1 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -80 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- max\(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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- max\(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 - COUNT ( * ) + + - MAX ( + + col1 ) AS col2, COUNT ( * ) AS col2 FROM tab2 AS cor0 query III rowsort @@ -36434,7 +36434,7 @@ SELECT * FROM tab2 WHERE 81 < col0 # 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\(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\(\*\) )?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 ( * ) + + + ( + COUNT ( * ) ) AS col1, COUNT ( * ) col1 FROM tab1 AS cor0 query III rowsort @@ -37823,7 +37823,7 @@ SELECT + col1 col0, - 58 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -87 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(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 "sum\(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 SUM ( - 29 ) col2, COUNT ( * ) AS col2 FROM tab2 query I rowsort @@ -40584,7 +40584,7 @@ SELECT - 63 * - col1 FROM tab0 AS cor0 # Datafusion - Expected - 70 # Datafusion - Expected - 0 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) 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 "Int64\(70\) 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 ALL 70 AS col2, COUNT ( * ), + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND 25 + col1 query I rowsort label-6703 @@ -41290,7 +41290,7 @@ SELECT DISTINCT + + MIN ( DISTINCT 31 ) + 18 / + 96 AS col2 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 "\(\- 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 "\(\- 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, - COUNT ( * ) AS col2 FROM tab0 AS cor0 query I rowsort label-6816 @@ -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 Int32\)\) 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 @@ -48539,7 +48539,7 @@ SELECT - COUNT ( * ) * + 61 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -83 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(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 "min\(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 ALL MIN ( ALL - 83 ) AS col2, COUNT ( * ) AS col2 FROM tab1 AS cor0 query I rowsort label-8028 @@ -58071,7 +58071,7 @@ SELECT col2 * - 2 AS col2 FROM tab1 AS cor0 # 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 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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 + COUNT ( * ) AS col1, COUNT ( * ) + - + COUNT ( * ) AS col1 FROM tab1 query III rowsort diff --git a/data/sqlite/random/aggregates/slt_good_1.slt b/data/sqlite/random/aggregates/slt_good_1.slt index e538c68..42c041e 100644 --- a/data/sqlite/random/aggregates/slt_good_1.slt +++ b/data/sqlite/random/aggregates/slt_good_1.slt @@ -6319,7 +6319,7 @@ SELECT - 55 * - - SUM ( - 94 ) AS col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - 3 -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\(\*\) AS col0" at position 1 have the 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\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 4 AS col0, COUNT ( * ) AS col0 FROM tab1 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 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\. SELECT ALL + - CAST ( NULL AS INTEGER ) AS col1, + COUNT ( * ) AS col1 FROM tab0 AS cor0 query I rowsort label-1358 @@ -12324,7 +12324,7 @@ SELECT DISTINCT + 87 AS col2 FROM tab0 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 col0" at position 0 and "sum\(tab0\.col2\) \+ 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\) AS col0" at position 0 and "sum\(tab0\.col2\) \+ 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 - 95 AS col0, + ( + SUM ( col2 ) ) + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab0 WHERE NULL <= NULL query I rowsort label-2081 @@ -21640,7 +21640,7 @@ SELECT DISTINCT - COUNT ( * ) col1 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -91 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- cor0\.col0\)\) 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 "min\(\(\- cor0\.col0\)\) 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 MIN ( - + col0 ) col1, COUNT ( * ) AS col1 FROM tab1 AS cor0 query I rowsort label-3671 @@ -22486,7 +22486,7 @@ SELECT DISTINCT col1 * - ( - - col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( + - # 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\(Int64\(1\)\) AS count\(\*\)\) / Int64\(33\) 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\(\*\)\) / Int64\(33\) 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 - COUNT ( * ) / 33 AS col2, COUNT ( * ) AS col2 FROM tab1 AS cor0 query I rowsort @@ -28543,7 +28543,7 @@ SELECT - COUNT ( col2 ) FROM tab0 AS cor0 WHERE NOT NULL >= - col0 # 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\(\*\)\)\) 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\(\*\)\)\) 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 - - COUNT ( * ) AS col2, + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 query III rowsort @@ -31661,7 +31661,7 @@ SELECT DISTINCT - 23 AS col0 FROM tab2 WHERE NOT + + col1 + - col1 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -40 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(DISTINCT Int64\(40\)\)\) 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 "\(\- max\(DISTINCT Int64\(40\)\)\) 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 DISTINCT ( + - MAX ( DISTINCT + 40 ) ) AS col1, + COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab1, tab0 AS cor0 query I rowsort @@ -33874,7 +33874,7 @@ SELECT DISTINCT + 11 - - 12 / - col1 AS col2 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 73 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col1, 73 AS col1 FROM tab0 query III rowsort @@ -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 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\. SELECT + CAST ( NULL AS INTEGER ) + 36 / + - 21 AS col1, + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col1 FROM tab2 query I rowsort label-7172 @@ -44701,7 +44701,7 @@ SELECT col0 * 34 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) 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\(26\) 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 26 AS col1, COUNT ( * ) AS col1 FROM tab0 query I rowsort @@ -46472,7 +46472,7 @@ SELECT DISTINCT + SUM ( ALL col2 ) + - COUNT ( * ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 524345 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \* Int64\(91\) \* \(\- Int64\(\-86\)\) \+ 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\(67\) \* Int64\(91\) \* \(\- Int64\(\-86\)\) \+ 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 DISTINCT 67 * 91 * - - 86 + + + COUNT ( * ) AS col2, + COUNT ( * ) col2 FROM tab2 query II rowsort label-7821 @@ -47288,7 +47288,7 @@ NULL # Datafusion - Expected - 3 # Datafusion - Expected - 1838 # Datafusion - Expected - 7 -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\(7\) 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 0 and "Int64\(7\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col0, COUNT ( * ) * - COUNT ( * ) * - + SUM ( + col1 ) - - 83 AS col2, 7 AS col0 FROM tab2 query II rowsort @@ -48654,7 +48654,7 @@ SELECT COUNT ( * ) FROM tab0, tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 227 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "sum\(tab1\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, SUM ( col0 ) AS col1 FROM tab1 query I rowsort label-8186 @@ -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 Int32\) 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 @@ -54382,7 +54382,7 @@ SELECT col1 * - + col2 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 "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\(\*\) )?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 ( * ) AS col1, COUNT ( * ) AS col1 FROM tab0 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_10.slt b/data/sqlite/random/aggregates/slt_good_10.slt index 3424f71..2333efe 100644 --- a/data/sqlite/random/aggregates/slt_good_10.slt +++ b/data/sqlite/random/aggregates/slt_good_10.slt @@ -846,7 +846,7 @@ SELECT ALL col1 AS col2, + 45 + col2 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\(\*\)\) 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\(\*\)\) 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 ( * ) AS col0, COUNT ( * ) AS col0 FROM tab2 AS cor0 query I rowsort @@ -1115,7 +1115,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 16 -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\(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\(\*\) )?AS col2" at position 0 and "Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, + 16 AS col2 FROM tab1 AS cor0 query I rowsort @@ -3593,7 +3593,7 @@ SELECT ALL + col1 * + - 20 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -50 -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\(\-47\) \+ \(\- 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\(\-47\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) col2, - 47 + - COUNT ( * ) AS col2 FROM tab0 AS cor0 # Datafusion - Types were automatically converted from: @@ -13956,7 +13956,7 @@ SELECT * FROM tab1 cor0 WHERE NOT ( NOT + - 84 * - - 36 - - + col1 > + - col1 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 288 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- count\(DISTINCT 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\(96\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "\(\- count\(DISTINCT Int64\(23\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 96 * + COUNT ( * ) AS col0, - COUNT ( DISTINCT 23 ) AS col0 FROM tab0 AS cor0 query I rowsort label-2284 @@ -22254,7 +22254,7 @@ SELECT col0 + col0 + + 58 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 61 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + ( COUNT ( * ) ) AS col1, 61 AS col1 FROM tab1 AS cor0 query I rowsort @@ -22613,7 +22613,7 @@ SELECT - COUNT ( * ) / - 61 FROM tab2 cor0 # 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 "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 "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 COUNT ( * ) col0, + 15 AS col0 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL query I rowsort label-3708 @@ -26365,7 +26365,7 @@ SELECT col1 AS col0 FROM tab2 AS cor0 WHERE NOT 39 NOT BETWEEN - 67 AND 48 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) 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\(2\) 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 2 col1, COUNT ( * ) AS col1 FROM tab1 query I rowsort @@ -38620,7 +38620,7 @@ SELECT SUM ( - - 75 ) col0 FROM tab1 AS cor0 # 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 "count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col2, 54 AS col2 FROM tab2 AS cor0 query II 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 Int32\)\) 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 @@ -40759,7 +40759,7 @@ SELECT col0 / + - col1 AS col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -32 # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-32\) AS col2" at position 0 and "Int64\(\-28\) \- 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\(\-32\) AS col2" at position 0 and "Int64\(\-28\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 32 AS col2, - 28 - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE 62 IS NOT NULL query I rowsort @@ -43750,7 +43750,7 @@ SELECT - 98 * + col0 + - 87 * col2 * - col0 AS col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) \+ Int64\(48\) 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\(22\) \+ Int64\(48\) 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 22 + + + 48 col1, + COUNT ( * ) AS col1 FROM tab1 query I rowsort label-7142 @@ -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 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\. SELECT DISTINCT 92 + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1, COUNT ( * ) AS col1 FROM tab2 AS cor0 query I rowsort @@ -54550,7 +54550,7 @@ SELECT * FROM tab1 WHERE NOT + 51 * - col1 + - col1 NOT BETWEEN ( CAST ( NULL AS # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 61 -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 "sum\(DISTINCT 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\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "sum\(DISTINCT Int64\(61\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) AS col2, SUM ( DISTINCT + + 61 ) AS col2 FROM tab0 query I rowsort label-8938 @@ -56172,7 +56172,7 @@ SELECT DISTINCT - ( COUNT ( DISTINCT + + col1 ) ) AS col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -91 -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\(\(\- 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\(\*\) )?AS col1" at position 0 and "min\(\(\- cor0\.col0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) col1, MIN ( ALL - + col0 ) AS col1 FROM tab1 AS cor0 query I rowsort label-9195 @@ -56183,7 +56183,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 58 -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\) AS col0" at position 1 have the same name\. Consider aliasing \("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\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col0, 58 AS col0 FROM tab2 AS cor0 query I rowsort @@ -59518,7 +59518,7 @@ SELECT ALL * FROM tab1 WHERE NOT - + ( col2 ) > col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # 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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 COUNT ( * ) AS col0, 67 AS col0 FROM tab0 AS cor0 WHERE NOT NULL = NULL query III rowsort diff --git a/data/sqlite/random/aggregates/slt_good_100.slt b/data/sqlite/random/aggregates/slt_good_100.slt index 03343e5..5b8042e 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 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\. SELECT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1, - ( + - COUNT ( * ) ) * + 99 - + COUNT ( * ) AS col1 FROM tab1 cor0 query I rowsort @@ -7826,7 +7826,7 @@ SELECT - 84 * + 67 col2 FROM tab0 # 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\(\*\) \* 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 "count\(Int64\(1\)\) AS count\(\*\) \* 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 + COUNT ( * ) * + + COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab1 query I rowsort @@ -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 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\. SELECT + CAST ( COUNT ( * ) AS INTEGER ) AS col2, MIN ( col2 ) AS col2 FROM tab0 AS cor0 query I rowsort @@ -27827,7 +27827,7 @@ SELECT DISTINCT - col1 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) 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\(\-2\) 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 - 2 col1, COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE ( NULL IS NULL ) query I rowsort label-4588 @@ -52417,7 +52417,7 @@ SELECT ALL * FROM tab2 AS cor0 WHERE - col0 NOT BETWEEN - + col0 AND col2 # 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 "Int64\(\-6\) 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\(\-6\) 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 + - 6 AS col1, + COUNT ( * ) AS col1 FROM tab2 AS cor0 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_101.slt b/data/sqlite/random/aggregates/slt_good_101.slt index 4bf615e..8e60aa7 100644 --- a/data/sqlite/random/aggregates/slt_good_101.slt +++ b/data/sqlite/random/aggregates/slt_good_101.slt @@ -3761,7 +3761,7 @@ SELECT DISTINCT + col2 * - col2 AS col1, col0 AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # 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 "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\(\*\) )?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 COUNT ( * ) AS col2, 14 AS col2 FROM tab2 # Datafusion - Types were automatically converted from: @@ -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 Int32\) \* 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 @@ -11844,7 +11844,7 @@ SELECT 44 FROM tab2 WHERE - + 6 = - col0 # Datafusion - Expected - 3 # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col1, COUNT ( * ) AS col1, COUNT ( * ) AS col0 FROM tab2 query I rowsort label-1931 @@ -14800,7 +14800,7 @@ SELECT + + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE ( col2 IS NOT NULL ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -13110 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(95\)\) \* \(\- Int64\(\-46\)\) 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\(95\)\) \* \(\- Int64\(\-46\)\) 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 ( * ) * - + 95 * - - 46 AS col1, COUNT ( * ) AS col1 FROM tab1 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 Int32\) \* 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 @@ -18160,7 +18160,7 @@ SELECT - col1 * col1 * + col0 AS col1 FROM tab1 # 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\(\-58\) / 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 "Int64\(\-58\) / 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 - 58 / - 43 col1, + COUNT ( * ) col1 FROM tab1 query I rowsort @@ -18852,7 +18852,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 44 -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\(55\) \+ \(\- 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\(\*\) )?AS col2" at position 0 and "Int64\(55\) \+ \(\- Int64\(11\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, 55 + ( - + 11 ) AS col2 FROM tab2 query II rowsort label-3089 @@ -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 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\. SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 59 AS col0, COUNT ( * ) AS col0 FROM tab1 AS cor0 query I rowsort label-3440 @@ -21994,7 +21994,7 @@ SELECT ALL col0 AS col0 FROM tab1 WHERE - - col1 IS NOT NULL # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, COUNT ( * ) col2 FROM tab2 query I rowsort label-3606 @@ -22408,7 +22408,7 @@ SELECT DISTINCT MAX ( - - col1 ) AS col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - 3 -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\(\*\) AS col0" at position 1 have the 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\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 95 AS col0, + COUNT ( * ) AS col0 FROM tab1 query II rowsort label-3673 @@ -32539,7 +32539,7 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL > - col0 * + 24 * + col0 * + - ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) \* count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(1\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 1 * COUNT ( * ) AS col0, 37 AS col0 FROM tab1 AS cor0 query I rowsort label-5339 @@ -33732,7 +33732,7 @@ SELECT + COUNT ( * ) + - + MIN ( col1 ) + - 14 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -16 -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\(\-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\(\*\) )?AS col2" at position 0 and "Int64\(\-16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( + + COUNT ( * ) ) AS col2, - 16 AS col2 FROM tab1 query I rowsort @@ -38844,7 +38844,7 @@ SELECT DISTINCT - 2 + SUM ( col2 ) AS col1 FROM tab2 AS cor0 # 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 "count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 COUNT ( * ) AS col0, 35 col0 FROM tab1 AS cor0 query I rowsort @@ -52337,7 +52337,7 @@ SELECT DISTINCT col0, + 30 col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -156 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "\(\- sum\(tab0\.col2\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col0, - SUM ( + col2 ) AS col0 FROM tab0 query I rowsort label-8572 diff --git a/data/sqlite/random/aggregates/slt_good_102.slt b/data/sqlite/random/aggregates/slt_good_102.slt index 849f564..bc4822a 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 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\. SELECT ALL + COUNT ( - 16 ) + - + CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) AS col0 FROM tab0 AS cor0 query II rowsort label-437 @@ -6099,7 +6099,7 @@ SELECT + CAST ( 9 AS INTEGER ) / - col2 FROM tab0 # 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 "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) col2, - COUNT ( * ) AS col2 FROM tab1 AS cor0 query I rowsort @@ -13618,7 +13618,7 @@ SELECT * FROM tab0 AS cor0 WHERE NOT - ( 6 ) <= - - 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - -216 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(93\) \+ 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\(72\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(93\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 72 * - COUNT ( * ) AS col2, - COUNT ( * ) + + 93 + COUNT ( * ) AS col2 FROM tab2 AS cor0 query I rowsort @@ -18280,7 +18280,7 @@ SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) 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\(41\) 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 + 41 AS col0, COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL query I rowsort label-2976 @@ -23253,7 +23253,7 @@ SELECT + - col0 col1 FROM tab0 WHERE col2 IS NOT NULL # 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 "Int64\(6\) 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\(6\) 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 6 AS col2, + COUNT ( * ) AS col2 FROM tab0 query III rowsort @@ -23916,7 +23916,7 @@ SELECT 38 + - col0 + - - 82 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\(\*\)\) 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\(\*\)\) 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 ( * ) AS col1, COUNT ( * ) AS col1 FROM tab2 AS cor0 query III rowsort @@ -26139,7 +26139,7 @@ NULL # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) col2, COUNT ( * ) AS col2 FROM tab0 query I rowsort @@ -35224,7 +35224,7 @@ SELECT ( ( - COUNT ( * ) ) ) / + - 8 FROM tab0 # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) col1, COUNT ( * ) AS col1 FROM tab1 query I rowsort @@ -36635,7 +36635,7 @@ SELECT + col0 AS col1 FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN ( - col2 * + # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - -31 -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 "\(\- min\(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\(\*\) )?AS col2" at position 0 and "\(\- min\(Int64\(31\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col2, - MIN ( ALL + 31 ) col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 query I rowsort @@ -40872,7 +40872,7 @@ SELECT + 67 AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \* count\(Int64\(1\)\) AS count\(\*\) 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\(21\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 21 * + COUNT ( * ) AS col1, 69 AS col1 FROM tab2 cor0 query I rowsort label-6690 @@ -41428,7 +41428,7 @@ SELECT + col1 / + 63 * + + 7 FROM tab1 WHERE + + col1 BETWEEN 44 * col2 AND 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 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\(68\) 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 68 AS col0, COUNT ( * ) AS col0 FROM tab2 query I rowsort label-6782 @@ -54991,7 +54991,7 @@ SELECT DISTINCT 36 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 199 -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 "sum\(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 "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "sum\(DISTINCT tab0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) * COUNT ( * ) AS col1, + SUM ( DISTINCT col0 ) AS col1 FROM tab0 query I rowsort label-9009 @@ -60698,7 +60698,7 @@ SELECT ALL - col2 * - 40 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -90 # Datafusion - Expected - 3 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 90 AS col1, COUNT ( * ) AS col1 FROM tab2 AS cor0 query I rowsort label-9959 diff --git a/data/sqlite/random/aggregates/slt_good_103.slt b/data/sqlite/random/aggregates/slt_good_103.slt index b7be320..4816a1b 100644 --- a/data/sqlite/random/aggregates/slt_good_103.slt +++ b/data/sqlite/random/aggregates/slt_good_103.slt @@ -16327,7 +16327,7 @@ SELECT 14 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 # 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\(tab0\.col0\) \+ \(\- 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\(tab0\.col0\) \+ \(\- 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 + ( + COUNT ( + col0 ) ) + + ( + ( - COUNT ( * ) ) ) AS col1, + COUNT ( * ) AS col1 FROM tab0 query I rowsort @@ -33089,7 +33089,7 @@ SELECT DISTINCT COUNT ( - + 61 ) - - 20 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1320 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) \* Int64\(33\) AS col0" at position 0 and "Int64\(70\) \+ 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\(40\) \* Int64\(33\) AS col0" at position 0 and "Int64\(70\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 40 * 33 col0, + 70 + + COUNT ( * ) AS col0 FROM tab0, tab1 AS cor0 query II rowsort label-5439 @@ -42474,7 +42474,7 @@ SELECT + COUNT ( * ) + + 76 col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) 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\(85\) 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 + 85 AS col2, COUNT ( * ) AS col2 FROM tab1 AS cor0 query I rowsort label-7002 @@ -43824,7 +43824,7 @@ SELECT 92 - - - col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -58 -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\(\-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\(Int64\(1\)\) (AS count\(\*\) )?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 ( * ) AS col1, - 58 AS col1 FROM tab2 AS cor0 WHERE + col1 + 12 = NULL query I rowsort @@ -53625,7 +53625,7 @@ NULL # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, + COUNT ( * ) AS col2 FROM tab0 query II rowsort label-8830 @@ -60238,7 +60238,7 @@ SELECT ALL col0 * - + ( + col2 ) * + col1 col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 910 -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\(35\) \* 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 "Int64\(35\) \* Int64\(26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col0, 35 * + 26 col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1 query I rowsort label-9937 diff --git a/data/sqlite/random/aggregates/slt_good_104.slt b/data/sqlite/random/aggregates/slt_good_104.slt index c99b8b4..57d37a0 100644 --- a/data/sqlite/random/aggregates/slt_good_104.slt +++ b/data/sqlite/random/aggregates/slt_good_104.slt @@ -11167,7 +11167,7 @@ SELECT DISTINCT * FROM tab2 WHERE 64 + - - 12 + - + col2 = + 46 * - + col0 * - + # Datafusion - Datafusion expected results: # Datafusion - Expected - -37 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-37\) 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\(\-37\) 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 - 37 AS col0, + COUNT ( * ) AS col0 FROM tab1 query I rowsort label-1838 @@ -37108,7 +37108,7 @@ SELECT DISTINCT * FROM tab2 WHERE NOT - 92 + + + col0 * + 91 * + col0 + col1 IS # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 44 -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\(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\(\*\) )?AS col2" at position 0 and "Int64\(44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col2, 44 AS col2 FROM tab1 query I rowsort label-6109 @@ -41491,7 +41491,7 @@ SELECT - col1 AS col0 FROM tab2 AS cor0 WHERE + col2 > + 81 + - 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 4788 -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\(63\) \* 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(63\) \* Int64\(76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COUNT ( * ) AS col2, 63 * 76 AS col2 FROM tab1 AS cor0 WHERE - 46 IS NOT NULL query I rowsort label-6841 @@ -47486,7 +47486,7 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL < 53 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 195 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "sum\(tab2\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col0, SUM ( ALL + col1 ) col0 FROM tab2 query III rowsort @@ -58664,7 +58664,7 @@ SELECT DISTINCT - - 53 * - 93 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\(cor0\.col0\) 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\(cor0\.col0\) 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 COUNT ( + col0 ) AS col2, + COUNT ( * ) AS col2 FROM tab2 AS cor0 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..c99ed74 100644 --- a/data/sqlite/random/aggregates/slt_good_105.slt +++ b/data/sqlite/random/aggregates/slt_good_105.slt @@ -817,7 +817,7 @@ SELECT SUM ( 57 ) AS col1 FROM tab0 AS cor0 WHERE - col0 < + 40 # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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\(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 13 AS col2, COUNT ( * ) col2 FROM tab2 AS cor0 query I rowsort @@ -5375,7 +5375,7 @@ SELECT 84 FROM tab1 AS cor0 WHERE ( NOT ( NULL > ( + col2 * + col1 * 29 * - col0 # 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 "Int64\(56\) 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\(56\) 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 + + 56 AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0 query I rowsort @@ -19180,7 +19180,7 @@ SELECT ALL - + 41 AS col0 FROM tab0 AS cor0 # 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 "Int64\(26\) \* count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(26\) \* count\(Int64\(1\)\) (AS count\(\*\) )?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 + 26 * + + COUNT ( * ) AS col0, 22 AS col0 FROM tab1 AS cor0 query III rowsort label-3120 @@ -26065,7 +26065,7 @@ NULL # 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 "max\(cor0\.col0\) AS col1" at position 0 and "Int64\(4\) \+ 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\(cor0\.col0\) AS col1" at position 0 and "Int64\(4\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + MAX ( ALL col0 ) AS col1, 4 + + COUNT ( * ) col1 FROM tab2 AS cor0 WHERE col2 BETWEEN NULL AND + col2 query I rowsort label-4280 @@ -26824,7 +26824,7 @@ SELECT ALL CAST ( 10 AS INTEGER ) AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 103 # Datafusion - Expected - 225 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- sum\(DISTINCT \(\- \(\- cor0\.col1\)\)\)\)\) AS col0" at position 0 and "max\(DISTINCT 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 "\(\- \(\- sum\(DISTINCT \(\- \(\- cor0\.col1\)\)\)\)\) AS col0" at position 0 and "max\(DISTINCT Int64\(75\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - SUM ( DISTINCT - - col1 ) AS col0, MAX ( DISTINCT + 75 ) * + COUNT ( * ) AS col0 FROM tab0 AS cor0 query I rowsort label-4399 @@ -30001,7 +30001,7 @@ SELECT ALL - 93 + 22 + + 92 FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 32 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 COUNT ( * ) AS col1, 32 AS col1 FROM tab2 AS cor0 query I rowsort label-4922 @@ -33625,7 +33625,7 @@ SELECT DISTINCT + SUM ( DISTINCT - 18 ) AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -3293 -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\(37\) \* 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(37\) \* Int64\(\-89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, + 37 * - 89 AS col2 FROM tab2 AS cor0 query I rowsort @@ -36819,7 +36819,7 @@ SELECT ( 55 ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1 # 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 col2" at position 0 and "\(\- avg\(Int64\(61\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "\(\- avg\(Int64\(61\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Float64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, - AVG ( + + 61 ) * COUNT ( * ) + CAST ( NULL AS FLOAT8 ) AS col2 FROM tab0, tab2 cor0 query I rowsort label-6032 @@ -39506,7 +39506,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -4615 -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\(\-61\) \+ Int64\(\-33\) \* \(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(\-61\) \+ Int64\(\-33\) \* \(\- Int64\(46\)\) \* \(\- 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, - 61 + - 33 * - + ( + 46 ) * + - COUNT ( * ) AS col0 FROM tab0 AS cor0 query I rowsort @@ -50218,7 +50218,7 @@ SELECT ALL - 56 + col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -57 # Datafusion - Expected - 3 -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\(\*\) AS col2" at position 1 have the 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\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 57 AS col2, COUNT ( * ) 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..61513d5 100644 --- a/data/sqlite/random/aggregates/slt_good_106.slt +++ b/data/sqlite/random/aggregates/slt_good_106.slt @@ -1912,7 +1912,7 @@ SELECT ALL ( - - 68 ) 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 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\(\*\) )?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 ( * ) AS col0, + COUNT ( * ) AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: @@ -4168,7 +4168,7 @@ SELECT 17 * - - 40 AS col0 FROM tab0 # 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 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\(\*\) )?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 ( * ) AS col0, + COUNT ( * ) AS col0 FROM tab0 query I rowsort label-676 @@ -29030,7 +29030,7 @@ SELECT + - 40 col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -51 -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 "\(\- min\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "\(\- min\(cor0\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, - MIN ( + + col0 ) AS col2 FROM tab1 AS cor0 query III rowsort @@ -37572,7 +37572,7 @@ SELECT ALL + + COUNT ( * ), ( - - ( + COUNT ( * ) ) ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -51 -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\(\(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "max\(\(\- cor0\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, MAX ( - col0 ) col2 FROM tab1 AS cor0 query I rowsort label-6187 @@ -53242,7 +53242,7 @@ SELECT DISTINCT - col0, + 62 FROM tab2 AS cor0 WHERE NOT NULL IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 99 -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\(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 "Int64\(99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col0, 99 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL query III rowsort diff --git a/data/sqlite/random/aggregates/slt_good_107.slt b/data/sqlite/random/aggregates/slt_good_107.slt index 15b92ca..35d4280 100644 --- a/data/sqlite/random/aggregates/slt_good_107.slt +++ b/data/sqlite/random/aggregates/slt_good_107.slt @@ -4379,7 +4379,7 @@ SELECT * FROM tab0 cor0 WHERE NOT ( + col2 ) - 65 + - col2 * + 74 IS NOT NULL # 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\(\(\- 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 "count\(\(\- 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 + COUNT ( - col2 ) AS col0, COUNT ( * ) AS col0 FROM tab1 AS cor0 query I rowsort label-722 @@ -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 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\. 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 Int32\) \* 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 @@ -8210,7 +8210,7 @@ SELECT + COUNT ( * ) + 49 AS col1 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\(\*\) 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\(\*\) )?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 ( * ) col2, + COUNT ( * ) AS col2 FROM tab0 AS cor0 query I rowsort label-1367 @@ -15905,7 +15905,7 @@ SELECT - col2 AS col2 FROM tab1 AS cor0 WHERE + col2 + col0 = + 94 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) 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\(8\) 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 8 AS col0, COUNT ( * ) AS col0 FROM tab2 AS cor0 query I rowsort @@ -22303,7 +22303,7 @@ SELECT ALL * FROM tab1 cor0 WHERE NOT + 11 * - col0 IS NULL # 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 "Int64\(56\) 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\(56\) 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 56 AS col1, COUNT ( * ) AS col1 FROM tab1 AS cor0 query I rowsort label-3718 @@ -28160,7 +28160,7 @@ SELECT DISTINCT - col0 * 5 col0, 50 * 86 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 34680 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) \* max\(DISTINCT Int64\(17\)\) \* Int64\(\-30\) 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\(\-68\) \* max\(DISTINCT Int64\(17\)\) \* Int64\(\-30\) 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 - 68 * MAX ( DISTINCT + 17 ) * - 30 AS col2, COUNT ( * ) col2 FROM tab0 query I rowsort label-4697 @@ -33519,7 +33519,7 @@ SELECT DISTINCT * FROM tab0 WHERE ( NULL ) NOT BETWEEN + col0 AND NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 92 -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\(93\) \+ max\(\(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(93\) \+ max\(\(\- tab0\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, 93 + MAX ( + - ( col1 ) ) AS col1 FROM tab0 query I rowsort @@ -44485,7 +44485,7 @@ NULL # 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 "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\(15\) 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 + 15 AS col2, COUNT ( * ) AS col2 FROM tab1 query II rowsort @@ -46907,7 +46907,7 @@ SELECT ALL - col1 FROM tab0 AS cor0 WHERE NOT NULL <= - 0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 53 -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\(\*\)\) \+ 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col1, - COUNT ( * ) + 56 AS col1 FROM tab1 AS cor0 query I rowsort label-7819 @@ -50700,7 +50700,7 @@ SELECT ALL * FROM tab1 WHERE NOT col2 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col0" at position 0 and "Int64\(41\) \- 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\(41\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 98 AS col0, + 41 - + + COUNT ( * ) col0 FROM tab0 query I rowsort label-8446 @@ -53041,7 +53041,7 @@ SELECT 92 AS col2, 92 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 47 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(47\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, 47 AS col2 FROM tab2 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_108.slt b/data/sqlite/random/aggregates/slt_good_108.slt index da3ba37..7e59304 100644 --- a/data/sqlite/random/aggregates/slt_good_108.slt +++ b/data/sqlite/random/aggregates/slt_good_108.slt @@ -1144,7 +1144,7 @@ SELECT 15 / - - col2 + - col0 AS col1 FROM tab1 # 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\(\*\) \* \(\- 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 "count\(Int64\(1\)\) AS count\(\*\) \* \(\- 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 DISTINCT COUNT ( * ) * - COUNT ( * ) AS col2, + COUNT ( * ) AS col2 FROM tab2 query I rowsort @@ -7208,7 +7208,7 @@ SELECT * FROM tab0 AS cor0 WHERE col1 * - col1 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -20 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-23\) 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\(\*\) \+ Int64\(\-23\) 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 + COUNT ( * ) + - 23 AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0 query I rowsort label-1184 @@ -9260,7 +9260,7 @@ SELECT 46 + COUNT ( * ) FROM tab2 AS cor0 WHERE + col1 IS NOT NULL # 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 "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-14\) \* \(\- 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\(\*\) )?AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-14\) \* \(\- 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 ( * ) AS col0, - COUNT ( * ) + - 14 * - COUNT ( * ) - - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL query III rowsort @@ -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 Int32\) 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 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\. SELECT DISTINCT CAST ( NULL AS INTEGER ) col2, COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL query III rowsort @@ -30460,7 +30460,7 @@ SELECT + col2 + - 44 AS col0, - 4 AS col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \+ count\(Int64\(1\)\) AS count\(\*\) 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\(87\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 87 + COUNT ( * ) AS col2, + 75 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL query I rowsort @@ -32219,7 +32219,7 @@ SELECT DISTINCT col2 / - CAST ( + + col1 AS INTEGER ) col0 FROM tab1 # 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 "Int64\(23\) 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\(23\) 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 23 AS col0, + COUNT ( * ) AS col0 FROM tab0 query I rowsort @@ -36707,7 +36707,7 @@ SELECT ALL * FROM tab2 WHERE NOT 2 BETWEEN col2 * - 70 AND - + col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 50 -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\(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\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col2, 50 AS col2 FROM tab1 query I rowsort @@ -43406,7 +43406,7 @@ SELECT ALL + col2 + + + col2 * - 56 AS col1 FROM tab2 AS cor0 # 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 "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\(\-31\) 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 - 31 AS col0, COUNT ( * ) AS col0 FROM tab1 AS cor0 query I rowsort label-7130 @@ -51207,7 +51207,7 @@ SELECT - 91 * - + 45 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\(DISTINCT tab2\.col1\)\)\) 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 tab2\.col1\)\)\) 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 + col1 ) ) AS col1, COUNT ( * ) AS col1 FROM tab2 query III rowsort diff --git a/data/sqlite/random/aggregates/slt_good_109.slt b/data/sqlite/random/aggregates/slt_good_109.slt index 5ddebce..f9ffb7e 100644 --- a/data/sqlite/random/aggregates/slt_good_109.slt +++ b/data/sqlite/random/aggregates/slt_good_109.slt @@ -7506,7 +7506,7 @@ SELECT + - col0, col0 * + col0 AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(tab0\.col2\) 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 "min\(tab0\.col2\) 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 MIN ( + col2 ) AS col2, COUNT ( * ) AS col2 FROM tab0 query I rowsort label-1243 @@ -17384,7 +17384,7 @@ SELECT ALL 76 AS col1, 95 + 23 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\(\(\- 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 "count\(\(\- 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 + COUNT ( - col1 ) AS col2, COUNT ( * ) col2 FROM tab0 AS cor0 query III rowsort @@ -34048,7 +34048,7 @@ SELECT 12 AS col2, SUM ( DISTINCT + + col1 ) AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 44 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(41\) \+ 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, 41 + COUNT ( * ) col2 FROM tab2 AS cor0 WHERE + 0 IS NOT NULL query I rowsort label-5634 @@ -40147,7 +40147,7 @@ SELECT + col1 / + + 78 * 25 AS col2 FROM tab2 # 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\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 COUNT ( * ) AS col1, - 85 AS col1 FROM tab1 query II rowsort @@ -42344,7 +42344,7 @@ SELECT ALL 3 col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 8 - - + col0 AND NULL # 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 "count\(Int64\(1\)\) AS count\(\*\) 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\(\*\) )?AS col0" at position 0 and "Int64\(\-60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COUNT ( * ) AS col0, - 60 AS col0 FROM tab2 cor0 query III rowsort @@ -50099,7 +50099,7 @@ SELECT ALL - COUNT ( * ) * + MIN ( + 20 ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -507 # Datafusion - Expected - -11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* min\(DISTINCT Int64\(56\)\) \* count\(Int64\(1\)\) AS count\(\*\) \- count\(Int64\(1\)\) AS count\(\*\) 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* min\(DISTINCT Int64\(56\)\) \* count\(Int64\(1\)\) AS count\(\*\) \- count\(Int64\(1\)\) (AS count\(\*\) )?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 DISTINCT - COUNT ( * ) * MIN ( DISTINCT 56 ) * COUNT ( * ) - COUNT ( * ) AS col1, - 35 / + COUNT ( * ) AS col1 FROM tab0 query I rowsort @@ -54339,7 +54339,7 @@ SELECT ALL + CAST ( ( - col1 ) AS INTEGER ) * - col0 col0 FROM tab2 AS cor0 # 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 "Int64\(21\) 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\) 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 21 AS col2, COUNT ( * ) col2 FROM tab0 AS cor0 query III rowsort diff --git a/data/sqlite/random/aggregates/slt_good_11.slt b/data/sqlite/random/aggregates/slt_good_11.slt index 4d8cfe6..80cb6ac 100644 --- a/data/sqlite/random/aggregates/slt_good_11.slt +++ b/data/sqlite/random/aggregates/slt_good_11.slt @@ -1123,7 +1123,7 @@ SELECT ALL 86, - col0 AS col2 FROM tab1 AS cor0 # 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 "count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 COUNT ( * ) AS col0, 88 AS col0 FROM tab0 AS cor0 query I rowsort @@ -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 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\. SELECT - CAST ( + COUNT ( * ) AS INTEGER ) AS col1, + COUNT ( * ) AS col1 FROM tab0 cor0 query II rowsort @@ -5152,7 +5152,7 @@ SELECT DISTINCT ( - SUM ( DISTINCT + col1 ) ) AS col0 FROM tab0 AS cor0 # 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 "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\(\-11\) 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 - 11 AS col0, COUNT ( * ) AS col0 FROM tab0 query I 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 Int32\) \+ \(\- \(\- 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 @@ -16875,7 +16875,7 @@ SELECT + + ( 15 ) AS col0 FROM tab2 cor0 # 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 "Int64\(67\) 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\(67\) 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 67 AS col2, + COUNT ( * ) AS col2 FROM tab2 AS cor0 query I rowsort @@ -18613,7 +18613,7 @@ SELECT ALL - 49 * + 84 FROM tab1 WHERE NOT - col1 NOT IN ( - col2 ) # 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 "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\(tab1\.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 DISTINCT - COUNT ( ALL + col1 ) col2, + COUNT ( * ) col2 FROM tab1 query III rowsort @@ -19698,7 +19698,7 @@ SELECT ALL - + col0 / - + col0 AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) AS col1" at position 0 and "Int64\(\-31\) \+ 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\) AS col1" at position 0 and "Int64\(\-31\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 61 AS col1, - 31 + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT - col1 <= NULL 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 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\. SELECT ALL + CAST ( NULL AS INTEGER ) * 35 + + COUNT ( * ) AS col1, + CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 cor0 query I rowsort @@ -24817,7 +24817,7 @@ SELECT - - 21 * ( COUNT ( * ) ) * COUNT ( * ) AS col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-91\)\) 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\(\-91\)\) 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 - - 91 AS col0, COUNT ( * ) AS col0 FROM tab0 cor0 query I rowsort label-4067 @@ -33002,7 +33002,7 @@ SELECT ALL * FROM tab1 WHERE NULL <= - - col0 # 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 "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, - COUNT ( * ) col2 FROM tab1 cor0 query III rowsort @@ -33108,7 +33108,7 @@ SELECT ALL + 49 AS col0, + col2 AS col0 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\(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\(\*\) )?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 ( * ) AS col1, COUNT ( * ) AS col1 FROM tab2 query III 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 Int32\)\) \+ 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 @@ -35609,7 +35609,7 @@ SELECT ALL + 99 * - SUM ( col0 ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) 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\(45\) 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 + 45 AS col1, COUNT ( * ) AS col1 FROM tab1 query III rowsort @@ -41154,7 +41154,7 @@ SELECT ALL + + ( - ( - col0 ) ) AS col2 FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -291 # Datafusion - Expected - 112 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(79\) \+ 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\(\-97\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(79\) \+ Int64\(33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 97 * + COUNT ( * ) AS col1, 79 + + 33 AS col1 FROM tab1 query III rowsort @@ -48036,7 +48036,7 @@ SELECT * FROM tab0 AS cor0 WHERE + col0 < col2 / - 6 + + - col1 + + 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - -2703406 -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\(DISTINCT cor0\.col0\) \* Int64\(\-13\) \* Int64\(11\) \* Int64\(95\) \- count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(37\) / 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 "sum\(DISTINCT cor0\.col0\) \* Int64\(\-13\) \* Int64\(11\) \* Int64\(95\) \- count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(37\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) col1, + SUM ( DISTINCT col0 ) * - 13 * 11 * + + 95 - + COUNT ( * ) + + 37 / + ( + COUNT ( * ) ) AS col1 FROM tab0 cor0 query II rowsort @@ -48358,7 +48358,7 @@ NULL # 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 "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( COUNT ( * ) ) col1, ( - COUNT ( * ) ) AS col1 FROM tab0 query I rowsort @@ -48995,7 +48995,7 @@ SELECT col0 FROM tab2 WHERE ( + + 46 ) NOT BETWEEN 76 + col0 / - 9 AND NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -49 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) 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\(\-49\) 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 - 49 AS col1, COUNT ( * ) AS col1 FROM tab1 query I rowsort @@ -55583,7 +55583,7 @@ SELECT - 35 * COUNT ( * ) * 73 AS col0 FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -25 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "min\(Int64\(\-25\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col1, MIN ( + - 25 ) AS col1 FROM tab0 # Datafusion - Datafusion expected results: diff --git a/data/sqlite/random/aggregates/slt_good_110.slt b/data/sqlite/random/aggregates/slt_good_110.slt index a372a18..9f0d13d 100644 --- a/data/sqlite/random/aggregates/slt_good_110.slt +++ b/data/sqlite/random/aggregates/slt_good_110.slt @@ -65,7 +65,7 @@ SELECT * FROM tab1 WHERE - col0 * - + col1 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \+ Int64\(\-90\) 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\) \+ Int64\(\-90\) 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 92 + - 90 AS col1, + ( + COUNT ( * ) ) AS col1 FROM tab1 query I rowsort @@ -665,7 +665,7 @@ SELECT ALL col0 + - 19 AS col1 FROM tab1 # 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 \(\- tab0\.col0\)\) \+ \(\- 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 "count\(DISTINCT \(\- tab0\.col0\)\) \+ \(\- 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 DISTINCT + COUNT ( DISTINCT + - col0 ) + - COUNT ( * ) AS col2, COUNT ( * ) col2 FROM tab0 query IIIIII rowsort @@ -7839,7 +7839,7 @@ SELECT ALL SUM ( ALL - + 98 ) AS col2 FROM tab0 AS cor0 # 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\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 + COUNT ( * ) AS col2, 85 AS col2 FROM tab2 cor0 query III rowsort @@ -8065,7 +8065,7 @@ SELECT - COUNT ( * ) / + 25 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 41 -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\(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 "Int64\(41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col1, + 41 AS col1 FROM tab1 cor0 query II rowsort @@ -16180,7 +16180,7 @@ SELECT ALL + 33 + - + ( + col1 ) 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\(\*\)\) 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\(\*\)\) 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 ( * ) AS col1, COUNT ( * ) AS col1 FROM tab2, tab0 AS cor0 query I rowsort @@ -20523,7 +20523,7 @@ SELECT + - ( + 61 ) FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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\(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 + 13 col2, + COUNT ( * ) col2 FROM tab0 AS cor0 query I rowsort label-3400 @@ -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 Int32\) 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 @@ -43673,7 +43673,7 @@ SELECT ALL COUNT ( * ) * - ( - + 45 ) AS col0 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 Float64\)\)\) 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 Float64\)\)\) 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 FLOAT8 ) ) col2, + COUNT ( * ) AS col2 FROM tab0 AS cor0 query I rowsort label-7232 @@ -56761,7 +56761,7 @@ SELECT DISTINCT CAST ( - + COUNT ( DISTINCT - col1 ) AS INTEGER ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 75 -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\) AS col2" at position 1 have the same name\. Consider aliasing \("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\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) col2, 75 AS col2 FROM tab1 AS cor0 query III rowsort diff --git a/data/sqlite/random/aggregates/slt_good_111.slt b/data/sqlite/random/aggregates/slt_good_111.slt index 1fe0156..8496ab6 100644 --- a/data/sqlite/random/aggregates/slt_good_111.slt +++ b/data/sqlite/random/aggregates/slt_good_111.slt @@ -6193,7 +6193,7 @@ 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 Int32\) 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: @@ -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 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\. SELECT ALL CAST ( + CAST ( NULL AS FLOAT8 ) AS INTEGER ) + + + COUNT ( * ) AS col0, - COUNT ( * ) AS col0, + 61 FROM tab1 AS cor0 query I rowsort @@ -12936,7 +12936,7 @@ SELECT DISTINCT - 80 + + COUNT ( * ) AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -55 -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\(\(\- \(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "min\(\(\- \(\- Int64\(\-55\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col1, + MIN ( ALL - - ( - 55 ) ) col1 FROM tab0 AS cor0 query III rowsort @@ -21211,7 +21211,7 @@ SELECT ALL - col2 AS col0 FROM tab0 AS cor0 WHERE NOT + col0 * - 37 * + + 20 IS # 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 col0" at position 0 and "count\(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\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "count\(Int64\(77\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col0, COUNT ( ALL 77 ) AS col0 FROM tab0 AS cor0 query I rowsort label-3465 @@ -23995,7 +23995,7 @@ SELECT DISTINCT + - SUM ( - 16 ) * - COUNT ( * ) AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- max\(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 "\(\- \(\- max\(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 DISTINCT - - MAX ( ALL col0 ) AS col0, + COUNT ( * ) AS col0 FROM tab0 AS cor0 query I rowsort label-3917 @@ -32904,7 +32904,7 @@ SELECT col1 * + 40 col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -62 -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\(\-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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(\-62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) col1, - 62 AS col1 FROM tab1 # Datafusion - Datafusion expected results: @@ -36275,7 +36275,7 @@ SELECT DISTINCT col2 * 48 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 98 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(98\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, 98 col1 FROM tab2 query III rowsort label-5933 @@ -36976,7 +36976,7 @@ SELECT DISTINCT col1 * - - 86 * - - col1 + + - 85 + 53 / 26 * + ( + - col0 ) FRO # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 33 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col0, COUNT ( * ) + + 30 AS col0 FROM tab0 query I rowsort label-6045 @@ -50893,7 +50893,7 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 + + - CAST ( NULL AS INTEGER ) # 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 Float64\)\) 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 Float64\)\) 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 FLOAT8 ) AS col1, COUNT ( * ) AS col1 FROM tab2 AS cor0 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_112.slt b/data/sqlite/random/aggregates/slt_good_112.slt index be11cfd..8be04d8 100644 --- a/data/sqlite/random/aggregates/slt_good_112.slt +++ b/data/sqlite/random/aggregates/slt_good_112.slt @@ -411,7 +411,7 @@ SELECT * FROM tab0 WHERE NOT - 69 * - - 64 * col0 BETWEEN ( - 70 * - - 65 ) AND # Datafusion - Expected - 0 # Datafusion - Expected - 0 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(92\)\) AS col0" at position 1 and "\(\- Int64\(18\)\) \* 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 "count\(Int64\(92\)\) AS col0" at position 1 and "\(\- Int64\(18\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( DISTINCT + col2 ), COUNT ( + ( + 92 ) ) col0, - + 18 * + COUNT ( * ) AS col0 FROM tab2 WHERE CAST ( - CAST ( - col2 AS INTEGER ) AS FLOAT8 ) IS NULL query I rowsort @@ -6053,7 +6053,7 @@ SELECT * FROM tab0 AS cor0 WHERE NOT + col1 - - - col1 * + col0 = - col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 62 -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\(\*\) \+ min\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ min\(tab1\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, COUNT ( * ) + MIN ( col2 ) AS col0 FROM tab1 query I rowsort label-1012 @@ -12716,7 +12716,7 @@ SELECT ALL * FROM tab2 cor0 WHERE NOT NULL >= col1 # 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\(Int64\(1\)\) AS count\(\*\) \+ \(\- 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\(\*\) \+ \(\- 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 DISTINCT COUNT ( * ) + - COUNT ( * ) AS col0, COUNT ( * ) AS col0 FROM tab0 query I rowsort @@ -23751,7 +23751,7 @@ SELECT ( + col2 ) * col1 - + col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -24 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) 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\(\-24\) 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 - 24 AS col1, + COUNT ( * ) AS col1 FROM tab1 query III rowsort @@ -25708,7 +25708,7 @@ SELECT col1 AS col0 FROM tab2 AS cor0 WHERE col0 * 11 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 Float64\)\) / 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\(\*\) )?AS col1" at position 0 and "\(\- CAST\(NULL AS Float64\)\) / Int64\(\-77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col1, - CAST ( NULL AS FLOAT8 ) / - 77 AS col1 FROM tab2 AS cor0 query III rowsort @@ -35942,7 +35942,7 @@ SELECT + 58 * - 91 + + col2 + + 96 + 10 * + col1 - - col0 col0, col0 FROM tab2 A # Datafusion - Datafusion expected results: # Datafusion - Expected - -53 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT Int64\(28\)\) \- Int64\(81\) AS col0" at position 0 and "Int64\(83\) / 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\(DISTINCT Int64\(28\)\) \- Int64\(81\) AS col0" at position 0 and "Int64\(83\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + MAX ( DISTINCT + 28 ) - + 81 AS col0, 83 / + COUNT ( * ) AS col0 FROM tab0 query I rowsort @@ -39769,7 +39769,7 @@ SELECT DISTINCT - + ( 83 ) 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 Float64\) 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 Float64\) 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 FLOAT8 ) AS col1, + COUNT ( * ) AS col1 FROM tab2 # Datafusion - Datafusion expected results: @@ -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 Int32\) 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 @@ -53802,7 +53802,7 @@ SELECT MAX ( ALL + 43 ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -24 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) 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\(\-24\) 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 - 24 AS col2, + COUNT ( * ) AS col2 FROM tab2 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..a0113cd 100644 --- a/data/sqlite/random/aggregates/slt_good_113.slt +++ b/data/sqlite/random/aggregates/slt_good_113.slt @@ -854,7 +854,7 @@ SELECT DISTINCT - col0 * - 86 AS col2 FROM tab1 AS cor0 # 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 "count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(\-69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col2, - 69 AS col2 FROM tab0 AS cor0 query I rowsort @@ -1733,7 +1733,7 @@ SELECT ALL - MAX ( ALL - col0 ) AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -6535 -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\(76\)\) \* Int64\(85\) \+ 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "\(\- Int64\(76\)\) \* Int64\(85\) \+ Int64\(\-72\) \- 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, - ( 76 ) * 85 + - 72 - + COUNT ( * ) col0 FROM tab0 query I rowsort @@ -15870,7 +15870,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 276 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- \(\- Int64\(99\)\) \- \(\- 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 "Int64\(\-58\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- \(\- Int64\(99\)\) \- \(\- 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 - 58 * - + COUNT ( * ) - - + 99 - - + COUNT ( * ) col1, + COUNT ( * ) AS col1 FROM tab1 AS cor0 query I rowsort @@ -21228,7 +21228,7 @@ SELECT DISTINCT 69 * - col2 + + - col2 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -684 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) AS col1" at position 0 and "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\(1\) AS col1" at position 0 and "Int64\(\-76\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 1 col1, - 76 * + + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1 query I 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 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\. 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 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\. SELECT ALL - 29 * + + CAST ( NULL AS INTEGER ) + - MIN ( 10 ) - - COUNT ( - col1 ) AS col0, ( COUNT ( * ) ) AS col0 FROM tab2 query I rowsort label-4769 @@ -33989,7 +33989,7 @@ SELECT - - ( + - ( - col0 ) ) FROM tab1 AS 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\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 DISTINCT + + COUNT ( * ) AS col1, + MAX ( ALL - col2 ) AS col1 FROM tab2 WHERE NOT + col1 IS NULL query I rowsort @@ -44708,7 +44708,7 @@ SELECT MAX ( + col2 ) AS col1 FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -156 -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\(\(\- cor0\.col2\)\)\) \+ Int64\(51\) \* \(\- 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 "\(\- count\(\(\- cor0\.col2\)\)\) \+ Int64\(51\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COUNT ( * ) AS col0, - COUNT ( ALL + - col2 ) + + 51 * + - COUNT ( * ) col0 FROM tab2 AS cor0 query I rowsort @@ -44991,7 +44991,7 @@ SELECT col2 * - col1 / - col1 + col0 AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 223 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(DISTINCT \(\- cor0\.col2\)\)\) 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 "\(\- sum\(DISTINCT \(\- cor0\.col2\)\)\) 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 - SUM ( DISTINCT + - col2 ) AS col2, COUNT ( * ) AS col2 FROM tab1 AS cor0 query III rowsort @@ -46462,7 +46462,7 @@ SELECT col2 * col2 - - - col2 FROM tab1 AS 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 "count\(Int64\(1\)\) AS count\(\*\) 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\(\*\) )?AS col0" at position 0 and "Int64\(\-60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col0, ( + - 60 ) AS col0 FROM tab0 cor0 query I rowsort @@ -50449,7 +50449,7 @@ SELECT - + 97 FROM tab1 WHERE - - col2 IN ( col2, + ( + col0 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -32 -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\(\-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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(\-32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col2, - 32 AS col2 FROM tab2 query I rowsort label-8306 @@ -51452,7 +51452,7 @@ SELECT ALL - - MAX ( 16 ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) 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\(63\) 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 63 AS col2, + COUNT ( * ) AS col2 FROM tab0 query I rowsort label-8467 @@ -51588,7 +51588,7 @@ SELECT ALL col0 + + + 93 AS col0 FROM tab0 # 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\(\-72\) \+ 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 "Int64\(\-72\) \+ 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 DISTINCT - 72 + COUNT ( * ) + + COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab2 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 Int32\) 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 diff --git a/data/sqlite/random/aggregates/slt_good_114.slt b/data/sqlite/random/aggregates/slt_good_114.slt index 08c8645..310b35f 100644 --- a/data/sqlite/random/aggregates/slt_good_114.slt +++ b/data/sqlite/random/aggregates/slt_good_114.slt @@ -985,7 +985,7 @@ SELECT ALL + + col1 AS col0 FROM tab1 AS cor0 WHERE NOT + 93 >= NULL # 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\(\*\)\) \* Int64\(\-52\) 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\(\-52\) 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 ( * ) * - 52 AS col0, COUNT ( * ) col0 FROM tab2 AS cor0 query I rowsort @@ -2840,7 +2840,7 @@ SELECT * FROM tab2 WHERE col1 BETWEEN - - col0 AND - col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 63 -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\(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 "Int64\(63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) col2, + 63 AS col2 FROM tab0 query I rowsort label-462 @@ -10112,7 +10112,7 @@ SELECT DISTINCT - SUM ( ALL 56 ) FROM tab1 # 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\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- count\(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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "\(\- count\(tab2\.col1\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) + + COUNT ( * ) AS col2, - COUNT ( col1 ) AS col2 FROM tab2 query I 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 Int32\)" 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 @@ -18251,7 +18251,7 @@ SELECT 45 AS col0 FROM tab0 AS cor0 WHERE NOT NULL <> - col1 # 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\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(DISTINCT 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 "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "count\(DISTINCT cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + COUNT ( * ) * + COUNT ( * ) AS col2, COUNT ( DISTINCT col2 ) AS col2 FROM tab1 AS cor0 query I rowsort @@ -18839,7 +18839,7 @@ SELECT ALL - 80 FROM tab1 WHERE NULL IS NULL # 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\(\-42\)\)\) 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\(\-42\)\)\) 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 ( ALL - 42 ) AS col2, + COUNT ( * ) AS col2 FROM tab1 query I rowsort label-3108 @@ -25408,7 +25408,7 @@ SELECT * FROM tab0 WHERE NULL IS NOT NULL AND NOT ( col1 * col2 + - col2 ) IS NO # Datafusion - Datafusion expected results: # Datafusion - Expected - 854 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) \* Int64\(\-14\) 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 "Int64\(\-61\) \* Int64\(\-14\) 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 ALL - 61 * - 14 AS col1, - COUNT ( * ) + + COUNT ( * ) col1 FROM tab2 query I rowsort label-4198 @@ -28848,7 +28848,7 @@ SELECT - 37 * - col0 FROM tab1 WHERE NOT ( 64 IS NULL ) # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) col2, + COUNT ( * ) AS col2 FROM tab1 query II rowsort label-4768 @@ -39904,7 +39904,7 @@ SELECT ALL col2 * - 29 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - -72 -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 "\(\- 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\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?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 ( * ) * + COUNT ( * ) AS col0, - ( + 72 ) AS col0 FROM tab1 query I rowsort label-6612 @@ -45069,7 +45069,7 @@ SELECT DISTINCT + 99 / - + MIN ( DISTINCT 82 ) AS col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -37 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) \+ count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(\-40\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 40 + + + COUNT ( * ) AS col1, + 99 AS col1 FROM tab1 AS cor0 query I rowsort label-7473 @@ -45446,7 +45446,7 @@ SELECT * FROM tab1 AS cor0 WHERE col0 * - + col2 IS NOT NULL # 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 "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 "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 DISTINCT COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) = col0 query I rowsort label-7534 @@ -46248,7 +46248,7 @@ SELECT ALL * FROM tab0 AS cor0 WHERE NOT - ( - col1 ) + - col0 < - - 92 # 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 "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(\(\- \(\- tab1\.col0\)\)\) / \(\- 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 "count\(\(\- \(\- tab1\.col0\)\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) col0, COUNT ( - - col0 ) / - COUNT ( * ) AS col0 FROM tab1 query I rowsort label-7660 @@ -49051,7 +49051,7 @@ SELECT DISTINCT col1 + 13 col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) \+ 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 "Int64\(11\) \+ 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 11 + COUNT ( * ) AS col2, 3 col2 FROM tab2 query III rowsort @@ -52164,7 +52164,7 @@ SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE NULL > CAST ( col2 AS INTEGER ) / # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(62\)\) 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\)\) 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 - ( 62 ) AS col2, + COUNT ( * ) AS col2 FROM tab2 cor0 query I rowsort label-8635 @@ -54636,7 +54636,7 @@ SELECT - - col2 AS col2 FROM tab0 WHERE NOT col2 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -18 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) 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\(\-18\) 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 - 18 AS col0, COUNT ( * ) AS col0 FROM tab0 query I rowsort label-9037 @@ -56923,7 +56923,7 @@ SELECT ALL + col0 * + + col0 * - col2 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- min\(Int64\(3\)\)\) 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\(\*\)\) \* \(\- min\(Int64\(3\)\)\) 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 ( * ) * + - MIN ( 3 ) AS col2, ( + + COUNT ( * ) ) col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: diff --git a/data/sqlite/random/aggregates/slt_good_115.slt b/data/sqlite/random/aggregates/slt_good_115.slt index d51fb95..1fb7884 100644 --- a/data/sqlite/random/aggregates/slt_good_115.slt +++ b/data/sqlite/random/aggregates/slt_good_115.slt @@ -4022,7 +4022,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 "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 + 97 AS col1, COUNT ( * ) col1 FROM tab2 AS cor0 query I rowsort label-671 @@ -4695,7 +4695,7 @@ SELECT ALL + - 16 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 # 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\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, 85 AS col2 FROM tab2 # Datafusion - Datafusion expected results: @@ -27916,7 +27916,7 @@ SELECT + col0 AS col1 FROM tab2 WHERE NULL = + CAST ( NULL AS INTEGER ) * + CAST # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(19\)\)\) \* 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\(19\)\)\) \* 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 - ( - + 19 ) * + + COUNT ( * ) AS col0, COUNT ( * ) col0 FROM tab2 query I rowsort @@ -33657,7 +33657,7 @@ SELECT col2 * + col0 AS col1 FROM tab1 WHERE - col2 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # 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 "max\(DISTINCT Int64\(28\)\) \+ 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 "max\(DISTINCT Int64\(28\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col1, MAX ( DISTINCT + ( 28 ) ) + + COUNT ( * ) AS col1 FROM tab1 query I rowsort @@ -33727,7 +33727,7 @@ SELECT + + 66 - ( - COUNT ( * ) ) FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \- Int64\(92\) 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\(21\) \- Int64\(92\) 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 21 - + 92 AS col1, COUNT ( * ) AS col1 FROM tab2 AS cor0 query II rowsort label-5581 @@ -37030,7 +37030,7 @@ SELECT DISTINCT - + col2 col2, + 88 + 47 AS 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 "\(\- \(\- 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 "\(\- \(\- 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 - - COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0 query I rowsort label-6125 @@ -56038,7 +56038,7 @@ SELECT DISTINCT col0 * col2 * - col0 AS col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 "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 DISTINCT - 8 AS col1, COUNT ( * ) AS col1 FROM tab0 # Datafusion - Datafusion expected results: @@ -56470,7 +56470,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 243 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT Int64\(\-81\)\) \* \(\- 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 "min\(DISTINCT Int64\(\-81\)\) \* \(\- 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 MIN ( DISTINCT - 81 ) * - COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab1 AS cor0 query I rowsort label-9349 @@ -60214,7 +60214,7 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col1 ) * 71 NOT IN ( - + col2 ) # 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 "sum\(\(\- 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 "sum\(\(\- 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 SUM ( - col1 ) AS col2, COUNT ( * ) AS col2 FROM tab1 cor0 query III rowsort diff --git a/data/sqlite/random/aggregates/slt_good_116.slt b/data/sqlite/random/aggregates/slt_good_116.slt index e343579..d436da1 100644 --- a/data/sqlite/random/aggregates/slt_good_116.slt +++ b/data/sqlite/random/aggregates/slt_good_116.slt @@ -4597,7 +4597,7 @@ SELECT + - ( col1 ) FROM tab1 cor0 WHERE NOT col2 * - col2 IS NULL # 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 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\(86\) 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 86 col1, COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL > NULL query I rowsort label-750 @@ -7302,7 +7302,7 @@ SELECT DISTINCT + - SUM ( DISTINCT 67 ) 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\(\*\)\) 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\(\*\)\) 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 ( * ) col0, COUNT ( * ) AS col0 FROM tab0 AS cor0 query I rowsort @@ -11958,7 +11958,7 @@ SELECT ALL col0 * - - 51 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) \+ \(\- Int64\(\-62\)\) 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\(\-29\) \+ \(\- Int64\(\-62\)\) 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 + - 29 + - - 62 AS col2, COUNT ( * ) AS col2 FROM tab2 AS cor0 query I rowsort label-1987 @@ -19513,7 +19513,7 @@ SELECT DISTINCT 48 + + col1 + + 39 * - - ( col1 ) AS col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6384 # Datafusion - Expected - 3101 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) \* Int64\(78\) \+ sum\(\(\- cor0\.col1\)\) AS col1" at position 0 and "Int64\(40\) \* Int64\(77\) \+ 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\(\-81\) \* Int64\(78\) \+ sum\(\(\- cor0\.col1\)\) AS col1" at position 0 and "Int64\(40\) \* Int64\(77\) \+ Int64\(63\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 81 * + + 78 + + + SUM ( - col1 ) AS col1, 40 * 77 + 63 / + COUNT ( * ) AS col1 FROM tab1 AS cor0 query II rowsort @@ -37785,7 +37785,7 @@ SELECT CAST ( NULL AS INTEGER ) col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1 # 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\(\*\) 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\(\*\) )?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 COUNT ( * ) col2, COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 query I rowsort @@ -39573,7 +39573,7 @@ SELECT DISTINCT 15 / + COUNT ( * ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) 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\(18\) 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 ( + 18 ) AS col1, COUNT ( * ) AS col1 FROM tab0 WHERE NULL IS NOT NULL AND ( NULL IS NOT NULL ) query I rowsort @@ -45953,7 +45953,7 @@ SELECT ALL - COUNT ( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 135 -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\(92\) \+ 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(92\) \+ Int64\(43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col0, + 92 + + 43 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 query II rowsort @@ -48960,7 +48960,7 @@ SELECT 35 AS col2, + COUNT ( * ) / + - 46 FROM tab0 # 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 "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) col2, - COUNT ( * ) col2 FROM tab0 query I rowsort @@ -53622,7 +53622,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) 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\(87\) 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 + 87 AS col1, COUNT ( * ) col1 FROM tab1 AS cor0 query III rowsort @@ -55231,7 +55231,7 @@ SELECT DISTINCT COUNT ( * ) + - 19 FROM tab0 # 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\(Int64\(1\)\) AS count\(\*\) 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\(\*\) )?AS col2" at position 0 and "Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col2, 24 col2 FROM tab1 query I rowsort label-9114 @@ -56515,7 +56515,7 @@ SELECT + CAST ( - col1 AS INTEGER ) - - 92 AS col0 FROM tab2 AS cor0 WHERE NOT - # 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 col2" at position 0 and "sum\(cor0\.col1\) / Int64\(50\) \+ \(\- 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\(\*\) )?AS col2" at position 0 and "sum\(cor0\.col1\) / Int64\(50\) \+ \(\- Int64\(12\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, + SUM ( + col1 ) / 50 + - + 12 AS col2 FROM tab2 AS cor0 query I rowsort label-9334 @@ -58670,7 +58670,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - -3850 -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 "Int64\(55\) \* \(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(55\) \* \(\- Int64\(70\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) AS col0, + 55 * - + 70 AS col0 FROM tab1 query II rowsort diff --git a/data/sqlite/random/aggregates/slt_good_117.slt b/data/sqlite/random/aggregates/slt_good_117.slt index a22bcdf..27916c9 100644 --- a/data/sqlite/random/aggregates/slt_good_117.slt +++ b/data/sqlite/random/aggregates/slt_good_117.slt @@ -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 Int32\) 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 @@ -1746,7 +1746,7 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + col1 * - col1 ) IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 12934 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \* \(\- Int64\(2\)\) \* \(\- sum\(cor0\.col2\)\) 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\(29\) \* \(\- Int64\(2\)\) \* \(\- sum\(cor0\.col2\)\) 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 29 * - + 2 * - SUM ( col2 ) AS col2, COUNT ( * ) AS col2 FROM tab1 cor0 query I rowsort label-283 @@ -4301,7 +4301,7 @@ SELECT DISTINCT + ( 85 ) AS col1 FROM tab2 cor0 # 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 "count\(DISTINCT Int64\(\-36\)\) 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 Int64\(\-36\)\) 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 ( DISTINCT - 36 ) AS col1, COUNT ( * ) AS col1 FROM tab1 query I rowsort @@ -4466,7 +4466,7 @@ SELECT ALL - 98 * + 47 AS col0 FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 84 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(84\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col0, + 84 AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT NULL > NULL ) ) query I rowsort label-733 @@ -8508,7 +8508,7 @@ SELECT * FROM tab0 WHERE + col2 * - - col1 + col0 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 20 -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\(\*\) \+ 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col1, COUNT ( * ) + + 17 AS col1 FROM tab1 query I rowsort @@ -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 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\. 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 @@ -23487,7 +23487,7 @@ SELECT - + MIN ( ALL + 30 ) FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col1" at position 0 and "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\(26\) AS col1" at position 0 and "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 ALL 26 AS col1, COUNT ( * ) / COUNT ( * ) * COUNT ( * ) AS col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: @@ -24171,7 +24171,7 @@ SELECT + 41, + col1 / + - 60 AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -227 -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\(\(\- 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\(\*\) )?AS col1" at position 0 and "sum\(\(\- cor0\.col0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COUNT ( * ) AS col1, SUM ( + - col0 ) AS col1 FROM tab1 AS cor0 query III rowsort label-3990 @@ -28569,7 +28569,7 @@ SELECT 36 - - col0 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) 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\) 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 + 29 AS col0, COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1 query III rowsort @@ -43852,7 +43852,7 @@ SELECT DISTINCT CAST ( + - col1 AS INTEGER ) AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 227 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(tab1\.col0\) 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 "sum\(tab1\.col0\) 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 + SUM ( col0 ) AS col2, + ( + COUNT ( * ) ) col2 FROM tab1 query I rowsort @@ -55913,7 +55913,7 @@ SELECT ALL + 50 AS col1, 24 AS col0 FROM tab0 # Datafusion - Expected - 3 # Datafusion - Expected - 60 # 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 "min\(CAST\(NULL AS Float64\)\) \* Int64\(10\) 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 0 and "min\(CAST\(NULL AS Float64\)\) \* Int64\(10\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col0, 60, MIN ( CAST ( NULL AS FLOAT8 ) ) * 10 AS col0 FROM tab0 query II rowsort @@ -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 Int32\)\) \* 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 @@ -59732,7 +59732,7 @@ SELECT DISTINCT - - col1 AS col2, 90 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 210 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- max\(Int64\(\-71\)\)\) \- count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- max\(DISTINCT 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 "count\(Int64\(1\)\) AS count\(\*\) \* \(\- max\(Int64\(\-71\)\)\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "\(\- max\(DISTINCT cor0\.col2\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) * - MAX ( - 71 ) - COUNT ( * ) AS col2, - MAX ( DISTINCT col2 ) col2 FROM tab2 cor0 query I rowsort label-9852 @@ -60294,7 +60294,7 @@ SELECT ALL * FROM tab1 AS cor0 WHERE + 96 * - - col1 IS NOT NULL # 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 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\(\*\)\)\) 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 ( * ) AS col0, COUNT ( * ) AS col0 FROM tab2 AS cor0 query II rowsort diff --git a/data/sqlite/random/aggregates/slt_good_118.slt b/data/sqlite/random/aggregates/slt_good_118.slt index 3ffb554..8c9a714 100644 --- a/data/sqlite/random/aggregates/slt_good_118.slt +++ b/data/sqlite/random/aggregates/slt_good_118.slt @@ -1911,7 +1911,7 @@ SELECT + 96 * + col1 * - - 8 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -86 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(86\)\) 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\(86\)\) 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 - ( + 86 ) AS col0, + COUNT ( * ) AS col0 FROM tab0 AS cor0 query III rowsort @@ -3527,7 +3527,7 @@ SELECT - col2 * col0 + + 66 + - col2 AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -63 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) 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\) 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 - 63 AS col1, COUNT ( * ) AS col1 FROM tab0 cor0 query II rowsort @@ -6237,7 +6237,7 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 36 IS NOT NULL # 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\(\-42\) 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\(\-42\) 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 - 42 AS col1, COUNT ( * ) AS col1 FROM tab2 AS cor0 query I rowsort @@ -8763,7 +8763,7 @@ SELECT col2 * + - ( - 36 ) + 92 AS col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 16 -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\(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\(\*\) )?AS col2" at position 0 and "Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, + 16 AS col2 FROM tab2 query II rowsort label-1476 @@ -13040,7 +13040,7 @@ SELECT 15 + + COUNT ( * ) AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 # Datafusion - Expected - -3216 -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 "Int64\(48\) \* 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\(71\)\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(48\) \* Int64\(\-67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( - + 71 ) / COUNT ( * ) AS col1, 48 * - 67 col1 FROM tab0 query I rowsort @@ -16622,7 +16622,7 @@ SELECT ALL 73 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Expected - NULL # Datafusion - Expected - 3 # Datafusion - Expected - 27 -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 "Int64\(27\) 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 "Int64\(27\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) / - 24 * 51, COUNT ( * ) AS col1, + 27 AS col1 FROM tab0 query I rowsort label-2771 @@ -18943,7 +18943,7 @@ SELECT 54 + - ( + - ( + col1 ) ) * 78 + + ( col0 ) + - + col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -44 -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\(\-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\(\*\) )?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 COUNT ( * ) AS col0, - 44 AS col0 FROM tab1 query I rowsort @@ -34365,7 +34365,7 @@ SELECT col1 FROM tab0 cor0 WHERE NULL IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -8 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-8\)\) 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 "max\(Int64\(\-8\)\) 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 + MAX ( - 8 ) AS col0, + COUNT ( * ) col0 FROM tab1 AS cor0 query I rowsort label-5728 @@ -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 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\. SELECT ALL - 97 + CAST ( NULL AS INTEGER ) AS col2, + COUNT ( * ) AS col2 FROM tab1 AS cor0 query I rowsort @@ -36875,7 +36875,7 @@ SELECT ALL col2 AS col1, + col2 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\(\- tab0\.col0\)\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ 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 "\(\- count\(\(\- tab0\.col0\)\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ 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 - COUNT ( ALL - col0 ) AS col2, + COUNT ( * ) + + COUNT ( * ) / + COUNT ( * ) AS col2 FROM tab0 query III rowsort @@ -52087,7 +52087,7 @@ SELECT DISTINCT col0 * + 92 AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) 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\(54\) 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 54 AS col1, COUNT ( * ) AS col1 FROM tab1 query I rowsort label-8672 @@ -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 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\. SELECT ALL + COUNT ( * ) * + CAST ( + + COUNT ( * ) AS INTEGER ) AS col1, COUNT ( * ) AS col1 FROM tab1 query III rowsort @@ -53987,7 +53987,7 @@ SELECT DISTINCT * FROM tab1 WHERE ( NOT ( 46 * col0 + - + CAST ( NULL AS FLOAT8 # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) col1, COUNT ( * ) AS col1 FROM tab0 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_119.slt b/data/sqlite/random/aggregates/slt_good_119.slt index 165a263..0b5cd43 100644 --- a/data/sqlite/random/aggregates/slt_good_119.slt +++ b/data/sqlite/random/aggregates/slt_good_119.slt @@ -1549,7 +1549,7 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NULL > 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 "\(\- max\(DISTINCT Int64\(\-84\)\)\) 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 Int64\(\-84\)\)\) 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 + - 84 ) col1, COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL <> col0 query I rowsort @@ -26071,7 +26071,7 @@ SELECT + col1 * 52 * + 11 AS col1 FROM tab0 cor0 # 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\(34\) 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\(34\) 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 + 34 AS col1, + COUNT ( * ) AS col1 FROM tab2 AS cor0 query III rowsort @@ -28997,7 +28997,7 @@ SELECT DISTINCT - 12 FROM tab1 WHERE NOT - 75 - 35 + + + 19 * 70 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 99 -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\(DISTINCT 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "max\(DISTINCT tab0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col0, + MAX ( DISTINCT + col2 ) AS col0 FROM tab0 query I rowsort @@ -29157,7 +29157,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 3 -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\(\*\) AS col2" at position 1 have the 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\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 57 AS col2, + COUNT ( * ) AS col2 FROM tab1 query III rowsort @@ -30162,7 +30162,7 @@ SELECT DISTINCT + 39 AS col0 FROM tab2 AS cor0 WHERE NOT - 55 NOT BETWEEN NULL A # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) 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\(64\) 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 + 64 AS col0, COUNT ( * ) AS col0 FROM tab0 cor0 query I rowsort @@ -50034,7 +50034,7 @@ SELECT DISTINCT - COUNT ( * ) FROM tab2 cor0 WHERE ( col2 * col0 + - 6 * - 55 ) # 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 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\) 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 col2, + COUNT ( * ) AS col2 FROM tab2 AS cor0 query II rowsort @@ -53437,7 +53437,7 @@ SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT col0 * 24 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -54 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) \* \(\- \(\- 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\(\-18\) \* \(\- \(\- 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 + - 18 * - - COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab0 WHERE NOT - 28 - + - col2 IS NULL query I rowsort @@ -56015,7 +56015,7 @@ SELECT * FROM tab0 AS cor0 WHERE NOT + 58 * - 14 - + - 96 NOT IN ( + - col2, - ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 59 -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 "min\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "min\(cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) col0, MIN ( + col2 ) AS col0 FROM tab1 AS cor0 query I rowsort @@ -56457,7 +56457,7 @@ SELECT - ( + + col0 ) AS col0, col0 * - col2 + col2 * - col0 * + 5 FROM tab0 AS # 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 "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "sum\(\(\- tab1\.col1\)\) \+ count\(Int64\(1\)\) AS count\(\*\) / 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "sum\(\(\- tab1\.col1\)\) \+ count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) col0, SUM ( - col1 ) + + + COUNT ( * ) / - 69 col0 FROM tab1 query II rowsort diff --git a/data/sqlite/random/aggregates/slt_good_12.slt b/data/sqlite/random/aggregates/slt_good_12.slt index ec0fbf9..825c8f2 100644 --- a/data/sqlite/random/aggregates/slt_good_12.slt +++ b/data/sqlite/random/aggregates/slt_good_12.slt @@ -1344,7 +1344,7 @@ SELECT DISTINCT + ( + ( - + 40 ) ) AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - 3 -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\(\*\) AS col2" at position 1 have the 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\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( + 40 ) AS col2, COUNT ( * ) col2 FROM tab0 query I rowsort @@ -5859,7 +5859,7 @@ SELECT - 28 FROM tab2 AS cor0 WHERE col2 IS NULL # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) col2, + COUNT ( * ) AS col2 FROM tab0 AS cor0 query I rowsort label-945 @@ -7022,7 +7022,7 @@ SELECT + 7 * + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab2 # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 + COUNT ( * ) AS col1, 94 AS col1 FROM tab1 AS cor0 query I rowsort @@ -17065,7 +17065,7 @@ SELECT - + COUNT ( - 69 ) col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 121 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(\(\- cor0\.col2\)\)\) 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 "\(\- sum\(\(\- cor0\.col2\)\)\) 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 - SUM ( - col2 ) AS col2, + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL query I rowsort @@ -17137,7 +17137,7 @@ SELECT DISTINCT - + col1 + + 2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) 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\(47\) 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 47 AS col1, COUNT ( * ) AS col1 FROM tab1 AS cor0 query I rowsort label-2800 @@ -19478,7 +19478,7 @@ SELECT 21 * 49 col1 FROM tab1 # Datafusion - Expected - 10 # Datafusion - Expected - 3 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(tab0\.col2\) 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 "min\(tab0\.col2\) 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 MIN ( ALL col2 ) AS col2, COUNT ( * ) AS col2, + 47 FROM tab0 query I rowsort label-3181 @@ -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 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\. SELECT CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) AS col1 FROM tab2 query II rowsort @@ -31104,7 +31104,7 @@ SELECT col1 * + + 32 FROM tab1 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 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\(89\) 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 89 AS col2, COUNT ( * ) AS col2 FROM tab1 AS cor0 query I rowsort label-5062 @@ -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 Int32\) 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 @@ -38639,7 +38639,7 @@ SELECT + + 22 + - col1 + + + col1 FROM tab2 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 "Int64\(83\) \+ Int64\(\-89\) 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\(83\) \+ Int64\(\-89\) 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 + 83 + - 89 AS col2, + COUNT ( * ) AS col2 FROM tab1 # Datafusion - Datafusion expected results: @@ -45187,7 +45187,7 @@ SELECT COUNT ( - CAST ( NULL AS INTEGER ) ), + COUNT ( * ) AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3078 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-54\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(19\) 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\(\-54\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(19\) 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 - 54 * - COUNT ( * ) * + + 19 AS col2, COUNT ( * ) AS col2 FROM tab1 query II rowsort label-7373 @@ -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 Int32\)\) AS Int32\) 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 @@ -47551,7 +47551,7 @@ SELECT COUNT ( ALL - - col1 ) AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(cor0\.col2\) 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 "min\(cor0\.col2\) 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 MIN ( col2 ) AS col1, COUNT ( * ) AS col1 FROM tab0 AS cor0 query I rowsort label-7772 @@ -55652,7 +55652,7 @@ SELECT + ( - + 16 ) FROM tab0 # 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 col2" at position 0 and "max\(\(\- Int64\(27\)\)\) / 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 "max\(\(\- Int64\(27\)\)\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col2, MAX ( ALL - + 27 ) / + COUNT ( * ) col2 FROM tab0 query I rowsort @@ -58554,7 +58554,7 @@ SELECT DISTINCT + col0 / col2 * + ( col1 ) + + 70 AS col1 FROM tab2 AS cor0 # 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 "count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 + COUNT ( * ) AS col1, + 88 AS col1 FROM tab1 AS cor0 query III rowsort @@ -58752,7 +58752,7 @@ SELECT - - CAST ( + + col2 AS INTEGER ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -75 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(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 "\(\- max\(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 - MAX ( col0 ) AS col0, COUNT ( * ) AS col0 FROM tab2 AS cor0 query I rowsort label-9619 diff --git a/data/sqlite/random/aggregates/slt_good_120.slt b/data/sqlite/random/aggregates/slt_good_120.slt index 21e2cd8..68b77b3 100644 --- a/data/sqlite/random/aggregates/slt_good_120.slt +++ b/data/sqlite/random/aggregates/slt_good_120.slt @@ -5237,7 +5237,7 @@ SELECT col2 * + ( + col2 ) AS col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -41 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) 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\(\-41\) 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 ( + - 41 ) AS col2, ( + COUNT ( * ) ) AS col2 FROM tab2 AS cor0 query I rowsort label-859 @@ -11559,7 +11559,7 @@ SELECT col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( ( 75 ) ) NOT BETWEEN ( + col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 15 -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\(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\(\*\) )?AS col1" at position 0 and "min\(cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) col1, + MIN ( + col0 ) AS col1 FROM tab0 cor0 query I rowsort @@ -13052,7 +13052,7 @@ SELECT ALL + col1 * - - 47 FROM tab0 AS cor0 # 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\(\*\)\) 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\(\*\)\) 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 + - COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 query I rowsort label-2140 @@ -14738,7 +14738,7 @@ SELECT ALL + - col0 AS col2 FROM tab0 cor0 WHERE + col2 * 93 IS NOT NULL # 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 "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- min\(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 "\(\- min\(Int64\(\-13\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col0, - MIN ( - 13 ) col0 FROM tab1 AS cor0 query I rowsort @@ -15879,7 +15879,7 @@ SELECT ALL COUNT ( * ) * - 3 / + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( 3 - c # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 33 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, 33 AS col1 FROM tab2 query II rowsort @@ -16338,7 +16338,7 @@ SELECT ALL COUNT ( + - 11 ) FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 67 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col1, 67 AS col1 FROM tab1 query I rowsort label-2683 @@ -21206,7 +21206,7 @@ SELECT ( 99 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL > NULL # 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 "min\(tab2\.col1\) \+ count\(Int64\(1\)\) AS count\(\*\) 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 "min\(tab2\.col1\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MIN ( ALL + + col1 ) + + COUNT ( * ) AS col2, 46 AS col2 FROM tab2 WHERE NOT col2 = NULL query III rowsort @@ -26310,7 +26310,7 @@ SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE - 18 = NULL # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, COUNT ( * ) col1 FROM tab1 AS cor0 query I rowsort label-4325 @@ -37510,7 +37510,7 @@ SELECT ALL - 17 AS col2 FROM tab2 WHERE col2 + + - col0 <= NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -28 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-28\) 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\(\-28\) 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 - 28 AS col0, + COUNT ( * ) AS col0 FROM tab0 AS cor0 query I rowsort @@ -38774,7 +38774,7 @@ SELECT DISTINCT - + COUNT ( + - col2 ) AS col2 FROM tab0 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\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "sum\(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 "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "sum\(Int64\(\-3\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) * + COUNT ( * ) AS col1, SUM ( - 3 ) AS col1 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL 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 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\. SELECT DISTINCT - CAST ( - 61 AS INTEGER ) * + COUNT ( * ) AS col1, + ( - COUNT ( * ) ) AS col1 FROM tab2 query I rowsort label-6472 @@ -40894,7 +40894,7 @@ SELECT ALL 3 * + col0 col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -59 -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 "\(\- min\(tab1\.col2\)\) \+ 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "\(\- min\(tab1\.col2\)\) \+ Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col2, - MIN ( + col2 ) + + 0 AS col2 FROM tab1 query III rowsort @@ -48405,7 +48405,7 @@ SELECT DISTINCT - - 61 * + ( - MIN ( ALL - - 49 ) ) AS col2 FROM tab0 AS cor0 CR # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 2 -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\) AS col1" at position 1 have the same name\. Consider aliasing \("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\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, + 2 AS col1 FROM tab0 query I rowsort @@ -57076,7 +57076,7 @@ SELECT ALL * FROM tab2 WHERE col1 + + col0 = NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) 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\(26\) 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 + 26 AS col0, + COUNT ( * ) AS col0 FROM tab1 query I rowsort label-9417 diff --git a/data/sqlite/random/aggregates/slt_good_121.slt b/data/sqlite/random/aggregates/slt_good_121.slt index affa980..7337c4d 100644 --- a/data/sqlite/random/aggregates/slt_good_121.slt +++ b/data/sqlite/random/aggregates/slt_good_121.slt @@ -3391,7 +3391,7 @@ SELECT SUM ( DISTINCT - ( + col0 ) ) col2 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\(Int64\(1\)\) AS count\(\*\) / Int64\(\-16\) 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\(\*\) / Int64\(\-16\) 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 ( * ) / - 16 AS col2, + COUNT ( * ) AS col2 FROM tab1 # Datafusion - Types were automatically converted from: @@ -7787,7 +7787,7 @@ SELECT 88 * + 95 + + + COUNT ( * ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -94 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) 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\(\-94\) 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 - 94 AS col1, COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL <= - - col0 - + + col2 query I rowsort label-1265 @@ -20720,7 +20720,7 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - + col1 ) IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col1" at position 0 and "Int64\(\-69\) \+ 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\(71\) AS col1" at position 0 and "Int64\(\-69\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 71 AS col1, - 69 + + COUNT ( * ) col1 FROM tab2 query I rowsort @@ -29521,7 +29521,7 @@ SELECT - - 0 / col2 AS col2 FROM tab1 cor0 WHERE NOT ( NULL ) NOT BETWEEN - 95 * # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 63 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col0, 63 AS col0 FROM tab1 AS cor0 query I rowsort label-4851 @@ -29928,7 +29928,7 @@ SELECT + 79 + - col1 * 18 FROM tab0 AS cor0 # 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\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 COUNT ( * ) AS col0, + 81 AS col0 FROM tab1 query III rowsort @@ -34386,7 +34386,7 @@ SELECT DISTINCT - 83 AS col0 FROM tab1 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 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\(\*\)\) 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 ( * ) AS col0, COUNT ( * ) AS col0 FROM tab2 AS cor0 query I rowsort label-5659 @@ -35775,7 +35775,7 @@ SELECT DISTINCT 7 * 21 + + - ( - col1 ) FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - -3 -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 "\(\- 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\) \+ 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 ALL + + 10 + ( COUNT ( * ) ) AS col1, - COUNT ( * ) AS col1 FROM tab1 AS cor0 query I rowsort @@ -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 Int32\)\) 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 @@ -47895,7 +47895,7 @@ SELECT - col1 + + - col1 AS col0 FROM tab1 AS cor0 WHERE ( NOT NULL IS NULL ) # 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 "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(17\) / 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(17\) / Int64\(91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col2, 17 / 91 AS col2 FROM tab2 AS cor0 WHERE col2 IS NULL query I rowsort @@ -49745,7 +49745,7 @@ SELECT DISTINCT col0 * 55 FROM tab2 # 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 "count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, ( + 13 ) AS col2 FROM tab0 query I rowsort label-8188 diff --git a/data/sqlite/random/aggregates/slt_good_122.slt b/data/sqlite/random/aggregates/slt_good_122.slt index 1bab29e..33edaf1 100644 --- a/data/sqlite/random/aggregates/slt_good_122.slt +++ b/data/sqlite/random/aggregates/slt_good_122.slt @@ -1355,7 +1355,7 @@ SELECT ALL + MAX ( ALL + - col0 ) + SUM ( ALL - - 38 ) * COUNT ( * ) * 26 / + 10 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -180576 -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\(48\) \* Int64\(\-57\) \* 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(48\) \* Int64\(\-57\) \* Int64\(66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, 48 * - 57 * 66 AS col2 FROM tab1 AS cor0 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 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\. 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 @@ -9082,7 +9082,7 @@ SELECT - SUM ( - - 56 ) AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 76 -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\(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\(\*\) )?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 COUNT ( * ) AS col1, 76 AS col1 FROM tab0 AS cor0 query I rowsort @@ -17940,7 +17940,7 @@ SELECT ALL 32 col0 FROM tab1 AS cor0 WHERE NULL IS NULL # 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 "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( + COUNT ( * ) ) AS col2, - COUNT ( * ) AS col2 FROM tab0 AS cor0 query I rowsort label-2956 @@ -19902,7 +19902,7 @@ SELECT DISTINCT - - col1 FROM tab1 WHERE NOT - - col1 >= NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -35 # Datafusion - Expected - 3 -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\(\*\) AS col0" at position 1 have the 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\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 35 AS col0, ( COUNT ( * ) ) AS col0 FROM tab0 query II rowsort label-3283 @@ -22555,7 +22555,7 @@ SELECT ALL * FROM tab0 AS cor0 WHERE NOT + ( ( - CAST ( + - col1 AS INTEGER ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - -168 -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\(\-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\(\*\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-56\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) * - COUNT ( * ) AS col1, - 56 * + COUNT ( * ) AS col1 FROM tab0 AS cor0 query I rowsort @@ -28545,7 +28545,7 @@ SELECT DISTINCT - col2 - - + col1 AS col0 FROM tab0 cor0 WHERE NOT ( NULL ) NOT # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab0 AS cor0 query I rowsort label-4711 @@ -32786,7 +32786,7 @@ SELECT COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NOT + CAST ( + ( - + 42 ) AS INT # Datafusion - Datafusion expected results: # Datafusion - Expected - -7104 # Datafusion - Expected - -1257 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(tab1\.col2\)\) \* Int64\(74\) AS col0" at position 0 and "\(\- min\(Int64\(\-35\)\)\) \* Int64\(\-36\) \+ 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\(tab1\.col2\)\) \* Int64\(74\) AS col0" at position 0 and "\(\- min\(Int64\(\-35\)\)\) \* Int64\(\-36\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - MAX ( + col2 ) * 74 AS col0, - MIN ( + - 35 ) * - 36 + + + COUNT ( * ) AS col0 FROM tab1 query I rowsort label-5421 @@ -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 Int32\)\) 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 @@ -40284,7 +40284,7 @@ SELECT DISTINCT - col2 AS col0 FROM tab2 cor0 WHERE 41 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 27 -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\) AS col0" at position 1 have the same name\. Consider aliasing \("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\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col0, 27 AS col0 FROM tab1 AS cor0 query I rowsort @@ -43781,7 +43781,7 @@ SELECT + col2 * + + 41 AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 195 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) \* \(\- 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 "Int64\(\-65\) \* \(\- 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 ALL - 65 * - + COUNT ( * ) AS col1, + COUNT ( * ) AS col1 FROM tab1 query I rowsort label-7229 @@ -44169,7 +44169,7 @@ SELECT DISTINCT - - 20 * col2 * + + col1 * + - col2 * 43 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 4 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, 4 AS col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: @@ -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 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\. SELECT - CAST ( NULL AS INTEGER ) + SUM ( DISTINCT col0 ) AS col0, COUNT ( * ) col0 FROM tab2 AS cor0 query I rowsort @@ -50342,7 +50342,7 @@ SELECT DISTINCT + col1 - 27 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 39 -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\(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\(\*\) )?AS col1" at position 0 and "Int64\(39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) col1, 39 AS col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: @@ -55479,7 +55479,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # 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 "sum\(tab2\.col2\) / 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 "sum\(tab2\.col2\) / 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, + SUM ( ALL + + col2 ) / COUNT ( * ) AS col0 FROM tab2 query I rowsort label-9147 @@ -59723,7 +59723,7 @@ SELECT DISTINCT 37 AS col2, - COUNT ( * ) / - COUNT ( * ) AS col2 FROM tab2 AS c # Datafusion - Datafusion expected results: # Datafusion - Expected - -54 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-54\) 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\(\-54\) 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 ( - 54 ) AS col0, COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_123.slt b/data/sqlite/random/aggregates/slt_good_123.slt index 5f2bb8f..4023b7b 100644 --- a/data/sqlite/random/aggregates/slt_good_123.slt +++ b/data/sqlite/random/aggregates/slt_good_123.slt @@ -2189,7 +2189,7 @@ SELECT + col2 AS col2 FROM tab2 AS cor0 WHERE NOT + col2 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -39 -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\(\-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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(\-39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col0, + ( - 39 ) AS col0 FROM tab2 cor0 query I rowsort @@ -24922,7 +24922,7 @@ SELECT + - 23 AS col0 FROM tab1 WHERE 90 * + - 7 * CAST ( + col0 AS FLOAT8 ) IS # Datafusion - Datafusion expected results: # Datafusion - Expected - -86 # Datafusion - Expected - 144 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(89\) AS col2" at position 0 and "Int64\(48\) \* 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\(89\) AS col2" at position 0 and "Int64\(48\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) - + 89 AS col2, 48 * COUNT ( * ) AS col2 FROM tab1 query I rowsort label-4096 @@ -26087,7 +26087,7 @@ SELECT DISTINCT - 13 * - 23 - + col2 AS col1, col1 * + + col2 col1 FROM tab2 # 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 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\(31\) 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 + 31 AS col1, COUNT ( * ) AS col1 FROM tab0 query I rowsort label-4280 @@ -30423,7 +30423,7 @@ SELECT + - MIN ( + + col0 ) AS col2 FROM tab1 AS cor0 # 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 "count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(\-21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) col0, - 21 AS col0 FROM tab2 query III rowsort @@ -30812,7 +30812,7 @@ SELECT DISTINCT + ( 6 ) - + col0 AS col1 FROM tab1 WHERE NOT ( col0 ) + + + col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \+ count\(Int64\(74\)\) 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\(37\) \+ count\(Int64\(74\)\) 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 37 + + COUNT ( 74 ) col1, COUNT ( * ) AS col1 FROM tab2 query III rowsort @@ -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 Int32\)" 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: @@ -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 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\. SELECT + ( + + CAST ( - - COUNT ( * ) AS FLOAT8 ) ) * - CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) AS col1 FROM tab1 AS cor0 query III rowsort @@ -41686,7 +41686,7 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE + ( col0 ) BETWEEN + col1 * + - col0 A # Datafusion - Datafusion expected results: # Datafusion - Expected - 237 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \* count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(79\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 79 * + COUNT ( * ) AS col1, + 96 AS col1 FROM tab2 AS cor0 query I rowsort @@ -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 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\. SELECT ALL + - CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0 query II rowsort @@ -46409,7 +46409,7 @@ SELECT - 67 * COUNT ( * ) * - 47 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -46 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) 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\(\-46\) 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 - 46 AS col1, COUNT ( * ) AS col1 FROM tab2 AS cor0 query III rowsort @@ -47031,7 +47031,7 @@ SELECT DISTINCT + - 7 AS col0 FROM tab2 AS cor0 WHERE NOT ( - col1 ) 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 col1" at position 0 and "\(\- sum\(\(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "\(\- sum\(\(\- CAST\(NULL AS Float64\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, - SUM ( - CAST ( NULL AS FLOAT8 ) ) AS col1 FROM tab2 AS cor0 query I rowsort label-7743 @@ -50102,7 +50102,7 @@ SELECT ALL + COUNT ( col2 ) AS col2 FROM tab2 # 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\(\*\) 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\(\*\) )?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 ( * ) AS col0, COUNT ( * ) AS col0 FROM tab1, tab1 AS cor0 query I rowsort label-8242 @@ -56020,7 +56020,7 @@ SELECT ALL - 34, col0 FROM tab0 # 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 "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col1, - COUNT ( * ) col1 FROM tab0 query III rowsort diff --git a/data/sqlite/random/aggregates/slt_good_124.slt b/data/sqlite/random/aggregates/slt_good_124.slt index e72ccd7..f7bd159 100644 --- a/data/sqlite/random/aggregates/slt_good_124.slt +++ b/data/sqlite/random/aggregates/slt_good_124.slt @@ -759,7 +759,7 @@ SELECT DISTINCT - ( + COUNT ( * ) ) AS col2 FROM tab0 WHERE NULL IS NOT NULL # 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 "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) col2, - COUNT ( * ) AS col2 FROM tab2 query I rowsort @@ -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 Int32\) \+ \(\- \(\- 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 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\. SELECT DISTINCT - + CAST ( NULL AS INTEGER ) AS col1, + ( + + COUNT ( * ) ) AS col1 FROM tab2 AS cor0 query III rowsort @@ -17200,7 +17200,7 @@ SELECT DISTINCT 36 AS col2, + MAX ( ( + col2 ) ) AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -121 -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\(DISTINCT \(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "sum\(DISTINCT \(\- tab2\.col2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col1, SUM ( DISTINCT + - col2 ) col1 FROM tab2 query III rowsort @@ -21530,7 +21530,7 @@ SELECT ALL - col2, + col0 * + ( - + col1 ) AS col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) 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\(76\) 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 76 AS col2, COUNT ( * ) AS col2 FROM tab1 cor0 query II rowsort @@ -24896,7 +24896,7 @@ SELECT + 6 - - col2 * + ( + - ( col1 ) ) AS col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -13 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 "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 - 13 AS col1, + COUNT ( * ) AS col1 FROM tab2 query I rowsort label-4073 @@ -33461,7 +33461,7 @@ SELECT - ( - - col2 ) AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -30 -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\(\-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 "Int64\(\-30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) col2, - 30 AS col2 FROM tab1 query I rowsort @@ -47093,7 +47093,7 @@ SELECT DISTINCT + + 84 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 "\(\- 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\(\*\)\) 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 ( * ) AS col1, + COUNT ( * ) AS col1 FROM tab1 AS cor0 query I rowsort @@ -47916,7 +47916,7 @@ SELECT 14 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) 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\(21\) 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 21 AS col0, COUNT ( * ) + COUNT ( * ) AS col0 FROM tab2 cor0 query II rowsort @@ -52286,7 +52286,7 @@ SELECT ALL - col2 * + 57 col1 FROM tab1 # Datafusion - Expected - 84 # Datafusion - Expected - 3 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT Int64\(84\)\) 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 "sum\(DISTINCT Int64\(84\)\) 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 + SUM ( DISTINCT + 84 ) col2, COUNT ( * ) col2, + + 65 + - COUNT ( * ) FROM tab1 query I rowsort @@ -57584,7 +57584,7 @@ SELECT 71 * - + ( - + 46 ) FROM tab2 # 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 "Int64\(64\) \* 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\(64\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COUNT ( * ) AS col1, + 64 * + COUNT ( * ) AS col1 FROM tab1 AS cor0 query II rowsort diff --git a/data/sqlite/random/aggregates/slt_good_125.slt b/data/sqlite/random/aggregates/slt_good_125.slt index 9c7bd90..377f0a3 100644 --- a/data/sqlite/random/aggregates/slt_good_125.slt +++ b/data/sqlite/random/aggregates/slt_good_125.slt @@ -5517,7 +5517,7 @@ SELECT * FROM tab2 WHERE NOT 36 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) 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\(22\) 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 + 22 AS col1, COUNT ( * ) AS col1 FROM tab2 query I rowsort label-907 @@ -10463,7 +10463,7 @@ SELECT ALL - + 12 * - col0 FROM tab2 AS cor0 WHERE col1 NOT BETWEEN NULL AND - - # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 52 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, 52 AS col2 FROM tab1 # Datafusion - Datafusion expected results: @@ -14667,7 +14667,7 @@ SELECT ALL COUNT ( * ), + COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \+ Int64\(\-25\) \+ Int64\(7\) 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\(50\) \+ Int64\(\-25\) \+ Int64\(7\) 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 + 50 + - 25 + 7 AS col1, COUNT ( * ) col1 FROM tab2 cor0 WHERE NOT col1 < col0 query II rowsort @@ -50216,7 +50216,7 @@ SELECT + ( - + col0 ) + + col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -17 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-17\) 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\) 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 AS col2, COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1 query I rowsort @@ -58772,7 +58772,7 @@ SELECT ALL - ( - + ( CAST ( col0 AS INTEGER ) ) ) * - 14 FROM tab0 # 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 "max\(cor0\.col2\) 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\(cor0\.col2\) 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 ( ALL + col2 ) AS col1, COUNT ( * ) AS col1 FROM tab1 AS cor0 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_126.slt b/data/sqlite/random/aggregates/slt_good_126.slt index 19f8872..1bbdd51 100644 --- a/data/sqlite/random/aggregates/slt_good_126.slt +++ b/data/sqlite/random/aggregates/slt_good_126.slt @@ -4036,7 +4036,7 @@ SELECT COUNT ( * ) * + ( + COUNT ( * ) ) AS col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -99 -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\(\-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 "Int64\(\-99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) col0, - 99 AS col0 FROM tab2 query I rowsort label-668 @@ -7531,7 +7531,7 @@ SELECT DISTINCT MIN ( ALL - - 10 ) AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) 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\(33\) 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 + 33 AS col1, COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1 query I rowsort @@ -18147,7 +18147,7 @@ SELECT ALL + MAX ( ALL + - ( - - col2 ) ) 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\(\*\) 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\(\*\) )?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 ( * ) AS col0, COUNT ( * ) AS col0 FROM tab0 AS cor0 query I rowsort @@ -22047,7 +22047,7 @@ SELECT - CAST ( NULL AS INTEGER ) * - + col0 * + + col0 + - ( - 5 ) * col2 FROM # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 81 -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\(\*\) \* 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 "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 DISTINCT - - COUNT ( * ) AS col1, COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1 query I rowsort @@ -48696,7 +48696,7 @@ SELECT + col1 / 89 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 4 -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\(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\(4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, 4 AS col1 FROM tab2 query II rowsort @@ -52198,7 +52198,7 @@ SELECT - col0 + + col1 / + col0 FROM tab1 AS cor0 WHERE NOT col1 IS NULL # 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 "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\(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 + + 51 AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0 query I rowsort label-8596 diff --git a/data/sqlite/random/aggregates/slt_good_127.slt b/data/sqlite/random/aggregates/slt_good_127.slt index 6f47960..af0a154 100644 --- a/data/sqlite/random/aggregates/slt_good_127.slt +++ b/data/sqlite/random/aggregates/slt_good_127.slt @@ -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 Int32\) \- 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 @@ -12365,7 +12365,7 @@ SELECT ALL + COUNT ( * ) * 45 * + + 91 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 # 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\(\*\) 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\(\*\) )?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 ( * ) AS col2, + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 query II rowsort @@ -16489,7 +16489,7 @@ SELECT DISTINCT + + 1 * 80 FROM tab2 WHERE ( + - col1 ) + + col1 BETWEEN NULL AN # 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\(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\(80\) 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 + 80 AS col0, COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT 25 IS NOT NULL query I rowsort @@ -29300,7 +29300,7 @@ SELECT - col1 AS col2, col2 AS col1 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\(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 "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 + + COUNT ( * ) col2, COUNT ( * ) AS col2 FROM tab1 AS cor0 query I rowsort @@ -30662,7 +30662,7 @@ SELECT * FROM tab2 cor0 WHERE NOT ( + col0 + + + 83 IS 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\(\*\)\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "max\(\(\- 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\(1\)\) AS count\(\*\)\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "max\(\(\- cor0\.col1\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) / + COUNT ( * ) AS col0, + MAX ( - col1 ) col0 FROM tab0 AS cor0 query I rowsort @@ -31318,7 +31318,7 @@ SELECT - + 87 AS col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -747 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) \* 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\(\-83\) \* 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 - 83 * COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab2, tab2 AS cor0 query I rowsort label-5121 @@ -34789,7 +34789,7 @@ SELECT - col1 * col0 AS col0, col1 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 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\(\*\)\) 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 ( * ) ) AS col0, COUNT ( * ) AS col0 FROM tab0 AS cor0 query I rowsort @@ -36877,7 +36877,7 @@ SELECT ALL + 93 * + col1 + - 64, + 74 AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -37 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-37\) 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\(\-37\) 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 - 37 AS col0, COUNT ( * ) col0 FROM tab0 cor0 query I rowsort @@ -37299,7 +37299,7 @@ SELECT DISTINCT col2 AS col1 FROM tab0 AS cor0 WHERE + 46 >= NULL # 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 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\(\*\)\) 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 ( * ) AS col0, + COUNT ( * ) AS col0 FROM tab2 AS cor0 query I rowsort @@ -39358,7 +39358,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) / Int64\(\-42\) \+ 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\(92\) / Int64\(\-42\) \+ 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 92 / + - 42 + + + COUNT ( * ) AS col2, - COUNT ( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 query I rowsort @@ -51895,7 +51895,7 @@ SELECT ALL * FROM tab0 WHERE NOT + 20 + - col1 IS NOT NULL # 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\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 COUNT ( * ) AS col2, ( - - 81 ) AS col2 FROM tab0 query II rowsort @@ -52530,7 +52530,7 @@ SELECT + 19 + - 68 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -168 -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\(\*\)\) \* min\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* min\(Int64\(56\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, - COUNT ( * ) * MIN ( ALL + 56 ) AS col1 FROM tab0 query II rowsort label-8623 @@ -60116,7 +60116,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -53 -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\(DISTINCT 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "\(\- max\(DISTINCT Int64\(53\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col2, - MAX ( DISTINCT 53 ) AS col2 FROM tab2 query II rowsort diff --git a/data/sqlite/random/aggregates/slt_good_128.slt b/data/sqlite/random/aggregates/slt_good_128.slt index 1fdb8b3..49b727f 100644 --- a/data/sqlite/random/aggregates/slt_good_128.slt +++ b/data/sqlite/random/aggregates/slt_good_128.slt @@ -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 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\. SELECT ALL - + 58 * - CAST ( NULL AS INTEGER ) * + + COUNT ( * ) AS col1, + MIN ( DISTINCT + col0 ) AS col1 FROM tab0 AS cor0 query I rowsort @@ -12999,7 +12999,7 @@ SELECT - 16 AS col2, col2 FROM tab2 AS cor0 # 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 "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\(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 51 AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0 query I rowsort @@ -15537,7 +15537,7 @@ SELECT DISTINCT - col1 AS col0, - 50 FROM tab2 AS 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 "\(\- sum\(\(\- cor0\.col1\)\)\) 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\)\)\) 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 ( - col1 ) ) ) AS col1, COUNT ( * ) col1 FROM tab1 AS cor0 query I rowsort label-2531 @@ -25382,7 +25382,7 @@ SELECT ALL col2 FROM tab1 AS cor0 WHERE ( ( + col1 ) ) IS NULL # 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\(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 "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 DISTINCT + COUNT ( * ) AS col0, + 40 AS col0 FROM tab0 cor0 WHERE NOT - col2 - col2 IS NOT NULL query III rowsort @@ -31849,7 +31849,7 @@ SELECT - col2 AS col2, + CAST ( + - 57 AS INTEGER ) * + col2 * + - 4 * + - col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 68 -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\(10\)\) \* 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(56\) \+ \(\- Int64\(10\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, + 56 + - + 10 * COUNT ( * ) + + 12 AS col0 FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) * - + 62 * - + col0 NOT BETWEEN + col2 AND NULL query II rowsort @@ -40660,7 +40660,7 @@ SELECT ALL col2 * - col1 * - - 61 AS col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 20 -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\(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 "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* 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 DISTINCT - - COUNT ( * ) * + + COUNT ( * ) col1, + 20 AS col1 FROM tab1 AS cor0 query III rowsort @@ -41958,7 +41958,7 @@ SELECT DISTINCT + col2 + + ( - col1 ) / - 18 + + 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 "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 "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 COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab0 query I rowsort @@ -45417,7 +45417,7 @@ SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) < col0 * + col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) 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\(85\) 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 85 AS col2, + COUNT ( * ) AS col2 FROM tab0 AS cor0 # Datafusion - Types were automatically converted from: @@ -49776,7 +49776,7 @@ 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 "Int64\(\-96\) 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\(\-96\) 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 - 96 AS col2, + COUNT ( * ) AS col2 FROM tab2 AS cor0 query II rowsort label-8175 @@ -50065,7 +50065,7 @@ SELECT DISTINCT col2 * + 66 + - ( + ( - col0 ) ) AS col2 FROM tab0 AS cor0 WHERE # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -99 -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\(\-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\(\*\) )?AS col2" at position 0 and "Int64\(\-99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, - 99 AS col2 FROM tab0 AS cor0 WHERE NULL = - col2 / - col0 query I rowsort label-8224 @@ -55383,7 +55383,7 @@ NULL # 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 "count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, + 54 AS col1 FROM tab0 AS cor0 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_129.slt b/data/sqlite/random/aggregates/slt_good_129.slt index 33cc6f1..11b381b 100644 --- a/data/sqlite/random/aggregates/slt_good_129.slt +++ b/data/sqlite/random/aggregates/slt_good_129.slt @@ -4557,7 +4557,7 @@ SELECT 71 * - - COUNT ( * ) + MAX ( DISTINCT + col1 ) AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 99 -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\(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\(\*\) )?AS col2" at position 0 and "Int64\(99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, + 99 AS col2 FROM tab1 cor0 WHERE NULL IS NOT NULL 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..fb113c1 100644 --- a/data/sqlite/random/aggregates/slt_good_13.slt +++ b/data/sqlite/random/aggregates/slt_good_13.slt @@ -326,7 +326,7 @@ SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - 79 AND + + 47 # 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 "\(\- \(\- 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 "\(\- \(\- 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 - - COUNT ( * ) AS col2, COUNT ( * ) col2 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL query I rowsort @@ -10339,7 +10339,7 @@ SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 ) WHERE NOT NULL IS NULL # 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 "Int64\(\-21\) 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\) 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 - 21 col2, + COUNT ( * ) AS col2 FROM tab0 AS cor0 query I rowsort @@ -11832,7 +11832,7 @@ SELECT ALL - COUNT ( * ) * + - 23 + + 92 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1559 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \* Int64\(17\) \+ Int64\(9\) \+ \(\- min\(Int64\(\-20\)\)\) 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\(90\) \* Int64\(17\) \+ Int64\(9\) \+ \(\- min\(Int64\(\-20\)\)\) 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 90 * + 17 + + + 9 + - MIN ( ALL - 20 ) AS col1, + COUNT ( * ) AS col1 FROM tab1 AS cor0 query I rowsort label-1961 @@ -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 Int32\)\) 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 @@ -25244,7 +25244,7 @@ SELECT * FROM tab1 AS cor0 WHERE NOT col2 > + + col1 # 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\(98\)\)\)\) 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 "\(\- \(\- count\(Int64\(98\)\)\)\) 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 DISTINCT - - COUNT ( ALL + 98 ) AS col1, - COUNT ( * ) + COUNT ( * ) AS col1 FROM tab1 AS cor0 query II rowsort @@ -25656,7 +25656,7 @@ SELECT DISTINCT + COUNT ( * ) AS col2, - ( + 73 ) AS col0 FROM tab0 AS cor0 # Datafusion - Expected - -3 # Datafusion - Expected - 3 # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col0, COUNT ( * ) AS col0, + - MAX ( ALL - ( - 25 ) ) FROM tab1 AS cor0 query I rowsort label-4265 @@ -28563,7 +28563,7 @@ SELECT - col0 AS col0 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -68 # Datafusion - Expected - -83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(71\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(cor0\.col2\) \+ 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\(71\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "count\(cor0\.col2\) \+ Int64\(\-86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 71 + COUNT ( * ) AS col2, + COUNT ( + col2 ) + - 86 col2 FROM tab0 AS cor0 query I rowsort label-4745 @@ -30511,7 +30511,7 @@ SELECT col1 + col2 * - col0 + col2 AS col2 FROM tab1 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 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\(89\) 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 + 89 col2, COUNT ( * ) col2 FROM tab2 AS cor0 query I rowsort @@ -32169,7 +32169,7 @@ SELECT ALL + 49 / 29 AS col0 FROM tab2 AS cor0 # 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 "Int64\(0\) 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\(0\) 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 - 0 AS col1, + COUNT ( * ) AS col1 FROM tab0 AS cor0 query III rowsort @@ -44461,7 +44461,7 @@ SELECT - col2 + + - col1 FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 99 -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\(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 "Int64\(99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col0, 99 AS col0 FROM tab0 AS cor0 query I rowsort label-7376 @@ -45100,7 +45100,7 @@ SELECT 38 * + 70 AS col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) 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\(\-5\) 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 - 5 AS col0, COUNT ( * ) AS col0 FROM tab2 AS cor0 query I rowsort label-7483 @@ -48939,7 +48939,7 @@ SELECT ALL - + col2 + + + 49 FROM tab1 AS cor0 # 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 "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\(\*\) )?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 ( * ) AS col0, COUNT ( * ) col0 FROM tab0 WHERE - 91 + + + CAST ( NULL AS INTEGER ) - + 98 * + 64 IS NOT NULL query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_14.slt b/data/sqlite/random/aggregates/slt_good_14.slt index 7e61c5b..089b792 100644 --- a/data/sqlite/random/aggregates/slt_good_14.slt +++ b/data/sqlite/random/aggregates/slt_good_14.slt @@ -4321,7 +4321,7 @@ SELECT - col0 AS col0 FROM tab2 WHERE NOT col0 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -150 -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\(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\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "sum\(Int64\(\-50\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, SUM ( - 50 ) AS col2 FROM tab2 query I rowsort label-704 @@ -4584,7 +4584,7 @@ SELECT - 46 / + col1 AS col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 87 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) col2, 87 AS col2 FROM tab0 query I rowsort @@ -5647,7 +5647,7 @@ SELECT col1 * - CAST ( 54 AS INTEGER ) + col1 AS 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\(\*\)\)\) 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\(\*\)\)\) 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 ( * ) ) AS col2, COUNT ( * ) col2 FROM tab2 query I rowsort label-923 @@ -17753,7 +17753,7 @@ SELECT DISTINCT 93 AS col1, - COUNT ( * ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -2 -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\)\) / 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\(6\)\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, + ( - + 6 ) / + COUNT ( * ) AS col1 FROM tab2 query I 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 Int32\)\)\) 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 @@ -26230,7 +26230,7 @@ NULL # 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 "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 "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, COUNT ( * ) AS col2 FROM tab0 AS cor0 query I rowsort @@ -34909,7 +34909,7 @@ SELECT + col2 * - col2 + + col0 AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 37 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COUNT ( * ) AS col1, 37 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 query I rowsort @@ -44389,7 +44389,7 @@ SELECT ALL - + col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1715 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \* Int64\(35\) 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\(49\) \* Int64\(35\) 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 49 * 35 AS col2, + COUNT ( * ) col2 FROM tab2 AS cor0 query I rowsort label-7267 @@ -47023,7 +47023,7 @@ SELECT DISTINCT 60 FROM tab1 AS cor0 WHERE NOT col0 NOT IN ( - 41 ) # 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 "\(\- Int64\(0\)\) 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\(0\)\) 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 - - 0 col2, + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE col0 * - col1 IS NOT NULL query I rowsort @@ -49635,7 +49635,7 @@ SELECT DISTINCT col1 * - - col2 * col2 + - col1 * 9 col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) / count\(Int64\(1\)\) AS count\(\*\) 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\(97\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 97 / COUNT ( * ) AS col1, 72 AS col1 FROM tab1 AS cor0 query III rowsort @@ -52452,7 +52452,7 @@ SELECT ALL - col0, 40 AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 156 # Datafusion - Expected - -25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \* count\(Int64\(1\)\) AS count\(\*\) 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\(52\) \* count\(Int64\(1\)\) (AS count\(\*\) )?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 52 * COUNT ( * ) AS col2, - 25 AS col2 FROM tab0 query I rowsort label-8602 @@ -54433,7 +54433,7 @@ SELECT ALL col0 * + 31 AS col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(25\) 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\(25\) 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 ( * ) ) ) + 25 AS col0, + COUNT ( * ) AS col0 FROM tab1 AS cor0 query III rowsort @@ -60964,7 +60964,7 @@ SELECT ALL ( 96 ), - 80 col0 FROM tab0 AS cor0 WHERE ( - 69 ) IS NOT NULL # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) col1, COUNT ( * ) AS col1 FROM tab2 AS cor0 query I rowsort label-9982 diff --git a/data/sqlite/random/aggregates/slt_good_15.slt b/data/sqlite/random/aggregates/slt_good_15.slt index 9236940..853deb2 100644 --- a/data/sqlite/random/aggregates/slt_good_15.slt +++ b/data/sqlite/random/aggregates/slt_good_15.slt @@ -6488,7 +6488,7 @@ SELECT DISTINCT + COUNT ( * ), COUNT ( * ) AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 92 -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\(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 "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 COUNT ( * ) col0, 92 AS col0 FROM tab0 AS cor0 query I rowsort @@ -27120,7 +27120,7 @@ SELECT DISTINCT + + ( + + 26 ) AS col1 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 15 -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\(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 "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 COUNT ( * ) AS col0, + 15 col0 FROM tab1 AS cor0 query I rowsort @@ -28798,7 +28798,7 @@ SELECT + 57 + + - col1 * col0 col2 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 50 -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\(53\) \- 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\(53\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - - COUNT ( * ) AS col1, 53 - COUNT ( * ) AS col1 FROM tab0 AS cor0 query I rowsort @@ -30048,7 +30048,7 @@ SELECT ALL 68 + - - MIN ( - col0 ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -225 # 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\(\*\)\) 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\(25\) \* \(\- 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 + 25 * - COUNT ( * ) AS col2, COUNT ( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 query I rowsort label-4912 @@ -31630,7 +31630,7 @@ SELECT + 76 FROM tab2 WHERE NOT - 56 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) 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\(18\) 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 + 18 AS col1, + COUNT ( * ) AS col1 FROM tab1 query I rowsort label-5168 @@ -35231,7 +35231,7 @@ SELECT + col2 * + ( + - col0 ) AS col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -81 # Datafusion - Expected - 3 -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 "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\(\-27\) 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 COUNT ( * ) * - 27 AS col2, COUNT ( * ) AS col2 FROM tab2 query III rowsort @@ -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 Int32\) 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 Int32\) 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 @@ -43461,7 +43461,7 @@ SELECT DISTINCT + col0, - col0 / + - col1 + - 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 "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\(\*\) )?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 ( * ) col1, COUNT ( * ) AS col1 FROM tab1 AS cor0 query I rowsort @@ -45456,7 +45456,7 @@ SELECT - col2 * - col0, col0 AS col0 FROM tab1 # 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\(\*\) \* \(\- 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\(\*\)\) 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 ( * ) AS col1, + COUNT ( * ) AS col1 FROM tab2 query II 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 Int32\)\) / 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 Int32\)\) 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 @@ -49003,7 +49003,7 @@ NULL # 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 "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col1, - COUNT ( * ) AS col1 FROM tab0 AS cor0 query I rowsort label-8029 @@ -58479,7 +58479,7 @@ SELECT ALL + col1 + - 13 FROM tab0 WHERE NULL BETWEEN NULL AND NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -333 -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 "min\(\(\- tab0\.col2\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(18\) \+ \(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "min\(\(\- tab0\.col2\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(18\) \+ \(\- Int64\(85\)\) \* 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, MIN ( - col2 ) + ( + + COUNT ( * ) ) + + 18 + - + 85 * + COUNT ( * ) AS col0 FROM tab0 query III rowsort diff --git a/data/sqlite/random/aggregates/slt_good_16.slt b/data/sqlite/random/aggregates/slt_good_16.slt index 11fd29b..e12941e 100644 --- a/data/sqlite/random/aggregates/slt_good_16.slt +++ b/data/sqlite/random/aggregates/slt_good_16.slt @@ -4142,7 +4142,7 @@ SELECT DISTINCT 28 AS col2, col0 FROM tab0 # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) AS col1, + COUNT ( * ) AS col1 FROM tab2 query I rowsort label-682 @@ -5185,7 +5185,7 @@ SELECT DISTINCT - + 5 FROM tab2 AS cor0 WHERE - ( col2 ) - - col0 + - col1 IS NU # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - -162 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col2" at position 0 and "sum\(Int64\(2\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ 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\(71\) AS col2" at position 0 and "sum\(Int64\(2\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ 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 71 AS col2, SUM ( 2 ) * - + COUNT ( * ) + + COUNT ( * ) - + COUNT ( * ) AS col2 FROM tab0, tab0 AS cor0 query I rowsort @@ -10760,7 +10760,7 @@ SELECT DISTINCT col2 col0 FROM tab1 WHERE NOT + col2 * - col1 + + col1 + + col0 # 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 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\(\*\)\) 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 ( * ) AS col0, COUNT ( * ) AS col0 FROM tab0 WHERE NOT 15 IS NULL query III rowsort @@ -10883,7 +10883,7 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 + 55 IS NULL # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab2 AS cor0 query I rowsort label-1786 @@ -11538,7 +11538,7 @@ SELECT + CAST ( + + 20 AS INTEGER ) / 24 + - col2 * + + 64 + col2 col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -199 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(DISTINCT cor0\.col0\)\) 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 "\(\- sum\(DISTINCT cor0\.col0\)\) 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 - SUM ( DISTINCT col0 ) AS col2, + COUNT ( * ) AS col2 FROM tab0 AS cor0 query III rowsort @@ -15966,7 +15966,7 @@ NULL # 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 "\(\- 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 "\(\- 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, - COUNT ( * ) AS col2 FROM tab1 cor0 query III rowsort @@ -22996,7 +22996,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) 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\(26\) 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 + + 26 AS col1, + COUNT ( * ) AS col1 FROM tab1 AS cor0 query I rowsort label-3772 @@ -23046,7 +23046,7 @@ SELECT * FROM tab2 cor0 WHERE NOT + 51 * CAST ( NULL AS INTEGER ) IS NULL # 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 "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 "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, COUNT ( * ) AS col2 FROM tab1 query I rowsort @@ -29761,7 +29761,7 @@ SELECT - ( + 53 ) AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) 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\(\-70\) 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 - 70 AS col2, COUNT ( * ) col2 FROM tab1 query I rowsort @@ -30141,7 +30141,7 @@ SELECT DISTINCT + 48 * col1 + - - 11 + - - col2 AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(95\)\) 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\(95\)\) 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 - ( 95 ) col1, + COUNT ( * ) AS col1 FROM tab0 cor0 query I rowsort @@ -31395,7 +31395,7 @@ SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN - col2 - + ( + - ( - 53 ) ) * # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -199 -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\(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\(\*\) )?AS col1" at position 0 and "\(\- sum\(cor0\.col0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) col1, - SUM ( ALL + + col0 ) AS col1 FROM tab0 AS cor0 query III rowsort @@ -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 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\. SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) AS col1, - 60 - - ( 25 ) - ( + 42 ) AS col1 FROM tab1 query I rowsort @@ -32889,7 +32889,7 @@ SELECT + - col1 FROM tab1 AS cor0 WHERE - col1 + - + ( + - col0 ) NOT BETWEEN - # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) 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 "Int64\(21\) 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 DISTINCT 21 AS col1, + COUNT ( * ) * COUNT ( * ) AS col1 FROM tab1 cor0 query III rowsort @@ -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 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\. 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 @@ -46041,7 +46041,7 @@ SELECT - MAX ( DISTINCT + CAST ( - col1 AS INTEGER ) ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 63 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col0, + 63 AS col0 FROM tab2 AS cor0 query I rowsort label-7609 @@ -52483,7 +52483,7 @@ SELECT ALL 33 col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1335 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) \* Int64\(49\) \+ Int64\(\-61\) 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\(\-26\) \* Int64\(49\) \+ Int64\(\-61\) 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 - 26 * 49 + - 61 AS col2, + COUNT ( * ) AS col2 FROM tab1 AS cor0 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..c7d8fff 100644 --- a/data/sqlite/random/aggregates/slt_good_17.slt +++ b/data/sqlite/random/aggregates/slt_good_17.slt @@ -7524,7 +7524,7 @@ SELECT DISTINCT + - 5 / - - 65 FROM tab2 AS cor0 # 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\(\*\) 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\(\*\) )?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 ( * ) AS col1, - COUNT ( * ) AS col1 FROM tab2, tab0 cor0 query I rowsort label-1228 @@ -8323,7 +8323,7 @@ SELECT col1, col0 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 46 # Datafusion - Expected - 51 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT tab2\.col1\) AS col0" at position 1 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 "min\(DISTINCT tab2\.col1\) AS col0" at position 1 and "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT MIN ( ALL + col0 ), MIN ( DISTINCT ( col1 ) ) AS col0, COUNT ( * ) AS col0 FROM tab2 query II rowsort @@ -8622,7 +8622,7 @@ SELECT ALL + ( - COUNT ( + + col2 ) ) col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) 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\(87\) 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 + 87 AS col0, + COUNT ( * ) AS col0 FROM tab0 query I rowsort @@ -13286,7 +13286,7 @@ SELECT * FROM tab1 WHERE col0 BETWEEN + col0 AND NULL # 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 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "\(\- Int64\(9\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, - ( + 9 ) AS col0 FROM tab0 query I rowsort @@ -31367,7 +31367,7 @@ SELECT DISTINCT - col0 + - 36 - - col1 + + col1 AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -39 -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\(\-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\(\*\) )?AS col2" at position 0 and "Int64\(\-39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, - 39 AS col2 FROM tab0 query I rowsort @@ -48241,7 +48241,7 @@ SELECT ALL 51 + - col0 FROM tab0 # 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 "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(17\) 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\(17\) 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 ( * ) * + + 17 AS col1, + COUNT ( * ) AS col1 FROM tab0 query III rowsort @@ -53767,7 +53767,7 @@ SELECT DISTINCT + COUNT ( * ) * + MIN ( DISTINCT - 89 ) FROM tab1 AS cor0 # 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 "Int64\(\-24\) \+ count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(\-24\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?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 - 24 + COUNT ( * ) col2, - COUNT ( col0 ) AS col2 FROM tab0 AS cor0 query I rowsort label-8818 @@ -56534,7 +56534,7 @@ SELECT col2 * - + 59 + + col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -19158 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \* \(\- sum\(tab2\.col1\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-52\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* \(\- 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\(99\) \* \(\- sum\(tab2\.col1\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-52\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* \(\- 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 + 99 * - SUM ( col1 ) + - + COUNT ( * ) * - 52 + - - COUNT ( * ) * - COUNT ( * ) AS col0, COUNT ( * ) AS col0 FROM tab2 query I rowsort @@ -59768,7 +59768,7 @@ SELECT - - col2 * + col1 * + - col1, - 29 FROM tab2 WHERE NOT + - col0 * col2 >= # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) \+ Int64\(\-33\) 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 "Int64\(66\) \+ Int64\(\-33\) 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 66 + + - 33 AS col0, 61 - COUNT ( * ) AS col0 FROM tab2 query II rowsort label-9820 diff --git a/data/sqlite/random/aggregates/slt_good_18.slt b/data/sqlite/random/aggregates/slt_good_18.slt index a31fbcb..2c96624 100644 --- a/data/sqlite/random/aggregates/slt_good_18.slt +++ b/data/sqlite/random/aggregates/slt_good_18.slt @@ -1632,7 +1632,7 @@ SELECT - 58 * COUNT ( * ) FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -45 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) 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\) 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 - 45 AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0 query I 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 Int32\) / 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 @@ -5935,7 +5935,7 @@ SELECT - - col1 - 9 AS col0 FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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\(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 DISTINCT + 13 AS col2, + COUNT ( * ) AS col2 FROM tab1 AS cor0 query I rowsort @@ -6718,7 +6718,7 @@ SELECT + col0, 86 AS col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -33 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) 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\(\-33\) 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 ( - 33 ) AS col1, + COUNT ( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1 query I rowsort label-1109 @@ -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 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\. SELECT + CAST ( - + AVG ( CAST ( + col2 AS INTEGER ) ) AS INTEGER ) AS col2, ( + - COUNT ( * ) ) / COUNT ( * ) AS col2 FROM tab2 AS cor0 query III rowsort @@ -12276,7 +12276,7 @@ SELECT ALL + col1 - + col2 * 7 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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\(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 64 AS col2, + COUNT ( * ) col2 FROM tab0 WHERE NULL IS NULL query I rowsort @@ -30648,7 +30648,7 @@ SELECT + col2 / + + col1 + + col0 + col1 FROM tab2 WHERE NOT + col1 * - + col0 I # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-2\) \- \(\- 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\(\*\)\) \+ Int64\(\-2\) \- \(\- 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 ALL + - COUNT ( * ) + - 2 - - COUNT ( * ) AS col1, + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1 query I rowsort @@ -31084,7 +31084,7 @@ SELECT ALL + col2 AS col1, - col0 * + col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 31 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, 31 col0 FROM tab0 AS cor0 query I rowsort @@ -39513,7 +39513,7 @@ SELECT ALL ( + 48 ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) 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\(\-61\) 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 + - 61 AS col0, + COUNT ( * ) AS col0 FROM tab0 AS cor0 query I rowsort @@ -40920,7 +40920,7 @@ SELECT DISTINCT - - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT - 23 IS NOT # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab1 AS cor0 query II 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 Int32\)\)\) 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 @@ -46194,7 +46194,7 @@ SELECT DISTINCT - 42 * 58 + + 52 FROM tab0, tab1 AS cor0 # 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\(\*\) 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\(\*\) )?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 ( * ) AS col2, ( - - COUNT ( * ) ) AS col2 FROM tab2, tab1 AS cor0 query I rowsort @@ -46538,7 +46538,7 @@ SELECT ALL + 22 * - ( - col0 ) AS col2 FROM tab2 AS cor0 WHERE - col0 - - 35 <> # 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 "Int64\(0\) 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\(0\) 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 - 0 AS col1, + COUNT ( * ) AS col1 FROM tab0 query I rowsort label-7691 @@ -46791,7 +46791,7 @@ SELECT ALL - COUNT ( * ) + - + 30 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 # 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 "\(\- \(\- max\(\(\- 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 "\(\- \(\- max\(\(\- 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 - ( - MAX ( - col1 ) ) col2, COUNT ( * ) col2 FROM tab2 AS cor0 WHERE + col0 NOT BETWEEN NULL AND + col0 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..b441b5e 100644 --- a/data/sqlite/random/aggregates/slt_good_19.slt +++ b/data/sqlite/random/aggregates/slt_good_19.slt @@ -1782,7 +1782,7 @@ SELECT * FROM tab1 AS cor0 WHERE NOT 32 / + + col1 IS NULL # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab2 cor0 query I rowsort @@ -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 Int32\) 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 @@ -12313,7 +12313,7 @@ SELECT - col2 + + 67 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 col1" at position 0 and "min\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "min\(Int64\(\-68\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, MIN ( - 68 ) AS col1 FROM tab2 WHERE NULL < + + ( - 12 ) query I rowsort @@ -13960,7 +13960,7 @@ SELECT - MIN ( DISTINCT - 12 ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(51\) 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\(\*\)\)\) \+ Int64\(51\) 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 ( * ) + + 51 AS col0, - COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab1 AS cor0 query I rowsort label-2291 @@ -24256,7 +24256,7 @@ SELECT DISTINCT - 84 - col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-61\)\) 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\(\-61\)\) 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 - - 61 AS col0, COUNT ( * ) col0 FROM tab1 AS cor0 query II rowsort label-3991 @@ -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 Int32\)\) 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 @@ -38486,7 +38486,7 @@ SELECT 19 * + 91 FROM tab1 AS cor0 # 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\(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 "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 + 34 AS col2, COUNT ( * ) AS col2 FROM tab1 AS cor0 query II rowsort @@ -39777,7 +39777,7 @@ SELECT COUNT ( * ) * 81 AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 246 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(41\) \+ \(\- 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\(82\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(41\) \+ \(\- Int64\(\-20\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 82 * + COUNT ( * ) col2, + 41 + - - 20 AS col2 FROM tab1 AS cor0 query I rowsort @@ -40974,7 +40974,7 @@ SELECT col0 + col2 * col0 AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -223 # Datafusion - Expected - 198 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(tab1\.col2\)\) AS col2" at position 0 and "sum\(DISTINCT tab1\.col1\) \* 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\(tab1\.col2\)\) AS col2" at position 0 and "sum\(DISTINCT tab1\.col1\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + - SUM ( + col2 ) AS col2, + SUM ( DISTINCT + col1 ) * COUNT ( * ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL # Datafusion - Datafusion expected results: @@ -42347,7 +42347,7 @@ SELECT + MAX ( - 19 ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 78 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col0, 78 AS col0 FROM tab1 query I rowsort @@ -45448,7 +45448,7 @@ SELECT ALL - 79 + + col1 * - 96 AS col2 FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - -241 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(84\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-18\) \+ 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\(20\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(84\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-18\) \+ Int64\(29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 20 * + COUNT ( * ) AS col0, 84 * - ( + COUNT ( * ) ) + - 18 + + 29 col0 FROM tab0 AS cor0 query I rowsort label-7480 @@ -47451,7 +47451,7 @@ SELECT + ( - col2 ) * - 71 * + col1 + + + col2 AS col1 FROM tab0 WHERE + col0 IS # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -20 -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\(\-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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(\-20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + COUNT ( * ) col2, - 20 AS col2 FROM tab2 WHERE NOT + 86 IS NULL query I rowsort @@ -48613,7 +48613,7 @@ SELECT + ( + MAX ( DISTINCT + ( - col1 ) ) ) FROM tab1 # 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 "count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(\-54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, - 54 AS col0 FROM tab1 query II rowsort @@ -51187,7 +51187,7 @@ SELECT col0 + + col2 + col2 * - 23 - + col0 * - 21 AS col1, col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4816 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) \* Int64\(56\) AS col1" at position 0 and "max\(cor0\.col1\) \+ 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\(\-86\) \* Int64\(56\) AS col1" at position 0 and "max\(cor0\.col1\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 86 * 56 AS col1, MAX ( + col1 ) + + COUNT ( * ) AS col1 FROM tab2 AS cor0 query I rowsort @@ -56167,7 +56167,7 @@ SELECT + - col1 * + - col0 FROM tab0 cor0 # 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 "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\(\*\) )?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 ( * ) AS col1, COUNT ( * ) col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL query I rowsort @@ -59416,7 +59416,7 @@ SELECT DISTINCT 90 + col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\(\- tab2\.col0\)\) \+ count\(Int64\(1\)\) AS count\(\*\) 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 "count\(\(\- tab2\.col0\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( - + col0 ) + COUNT ( * ) AS col2, 42 AS col2 FROM tab2 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..a9fe809 100644 --- a/data/sqlite/random/aggregates/slt_good_2.slt +++ b/data/sqlite/random/aggregates/slt_good_2.slt @@ -10144,7 +10144,7 @@ SELECT DISTINCT - 80 * - col0 FROM tab2 # 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 "Int64\(79\) 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\(79\) 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 79 AS col1, + COUNT ( * ) AS col1 FROM tab2 AS cor0 query III rowsort @@ -11128,7 +11128,7 @@ SELECT 84 * + 69 * - col0 + - - col2 * 86 * + col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -332 -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\(\-15\) \* 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(\-15\) \* Int64\(20\) \+ \(\- Int64\(32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, - 15 * + 20 + - ( + + 32 ) AS col0 FROM tab2 cor0 query I rowsort @@ -14825,7 +14825,7 @@ SELECT + + 52 / + col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col0" at position 0 and "Int64\(65\) \+ 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\) AS col0" at position 0 and "Int64\(65\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 16 col0, 65 + + COUNT ( * ) AS col0 FROM tab0 AS cor0 query I rowsort label-2449 @@ -15899,7 +15899,7 @@ SELECT DISTINCT - MIN ( + + ( + 80 ) ) col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 549 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \* count\(Int64\(1\)\) AS count\(\*\) 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\(61\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 61 * + + COUNT ( * ) col0, + 11 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 query I rowsort @@ -19612,7 +19612,7 @@ SELECT * FROM tab0 AS cor0 WHERE NOT ( - ( + - 72 ) ) * col2 - - ( - + col2 ) = # Datafusion - Datafusion expected results: # Datafusion - Expected - -45 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(45\)\) 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\)\) 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 - + 45 AS col2, COUNT ( * ) AS col2 FROM tab2 AS cor0 query I rowsort @@ -28788,7 +28788,7 @@ SELECT + CAST ( - - 74 AS INTEGER ) FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) 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\(16\) 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 + ( 16 ) AS col2, COUNT ( * ) AS col2 FROM tab1 query II rowsort @@ -41346,7 +41346,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 37 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col2, 37 AS col2 FROM tab1, tab0 AS cor0 query I rowsort @@ -42488,7 +42488,7 @@ SELECT 73 + - - 87 AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - -121 -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 "sum\(DISTINCT \(\- 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\(60\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "sum\(DISTINCT \(\- cor0\.col2\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 60 + + COUNT ( * ) AS col0, SUM ( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0 query I rowsort @@ -43529,7 +43529,7 @@ SELECT ALL + col0 * - col2 * - 4 + + col1 - - 50 + + col1 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\(cor0\.col2\)\)\) 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\(cor0\.col2\)\)\) 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 ( + col2 ) AS col1, + COUNT ( * ) col1 FROM tab2 cor0 query III rowsort @@ -47105,7 +47105,7 @@ SELECT DISTINCT - ( - col0 ) * + col1 + col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -19 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) 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\(\-19\) 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 - 19 AS col2, + COUNT ( * ) AS col2 FROM tab2 query III rowsort @@ -49011,7 +49011,7 @@ SELECT ALL 17 * - MAX ( ALL - col2 ) * + + COUNT ( * ) col0 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\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "\(\- count\(Int64\(27\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) col2, - COUNT ( + 27 ) AS col2 FROM tab2 query II rowsort label-8145 @@ -51684,7 +51684,7 @@ SELECT CAST ( + col0 AS INTEGER ) * + - 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\(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 "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 DISTINCT COUNT ( * ) AS col2, + COUNT ( * ) AS col2 FROM tab1 query I rowsort @@ -51729,7 +51729,7 @@ SELECT - col0 * + col2 col2, + col1 AS col0 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\(\*\)\)\) 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\(\*\)\)\) 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 ( * ) ) AS col0, COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 query III rowsort diff --git a/data/sqlite/random/aggregates/slt_good_20.slt b/data/sqlite/random/aggregates/slt_good_20.slt index 4a00f15..7eb036e 100644 --- a/data/sqlite/random/aggregates/slt_good_20.slt +++ b/data/sqlite/random/aggregates/slt_good_20.slt @@ -7933,7 +7933,7 @@ SELECT ALL - + 69 + + - 59 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 # 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 "min\(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 "min\(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 + MIN ( + + col1 ) AS col0, COUNT ( * ) AS col0 FROM tab0 AS cor0 query I rowsort label-1295 @@ -8518,7 +8518,7 @@ SELECT + 27 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 4 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col0, 4 AS col0 FROM tab1 query I rowsort label-1391 @@ -18678,7 +18678,7 @@ SELECT ALL + col2 / 77 FROM tab1 cor0 # 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / count\(Int64\(1\)\) AS count\(\*\) 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / count\(Int64\(1\)\) (AS count\(\*\) )?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 - + COUNT ( * ) / + COUNT ( * ) AS col1, 87 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 query I rowsort @@ -22570,7 +22570,7 @@ SELECT MIN ( ALL - + col0 ) FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 16 -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\(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 "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 + COUNT ( * ) AS col0, 16 AS col0 FROM tab0 cor0 query I rowsort label-3686 @@ -22895,7 +22895,7 @@ NULL # 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 "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col1, - COUNT ( * ) AS col1 FROM tab0 query I rowsort @@ -29937,7 +29937,7 @@ SELECT - col0 * col1 FROM tab0 WHERE NOT + ( - col2 ) >= col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 "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 77 AS col0, + COUNT ( * ) AS col0 FROM tab1 query I rowsort label-4901 @@ -32899,7 +32899,7 @@ SELECT * FROM tab0 WHERE NOT + - col0 * - col2 * CAST ( - 7 AS INTEGER ) IS NOT # Datafusion - Datafusion expected results: # Datafusion - Expected - 147 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(49\) AS col1" at position 0 and "Int64\(20\) \* 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\(49\) AS col1" at position 0 and "Int64\(20\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COUNT ( * ) * + 49 AS col1, + 20 * + COUNT ( * ) AS col1 FROM tab1 AS cor0 query I rowsort label-5395 @@ -33128,7 +33128,7 @@ SELECT + - 19 * - + col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4459 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT cor0\.col0\) \* Int64\(49\) 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 cor0\.col0\) \* Int64\(49\) 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 MAX ( DISTINCT + col0 ) * 49 AS col1, COUNT ( * ) AS col1 FROM tab1 AS cor0 query I rowsort @@ -36714,7 +36714,7 @@ SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND + col0 / col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -89 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "\(\- Int64\(89\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) col2, - ( + 89 ) col2 FROM tab2 # Datafusion - Types were automatically converted from: @@ -38415,7 +38415,7 @@ SELECT DISTINCT CAST ( - - 21 AS INTEGER ) + - - SUM ( col0 ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -45 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) 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\) 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 + - 45 AS col2, + COUNT ( * ) AS col2 FROM tab0 AS cor0 query III rowsort @@ -39347,7 +39347,7 @@ SELECT ALL 52, CAST ( - ( 46 ) AS INTEGER ) * col2 AS col1 FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 15 -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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 COUNT ( * ) AS col0, MIN ( - - col0 ) AS col0 FROM tab0 AS cor0 query I rowsort @@ -43919,7 +43919,7 @@ SELECT ALL + 38, - COUNT ( * ) * + 18 AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 99 -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 "max\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "max\(tab0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, MAX ( + col2 ) AS col1 FROM tab0 query III rowsort label-7217 @@ -48066,7 +48066,7 @@ SELECT col2 FROM tab0 WHERE NOT + col1 NOT IN ( + 99 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) 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\(22\) 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 22 AS col0, COUNT ( * ) AS col0 FROM tab1 query II rowsort @@ -49963,7 +49963,7 @@ SELECT ALL 69 + - - 65 + + + col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(0\)\) 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\(0\)\) 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 - + 0 AS col0, + COUNT ( * ) + COUNT ( * ) AS col0 FROM tab2 AS cor0 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_21.slt b/data/sqlite/random/aggregates/slt_good_21.slt index 15d638a..1e3c736 100644 --- a/data/sqlite/random/aggregates/slt_good_21.slt +++ b/data/sqlite/random/aggregates/slt_good_21.slt @@ -4309,7 +4309,7 @@ NULL # 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 "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, - COUNT ( * ) AS col1 FROM tab0 AS cor0 query I rowsort label-717 @@ -7953,7 +7953,7 @@ SELECT COUNT ( * ), + 73 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 "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "\(\- 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 ALL COUNT ( * ) AS col1, - ( + COUNT ( * ) ) - + + COUNT ( * ) + COUNT ( * ) col1 FROM tab0 query II rowsort label-1319 @@ -8184,7 +8184,7 @@ SELECT - + col0 AS col2, + col2 - - ( col2 ) AS col1 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\(\*\) 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\(\*\) )?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 ( * ) AS col0, COUNT ( * ) AS col0 FROM tab0 AS cor0 query I rowsort @@ -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 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\. SELECT ( - CAST ( NULL AS INTEGER ) ) AS col2, + COUNT ( * ) AS col2 FROM tab1 cor0 query I rowsort @@ -18396,7 +18396,7 @@ SELECT DISTINCT - + col2 + - col1 AS col2 FROM tab2 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 "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, ( - COUNT ( * ) ) AS col2 FROM tab0 query I rowsort @@ -21141,7 +21141,7 @@ SELECT ALL * FROM tab1 cor0 WHERE + 17 / col1 IS NOT 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 "count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 COUNT ( * ) AS col0, + 77 AS col0 FROM tab0 AS cor0 query I rowsort label-3482 @@ -25122,7 +25122,7 @@ SELECT 6 + - + 26 - 28 + 2 / + 55 + 87 * col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - -81 -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\(\*\) \* \(\- 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 "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 COUNT ( * ) AS col2, COUNT ( * ) * + - COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1 query III rowsort @@ -42886,7 +42886,7 @@ SELECT - COUNT ( - - 25 ) + + + 7 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / max\(\(\- Int64\(45\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) AS count\(\*\) / max\(\(\- Int64\(45\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) / + MAX ( ALL - + 45 ) + COUNT ( * ) + COUNT ( * ) AS col0, 86 AS col0 FROM tab1 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..69a8adc 100644 --- a/data/sqlite/random/aggregates/slt_good_22.slt +++ b/data/sqlite/random/aggregates/slt_good_22.slt @@ -5575,7 +5575,7 @@ SELECT + col0, col1 / - - col1 AS col2 FROM tab2 AS cor0 # 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\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, 85 col2 FROM tab0 AS cor0 query I rowsort label-918 @@ -5814,7 +5814,7 @@ SELECT - 30 AS col1, - 50 AS col0 FROM tab0 # 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 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\(\*\) )?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 ( * ) AS col0, + COUNT ( * ) AS col0 FROM tab1 query III rowsort @@ -7436,7 +7436,7 @@ SELECT col0 AS col2, - ( col2 ) AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 3 -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\(\*\) AS col1" at position 1 have the 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\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 80 col1, + COUNT ( * ) AS col1 FROM tab1 query III rowsort @@ -8609,7 +8609,7 @@ SELECT ALL * FROM tab0 WHERE NOT - col2 / col2 + - col0 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 195 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "\(\- sum\(DISTINCT \(\- cor0\.col1\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col1, - SUM ( DISTINCT - col1 ) AS col1 FROM tab2 AS cor0 query I rowsort label-1421 @@ -10876,7 +10876,7 @@ SELECT col1 / col1 * + - 77 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - 3 -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\(\*\) AS col1" at position 1 have the 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\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 37 AS col1, COUNT ( * ) AS col1 FROM tab2 query I rowsort @@ -11677,7 +11677,7 @@ SELECT ALL col1 + + 20 * + col2 AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 230 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \+ 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 "Int64\(45\) \+ 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 45 + SUM ( DISTINCT col0 ) AS col0, COUNT ( * ) AS col0 FROM tab2 cor0 query I rowsort label-1931 @@ -14883,7 +14883,7 @@ SELECT + 45 + col0 + col0 AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \- Int64\(\-37\) 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\(23\) \- Int64\(\-37\) 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 23 - - 37 AS col1, COUNT ( * ) AS col1 FROM tab1 query I rowsort label-2466 @@ -17978,7 +17978,7 @@ SELECT DISTINCT * FROM tab2 WHERE 53 + + - col1 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # 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\(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 "Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col0, + 38 AS col0 FROM tab0 cor0 query I rowsort label-2972 @@ -27241,7 +27241,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 33 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 COUNT ( * ) AS col2, 33 col2 FROM tab2 AS cor0 query II rowsort @@ -44321,7 +44321,7 @@ SELECT ALL + + col1 + + - col1 + + col2 AS col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) 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\(87\) 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 + 87 col0, COUNT ( * ) AS col0 FROM tab1 AS cor0 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 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\. SELECT DISTINCT CAST ( NULL AS INTEGER ) / 14 AS col0, + COUNT ( * ) AS col0 FROM tab1 query I rowsort @@ -53085,7 +53085,7 @@ SELECT ALL ( - + 95 ) col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT tab1\.col1\) 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 "sum\(DISTINCT tab1\.col1\) 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 DISTINCT SUM ( DISTINCT + col1 ) AS col2, + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab1 query II rowsort @@ -54556,7 +54556,7 @@ SELECT MAX ( ALL col0 ) * + + 14 AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 168 -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\(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\(\*\) )?AS col1" at position 0 and "Int64\(56\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col1, + 56 * + COUNT ( * ) AS col1 FROM tab0 AS cor0 query III rowsort @@ -57211,7 +57211,7 @@ SELECT DISTINCT + col1 / - col0 AS col1 FROM tab1 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 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\(\*\) )?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 ( * ) col1, - COUNT ( * ) AS col1 FROM tab1 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_23.slt b/data/sqlite/random/aggregates/slt_good_23.slt index e382f1c..8c82c58 100644 --- a/data/sqlite/random/aggregates/slt_good_23.slt +++ b/data/sqlite/random/aggregates/slt_good_23.slt @@ -2510,7 +2510,7 @@ SELECT DISTINCT - 2 + + col0 + col2 + + 32 + - col1 + + - col2 FROM tab2 WHERE N # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-47\)\) 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 "min\(Int64\(\-47\)\) 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 + MIN ( + ( + - 47 ) ) AS col1, COUNT ( * ) col1 FROM tab1 query II rowsort label-403 @@ -2965,7 +2965,7 @@ NULL # 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 "Int64\(\-27\) 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\(\-27\) 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 - 27 col2, + ( + + COUNT ( * ) ) AS col2 FROM tab1 AS cor0 query I rowsort @@ -3900,7 +3900,7 @@ SELECT 98 * + 25 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS 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 "count\(Int64\(1\)\) AS count\(\*\) 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\(\*\) )?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 ( * ) AS col0, COUNT ( * ) / + COUNT ( * ) col0 FROM tab0 cor0 query I rowsort label-639 @@ -4700,7 +4700,7 @@ SELECT ALL COUNT ( DISTINCT + + col2 ) * 84 + - COUNT ( * ) AS col0 FROM tab0 # 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 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\) 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 + 66 AS col2, COUNT ( * ) AS col2 FROM tab2 query I rowsort label-775 @@ -17947,7 +17947,7 @@ SELECT DISTINCT COUNT ( DISTINCT - 56 ) * - - 86 + + MAX ( ALL + 30 ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -37 # Datafusion - Expected - 3 -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\(\*\) AS col1" at position 1 have the 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\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 37 col1, COUNT ( * ) AS col1 FROM tab1 AS cor0 query III rowsort @@ -37450,7 +37450,7 @@ SELECT * FROM tab0 AS cor0 WHERE ( + - col0 ) NOT BETWEEN col0 * + - 31 * col1 - # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 "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 + 53 col0, COUNT ( * ) AS col0 FROM tab0 AS cor0 query III rowsort @@ -43707,7 +43707,7 @@ SELECT * FROM tab1 AS cor0 WHERE NOT col1 / + col1 NOT BETWEEN NULL AND - col1 - # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab0 AS cor0 # Datafusion - Types were automatically converted from: @@ -48364,7 +48364,7 @@ SELECT DISTINCT - + ( - 60 ) AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -96 # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) AS col1" at position 0 and "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 "Int64\(\-96\) AS col1" at position 0 and "Int64\(\-24\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 96 AS col1, - 24 * + COUNT ( * ) AS col1 FROM tab1 AS cor0 query I rowsort label-7976 @@ -48452,7 +48452,7 @@ SELECT DISTINCT + - CAST ( + 25 AS INTEGER ) AS col0 FROM tab0 AS cor0 # 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 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\(16\)\) 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 - + 16 AS col1, + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT col2 * - 16 <= - 36 query III rowsort @@ -57765,7 +57765,7 @@ SELECT - - 46 AS col0 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 189 -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\(63\) \* 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 "Int64\(63\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, + 63 * COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col1 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..f866d4c 100644 --- a/data/sqlite/random/aggregates/slt_good_24.slt +++ b/data/sqlite/random/aggregates/slt_good_24.slt @@ -6152,7 +6152,7 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 * + + col1 > + + col2 * 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 "count\(Int64\(\-71\)\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(5\) / 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\(\-71\)\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(5\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( - 71 ) / COUNT ( * ) col1, + 5 / + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT - col1 IN ( 26, 95 * + col2 ) query I rowsort @@ -10169,7 +10169,7 @@ SELECT col2 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL # 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 "max\(cor0\.col2\) 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\(cor0\.col2\) 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 ( ALL col2 ) AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0 query I rowsort @@ -12908,7 +12908,7 @@ SELECT ALL MAX ( + col1 ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -35 # Datafusion - Expected - 3 -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\(\*\) AS col0" at position 1 have the 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\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 35 col0, COUNT ( * ) AS col0 FROM tab1 query I rowsort label-2147 @@ -18140,7 +18140,7 @@ SELECT + ( + + col0 ) FROM tab0 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, + COUNT ( * ) col2 FROM tab1 cor0 query II rowsort label-2993 @@ -24405,7 +24405,7 @@ SELECT ALL + ( + COUNT ( * ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 96 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col2, + 96 AS col2 FROM tab0 AS cor0 query III rowsort @@ -25957,7 +25957,7 @@ SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col0 / - + col2 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 "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 ALL 76 AS col0, + COUNT ( * ) col0 FROM tab2 cor0 query I rowsort @@ -34308,7 +34308,7 @@ SELECT + ( + + 8 ) / - col0 AS col0 FROM tab2 AS cor0 WHERE NOT 10 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 8 -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\(87\) \- \(\- 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\(\*\) )?AS col0" at position 0 and "Int64\(87\) \- \(\- Int64\(\-79\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col0, 87 - - - 79 AS col0 FROM tab0 AS cor0 query III rowsort label-5684 @@ -34740,7 +34740,7 @@ SELECT + col0 - + col2 + + 97 col2 FROM tab0 AS cor0 # 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 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\(\-31\) 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 - 31 AS col1, + COUNT ( * ) AS col1 FROM tab2 AS cor0 query I rowsort @@ -48403,7 +48403,7 @@ SELECT DISTINCT * FROM tab2 WHERE - + col2 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - 3 -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\(\*\) AS col0" at position 1 have the 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\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( - ( - - 55 ) ) col0, COUNT ( * ) AS col0 FROM tab2 query I rowsort @@ -52000,7 +52000,7 @@ SELECT col1 AS col0, 1 / - 21 + + 34 AS col0 FROM tab2 # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(74\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col0, 74 AS col0 FROM tab2 AS cor0 query I rowsort @@ -52467,7 +52467,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) 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\) 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 + 71 AS col2, COUNT ( * ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 ) query I rowsort @@ -58899,7 +58899,7 @@ SELECT ALL col0 FROM tab2 AS cor0 WHERE col2 + + - col2 IS NOT NULL # 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 "Int64\(\-68\) \+ 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 "Int64\(\-68\) \+ 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 - 68 + + + COUNT ( * ) col1, COUNT ( * ) AS col1 FROM tab1 AS cor0 query I rowsort @@ -60003,7 +60003,7 @@ SELECT DISTINCT ( - 78 ) FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -28 # Datafusion - Expected - 0 -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\(\*\) AS col2" at position 1 have the 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\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + 28 col2, + ( + + COUNT ( * ) ) AS col2 FROM tab0 WHERE + col2 + - - col0 IS NULL query I rowsort label-9943 diff --git a/data/sqlite/random/aggregates/slt_good_25.slt b/data/sqlite/random/aggregates/slt_good_25.slt index 17a3d02..b58f6e5 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 Int32\) 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 @@ -992,7 +992,7 @@ SELECT ALL + COUNT ( * ) * - 76 AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 78 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, 78 AS col0 FROM tab1 query I rowsort label-156 @@ -3645,7 +3645,7 @@ SELECT + col0 + - ( + - 25 ) * + 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\(\*\) 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\(\*\) )?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 + COUNT ( * ) col2, - ( + + COUNT ( * ) ) AS col2 FROM tab2 AS cor0 query I rowsort label-589 @@ -6122,7 +6122,7 @@ SELECT DISTINCT + SUM ( ALL + 53 ) AS 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 "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\(\*\) )?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 ( * ) AS col1, COUNT ( * ) AS col1 FROM tab0 AS cor0 query I rowsort @@ -7731,7 +7731,7 @@ SELECT DISTINCT * FROM tab1 WHERE col1 NOT BETWEEN - 30 AND NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -25 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) 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\(\-25\) 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 - 25 AS col2, + COUNT ( * ) AS col2 FROM tab2 AS cor0 query III rowsort @@ -9000,7 +9000,7 @@ SELECT DISTINCT + col2 AS col2 FROM tab0 WHERE - + col0 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 185 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(tab2\.col0\) 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 "sum\(tab2\.col0\) 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 + SUM ( col0 ) AS col2, COUNT ( * ) AS col2 FROM tab2 query I rowsort label-1474 @@ -11381,7 +11381,7 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 / 14 * + + col2 NOT IN ( + - co # 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 "\(\- min\(\(\- cor0\.col2\)\)\) 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 "\(\- min\(\(\- cor0\.col2\)\)\) 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 + - MIN ( ALL - col2 ) AS col1, ( COUNT ( * ) ) AS col1 FROM tab0 AS cor0 query III rowsort @@ -13765,7 +13765,7 @@ SELECT ALL + 98 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 "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\(\*\) )?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 ( * ) AS col0, + COUNT ( * ) AS col0 FROM tab0 AS cor0 query I rowsort label-2272 @@ -17378,7 +17378,7 @@ SELECT ALL - - col1 AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col2 * + co # Datafusion - Datafusion expected results: # Datafusion - Expected - -35 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) 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 "Int64\(\-35\) 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 ALL - 35 AS col1, - COUNT ( * ) - COUNT ( * ) AS col1 FROM tab2 cor0 query I rowsort @@ -20865,7 +20865,7 @@ SELECT - col2 / + + col1 AS col2, 23 FROM tab1 AS cor0 # 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 "count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(\-66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COUNT ( * ) AS col2, - 66 col2 FROM tab0 AS cor0 query II rowsort @@ -27094,7 +27094,7 @@ SELECT DISTINCT - - 48 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) 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\(26\) 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 26 col2, COUNT ( * ) AS col2 FROM tab2 query I rowsort @@ -41823,7 +41823,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -700 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) \* \(\- min\(DISTINCT tab1\.col2\)\) \+ \(\- max\(\(\- 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 "Int64\(12\) \* \(\- min\(DISTINCT tab1\.col2\)\) \+ \(\- max\(\(\- 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 DISTINCT 12 * - MIN ( DISTINCT col2 ) + - MAX ( - + 8 ) AS col1, COUNT ( * ) AS col1 FROM tab1 query I rowsort @@ -41969,7 +41969,7 @@ SELECT ALL - 99 * - col0 - col0 AS col2 FROM tab2 AS cor0 WHERE NOT 69 IS NOT NU # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 98 -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\(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 "Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) col2, + 98 AS col2 FROM tab1 cor0 query I rowsort label-6954 diff --git a/data/sqlite/random/aggregates/slt_good_26.slt b/data/sqlite/random/aggregates/slt_good_26.slt index 8fecdc0..b53b1d5 100644 --- a/data/sqlite/random/aggregates/slt_good_26.slt +++ b/data/sqlite/random/aggregates/slt_good_26.slt @@ -3468,7 +3468,7 @@ SELECT - col2 + - col1 + - - ( col1 ) * 22 * 85 + + col2 AS col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -29 -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\(\-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\(\*\) )?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 ( * ) AS col1, ( - 29 ) AS col1 FROM tab2 query II rowsort @@ -6730,7 +6730,7 @@ SELECT DISTINCT ( col0 ) * - - col0 * ( col2 ) AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -546 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-6\) \* \(\- min\(\(\- tab1\.col0\)\)\) 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\(\-6\) \* \(\- min\(\(\- tab1\.col0\)\)\) 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 - 6 * - MIN ( - + col0 ) col2, + COUNT ( * ) AS col2 FROM tab1 query III rowsort @@ -7526,7 +7526,7 @@ SELECT DISTINCT COUNT ( * ) + - - 78 col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(\-35\) 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\(\-35\) 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 ( * ) - - 35 col1, COUNT ( * ) AS col1 FROM tab2 query I rowsort @@ -10983,7 +10983,7 @@ SELECT ALL + 7 + + col1 AS col2 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 "\(\- \(\- 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\(\*\)\)\) 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 ( * ) AS col0, COUNT ( * ) AS col0 FROM tab1 AS cor0 query III rowsort @@ -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 Int32\) 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 @@ -18100,7 +18100,7 @@ SELECT * FROM tab0 WHERE NULL NOT BETWEEN CAST ( NULL AS INTEGER ) * - ( col2 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- 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 "\(\- 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 - + 50 AS col2, COUNT ( * ) AS col2 FROM tab1 AS cor0 query I rowsort label-3000 @@ -36357,7 +36357,7 @@ NULL # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) AS col1, + COUNT ( * ) AS col1 FROM tab1 AS cor0 query II rowsort @@ -41378,7 +41378,7 @@ SELECT MAX ( DISTINCT - + 76 ) + + COUNT ( * ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1575 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-63\)\) \* Int64\(\-25\) 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 "max\(Int64\(\-63\)\) \* Int64\(\-25\) 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 + + MAX ( ALL + - 63 ) * - 25 AS col0, + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 query I rowsort @@ -43624,7 +43624,7 @@ SELECT DISTINCT 29 + + + col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 75 -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\(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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(72\) \+ 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, + 72 + COUNT ( * ) col0 FROM tab1 cor0 query I rowsort label-7207 @@ -49538,7 +49538,7 @@ SELECT ALL * FROM tab2 AS cor0 WHERE + col1 * + col0 > 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 "avg\(cor0\.col0\) 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\(cor0\.col0\) 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 + AVG ( + col0 ) AS col1, COUNT ( * ) AS col1 FROM tab0 cor0 WHERE NOT + 79 NOT BETWEEN NULL AND + 23 # Datafusion - Datafusion expected results: @@ -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 Int32\)\) 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 diff --git a/data/sqlite/random/aggregates/slt_good_27.slt b/data/sqlite/random/aggregates/slt_good_27.slt index 0151863..29b66ad 100644 --- a/data/sqlite/random/aggregates/slt_good_27.slt +++ b/data/sqlite/random/aggregates/slt_good_27.slt @@ -7880,7 +7880,7 @@ SELECT ALL + 56 / col2 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 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "CAST\(NULL AS Float64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, CAST ( NULL AS FLOAT8 ) AS col1 FROM tab2 query I rowsort label-1306 @@ -11481,7 +11481,7 @@ SELECT - col0 * 9 + + + col2 * + + col2 + col0 AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) 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\(8\) 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 8 AS col2, COUNT ( * ) AS col2 FROM tab2 AS cor0 query I rowsort label-1887 @@ -15857,7 +15857,7 @@ SELECT col0 * + col2 + - + ( ( + col1 ) ) FROM tab2 # 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 "Int64\(29\) 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\(29\) 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 29 AS col1, COUNT ( * ) AS col1 FROM tab1 query I rowsort label-2612 @@ -24119,7 +24119,7 @@ SELECT DISTINCT 25 + 4 FROM tab0 # 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 "count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 COUNT ( * ) AS col0, + 66 AS col0 FROM tab1 query I rowsort label-3978 @@ -24520,7 +24520,7 @@ SELECT ALL col0 * + 8 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - 3 -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\(\*\) AS col0" at position 1 have the 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\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 47 col0, COUNT ( * ) AS col0 FROM tab1 query I rowsort label-4045 @@ -25562,7 +25562,7 @@ SELECT 73, col2 AS col2 FROM tab0 # 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\(\-64\)\) 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\(\-64\)\) 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 ( + - 64 ) AS col1, + COUNT ( * ) AS col1 FROM tab2 query II rowsort label-4213 @@ -30799,7 +30799,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - 255 -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 "Int64\(85\) \* count\(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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(85\) \* count\(Int64\(\-17\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) - + COUNT ( * ) AS col0, 85 * + COUNT ( ALL - 17 ) AS col0 FROM tab0 AS cor0 query I rowsort label-5076 @@ -34919,7 +34919,7 @@ SELECT + col2 * 88 AS col2 FROM tab0 # 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 "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, - COUNT ( * ) AS col2 FROM tab1 query II rowsort @@ -40815,7 +40815,7 @@ SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN - col2 AND NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -84 -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\(\-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 "Int64\(\-84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col1, - 84 AS col1 FROM tab1 query III rowsort label-6748 @@ -41042,7 +41042,7 @@ SELECT + col2 * - 69 AS col2 FROM tab1 # 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 "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 "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 - 51 AS col0, + COUNT ( * ) AS col0 FROM tab2 query I rowsort @@ -42874,7 +42874,7 @@ SELECT DISTINCT + col1 AS col1, + 85 + + ( + 85 ) AS col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -69 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(69\)\) 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\(69\)\) 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 - + 69 AS col2, + COUNT ( * ) AS col2 FROM tab0 cor0 query III rowsort @@ -43120,7 +43120,7 @@ SELECT * FROM tab1 WHERE NULL <= 81 # 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 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col2, 9 col2 FROM tab1 query I rowsort @@ -44789,7 +44789,7 @@ SELECT DISTINCT col0 - - - col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # 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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) col1, + 57 AS col1 FROM tab1 query III rowsort @@ -44864,7 +44864,7 @@ SELECT ALL + col0, - col1 AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(51\)\) 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 "max\(Int64\(51\)\) 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 ALL MAX ( + + 51 ) AS col0, 47 / + + COUNT ( * ) AS col0 FROM tab0 query II rowsort @@ -52992,7 +52992,7 @@ SELECT ALL * FROM tab1 cor0 WHERE 93 * col2 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(23\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?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 23 * - - COUNT ( * ) + + + COUNT ( * ) AS col1, COUNT ( * ) * - - 4 AS col1 FROM tab1 AS cor0 query I rowsort label-8758 @@ -55731,7 +55731,7 @@ SELECT DISTINCT 92, 23 col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # 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 "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\(\*\) )?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 ( * ) col2, 58 col2 FROM tab2 query II rowsort @@ -57314,7 +57314,7 @@ SELECT ALL - SUM ( - col0 ) * 66 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 189 # Datafusion - Expected - 3 -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 "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\(63\) \* 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 DISTINCT + 63 * + COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab2 query I rowsort @@ -58565,7 +58565,7 @@ SELECT SUM ( ALL - - 13 ) AS col2 FROM tab1 # 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(\-23\) \* 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\(\-23\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col2, ( - 23 ) * COUNT ( * ) AS col2 FROM tab2 AS cor0 query I rowsort label-9675 diff --git a/data/sqlite/random/aggregates/slt_good_28.slt b/data/sqlite/random/aggregates/slt_good_28.slt index adbd87a..33548ec 100644 --- a/data/sqlite/random/aggregates/slt_good_28.slt +++ b/data/sqlite/random/aggregates/slt_good_28.slt @@ -674,7 +674,7 @@ SELECT DISTINCT col2 * - col0 * - col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 "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 + 82 AS col2, COUNT ( * ) AS col2 FROM tab2 AS cor0 query I rowsort label-104 @@ -1828,7 +1828,7 @@ SELECT DISTINCT * FROM tab0 WHERE NOT - col1 + + col2 + 20 IS NULL # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, + COUNT ( * ) AS col1 FROM tab0 query I rowsort label-288 @@ -13647,7 +13647,7 @@ SELECT DISTINCT * FROM tab1 WHERE NOT - ( + + col1 ) - + 12 * + + col0 + - 0 IS # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab0 query I rowsort @@ -17368,7 +17368,7 @@ SELECT DISTINCT - + col2 / + col0 AS col2 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 "\(\- 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\(\*\)\) 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 ( * ) col1, COUNT ( * ) AS col1 FROM tab1 AS cor0 query III rowsort @@ -18468,7 +18468,7 @@ SELECT - - col0, 93 AS col2 FROM tab2 AS cor0 # 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 "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 "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 - 38 AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE + 17 + - - 4 > ( NULL ) query I rowsort label-3026 @@ -18710,7 +18710,7 @@ SELECT ALL 93 + + - COUNT ( * ) AS col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -25 # Datafusion - Expected - 3 -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\(\*\) AS col0" at position 1 have the 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\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 25 AS col0, + ( + COUNT ( * ) ) AS col0 FROM tab1 query III rowsort @@ -26384,7 +26384,7 @@ SELECT ALL * FROM tab1 WHERE NOT ( ( NOT - col2 > NULL ) ) # 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 "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 "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 + COUNT ( * ) AS col2, ( 3 ) AS col2 FROM tab0 query I rowsort label-4334 @@ -36151,7 +36151,7 @@ SELECT + - 43, col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 75 -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 "\(\- min\(\(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "\(\- min\(\(\- cor0\.col0\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col2, - MIN ( ALL - col0 ) col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: @@ -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 Int32\) 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 @@ -44352,7 +44352,7 @@ SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) / 85 col2 FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) 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\(73\) 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 73 col0, COUNT ( * ) col0 FROM tab0 AS cor0 query I rowsort @@ -45593,7 +45593,7 @@ SELECT DISTINCT col0 + - 74 col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) 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\(57\) 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 57 AS col1, COUNT ( * ) AS col1 FROM tab2 # Datafusion - Types were automatically converted from: @@ -46398,7 +46398,7 @@ SELECT ALL + col0 + - col1 + 64 AS col2 FROM tab2 # 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 "Int64\(32\) \+ \(\- 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\(32\) \+ \(\- 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 + 32 + - COUNT ( * ) AS col2, ( + COUNT ( * ) ) AS col2 FROM tab1 query III rowsort @@ -49697,7 +49697,7 @@ SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col2 * - - 78 AND col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - 99 -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 "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\(\*\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?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 - COUNT ( * ) * + COUNT ( * ) AS col0, 99 AS col0 FROM tab0 query I rowsort @@ -50413,7 +50413,7 @@ SELECT + + col2 / + col2, col0 FROM tab2 AS cor0 # 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\(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 "\(\- min\(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 DISTINCT - MIN ( DISTINCT col0 ) AS col0, + COUNT ( * ) AS col0 FROM tab1 cor0 query I rowsort @@ -51146,7 +51146,7 @@ SELECT DISTINCT + + col0 AS col0 FROM tab1 WHERE NOT ( NOT col0 + - col0 IS NOT # Datafusion - Datafusion expected results: # Datafusion - Expected - -75 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- cor0\.col0\)\) AS col1" at position 0 and "Int64\(30\) \+ 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 "min\(\(\- cor0\.col0\)\) AS col1" at position 0 and "Int64\(30\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT MIN ( - col0 ) col1, 30 + COUNT ( * ) AS col1 FROM tab2 AS cor0 query III rowsort @@ -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 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\. SELECT ALL - AVG ( + - CAST ( NULL AS INTEGER ) ) AS col0, COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL query I rowsort @@ -59738,7 +59738,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) 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\(40\) 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 + + 40 AS col0, + COUNT ( * ) AS col0 FROM tab1 AS cor0 query II rowsort diff --git a/data/sqlite/random/aggregates/slt_good_29.slt b/data/sqlite/random/aggregates/slt_good_29.slt index 717a20e..10d79f2 100644 --- a/data/sqlite/random/aggregates/slt_good_29.slt +++ b/data/sqlite/random/aggregates/slt_good_29.slt @@ -7239,7 +7239,7 @@ SELECT ( - col1 ) * + col0 AS col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 25904 -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\(29\) \+ min\(Int64\(\-75\)\) \* \(\- min\(tab2\.col2\)\) \* 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(29\) \+ min\(Int64\(\-75\)\) \* \(\- min\(tab2\.col2\)\) \* Int64\(15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( + + COUNT ( * ) ) AS col0, + 29 + + ( + MIN ( - 75 ) ) * - MIN ( ALL col2 ) * 15 AS col0 FROM tab2 query I rowsort @@ -8069,7 +8069,7 @@ SELECT 54, 24 * col2 col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 291 -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\(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\(\*\) )?AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col0, COUNT ( * ) * + 97 AS col0 FROM tab1 query III 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 Int32\)\) 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 @@ -9079,7 +9079,7 @@ SELECT DISTINCT + col2 * + - col0 + - col1 + - CAST ( col2 AS INTEGER ) + + col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -92 -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\(\-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 "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 DISTINCT COUNT ( * ) AS col0, - 92 AS col0 FROM tab1 AS cor0 query I rowsort label-1499 @@ -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 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\. SELECT + CAST ( NULL AS INTEGER ) col2, COUNT ( * ) AS col2 FROM tab2 AS cor0 query I rowsort label-2935 @@ -32469,7 +32469,7 @@ SELECT - ( + - MAX ( ALL col2 ) ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(29\) \+ count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(29\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?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 ( COUNT ( * ) ) * 29 + + COUNT ( * ) col2, + 23 AS col2 FROM tab1 AS cor0 query III rowsort label-5339 @@ -40725,7 +40725,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 59 -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\(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\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "min\(cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) col1, MIN ( ALL col2 ) AS col1 FROM tab1 AS cor0 query I rowsort @@ -41556,7 +41556,7 @@ SELECT DISTINCT + ( 84 ) AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- cor0\.col0\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) 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 "\(\- min\(\(\- cor0\.col0\)\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + MIN ( + - col0 ) + COUNT ( * ) col0, 12 AS col0 FROM tab2 cor0 query I rowsort @@ -51413,7 +51413,7 @@ SELECT ALL 86 AS col2, + ( - 70 ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) 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\(47\) 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 + 47 AS col2, + COUNT ( * ) AS col2 FROM tab1 query I rowsort label-8462 @@ -53670,7 +53670,7 @@ SELECT ALL - + 66 + - col1 + - col1 AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -8428 -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\(98\)\)\) \* 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\(\*\) )?AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- \(\- Int64\(98\)\)\) \* Int64\(\-86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, - COUNT ( * ) + - ( - + 98 ) * - 86 AS col2 FROM tab2 AS cor0 WHERE ( col0 ) IS NULL query III rowsort @@ -56249,7 +56249,7 @@ SELECT - COUNT ( * ) * + 33 AS col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3465 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) \* Int64\(\-63\) 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\(\-55\) \* Int64\(\-63\) 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 - 55 * + - 63 AS col1, COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL BETWEEN NULL AND - col1 query I rowsort label-9260 diff --git a/data/sqlite/random/aggregates/slt_good_3.slt b/data/sqlite/random/aggregates/slt_good_3.slt index 28c5fc3..7b364ad 100644 --- a/data/sqlite/random/aggregates/slt_good_3.slt +++ b/data/sqlite/random/aggregates/slt_good_3.slt @@ -1467,7 +1467,7 @@ SELECT ALL * FROM tab2 AS cor0 WHERE 51 NOT BETWEEN - col0 AND - - 42 + - col1 * # Datafusion - Datafusion expected results: # Datafusion - Expected - -204 # Datafusion - Expected - -3 -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 "\(\- 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\(\-68\) \* 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 - 68 * COUNT ( * ) AS col2, - COUNT ( * ) col2 FROM tab2 AS cor0 query II rowsort @@ -4546,7 +4546,7 @@ SELECT 34 + col1 AS col0 FROM tab2 AS cor0 # 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 "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\) 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 72 AS col1, + COUNT ( * ) AS col1 FROM tab2 query IIIIII rowsort @@ -13140,7 +13140,7 @@ SELECT 10 * - + 78 AS 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 "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 "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 + COUNT ( * ) AS col2, + COUNT ( * ) AS col2 FROM tab1 AS cor0 query I rowsort label-2133 @@ -18597,7 +18597,7 @@ SELECT * FROM tab0 WHERE NOT + col0 - + + col2 / - 60 IS NOT 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 "Int64\(9\) 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\(9\) 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 9 AS col0, COUNT ( * ) AS col0 FROM tab2 AS cor0 query I rowsort label-3052 @@ -32174,7 +32174,7 @@ SELECT - col1 col0 FROM tab1 cor0 WHERE NOT + col2 IS NOT NULL # 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 "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\(99\) 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 + + 99 AS col1, COUNT ( * ) AS col1 FROM tab2 cor0 query I rowsort label-5278 @@ -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 Int32\)\) \+ CAST\(Int64\(\-33\) AS Int32\) 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 @@ -34050,7 +34050,7 @@ SELECT ( + - CAST ( - col1 AS INTEGER ) ) AS col0 FROM tab1 AS cor0 # 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 "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "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\(6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col1, 6 AS col1 FROM tab0 query III rowsort @@ -49990,7 +49990,7 @@ SELECT SUM ( DISTINCT 10 ) * - COUNT ( * ) AS col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 "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 ALL 97 AS col1, COUNT ( * ) col1 FROM tab2 query III rowsort @@ -54412,7 +54412,7 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) > ( + 45 + - + 4 + - 97 ) # 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 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\(\-31\) 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 - 31 AS col1, + COUNT ( * ) AS col1 FROM tab1 cor0 query III rowsort @@ -54848,7 +54848,7 @@ SELECT + MIN ( DISTINCT + 94 ) AS col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col0" at position 0 and "Int64\(49\) \+ Int64\(\-53\) / 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\(7\) AS col0" at position 0 and "Int64\(49\) \+ Int64\(\-53\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 7 AS col0, 49 + - 53 / COUNT ( * ) AS col0 FROM tab0 AS cor0 query I rowsort label-9006 @@ -55299,7 +55299,7 @@ SELECT ALL + ( + MAX ( + ( + col0 ) ) ) FROM tab2 AS cor0 # 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 "\(\- 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\(\*\)\) 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 ( * ) AS col0, COUNT ( * ) AS col0 FROM tab0 WHERE + 16 IS NULL query I rowsort label-9076 @@ -59898,7 +59898,7 @@ SELECT MAX ( - 81 ) 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 "min\(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 "min\(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 + MIN ( ALL + col1 ) AS col0, + COUNT ( * ) col0 FROM tab0 AS cor0 query I rowsort label-9830 diff --git a/data/sqlite/random/aggregates/slt_good_30.slt b/data/sqlite/random/aggregates/slt_good_30.slt index a3efc42..fc7c50d 100644 --- a/data/sqlite/random/aggregates/slt_good_30.slt +++ b/data/sqlite/random/aggregates/slt_good_30.slt @@ -2111,7 +2111,7 @@ SELECT * FROM tab2 WHERE NOT - col0 BETWEEN - + 24 AND NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - -75 -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 "min\(\(\- 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 "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "min\(\(\- cor0\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * COUNT ( * ) AS col2, MIN ( ALL - col0 ) AS col2 FROM tab2 AS cor0 query I rowsort label-338 @@ -2790,7 +2790,7 @@ SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) > NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -97 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 "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 ALL - 97 AS col1, + COUNT ( * ) col1 FROM tab1 AS cor0 query I rowsort @@ -6363,7 +6363,7 @@ SELECT * FROM tab2 AS cor0 WHERE NOT - col2 * + 3 IS NOT 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\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 COUNT ( * ) AS col1, - 46 AS col1 FROM tab1 cor0 query I rowsort @@ -14265,7 +14265,7 @@ SELECT DISTINCT - - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE ( NOT col0 IS NU # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) 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\(\-55\) 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 - 55 col1, COUNT ( * ) AS col1 FROM tab2 AS cor0 query I rowsort label-2341 @@ -22311,7 +22311,7 @@ SELECT 46 + + col2 + + 79 col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 291 -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\(97\) \* 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 "Int64\(97\) \* 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, 97 * COUNT ( * ) AS col0 FROM tab0 AS cor0 query I rowsort @@ -24564,7 +24564,7 @@ SELECT + + col2 AS col0 FROM tab2 AS cor0 WHERE NOT 47 * col0 + - ( - 24 ) + - c # 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 col0" at position 0 and "count\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "count\(Int64\(78\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COUNT ( * ) AS col0, + COUNT ( 78 ) AS col0 FROM tab0 cor0 query III rowsort @@ -25881,7 +25881,7 @@ SELECT MIN ( DISTINCT 87 ) AS col1 FROM tab2 # 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 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\(\-86\) 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 - 86 AS col1, COUNT ( * ) col1 FROM tab1 AS cor0 WHERE NOT - col1 < NULL query I rowsort @@ -27317,7 +27317,7 @@ SELECT col2 / - 30 FROM tab1 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 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\(\*\) )?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 ( * ) AS col0, - COUNT ( * ) AS col0 FROM tab0 AS cor0 query I rowsort label-4493 @@ -32218,7 +32218,7 @@ SELECT - - 52 + + + 41 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -199 -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\(\(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "sum\(\(\- tab0\.col0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, SUM ( - col0 ) AS col1 FROM tab0 query I rowsort label-5314 @@ -35104,7 +35104,7 @@ SELECT - ( 50 ) AS col0 FROM tab0 # 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\(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 "\(\- \(\- count\(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 - - COUNT ( + col0 ) AS col0, + ( COUNT ( * ) ) AS col0 FROM tab0 AS cor0 query III 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 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\. SELECT DISTINCT - SUM ( ALL col1 ) * - CAST ( NULL AS INTEGER ) / COUNT ( * ) AS col1, + ( + COUNT ( * ) ) AS col1 FROM tab1 AS cor0 query I rowsort label-6329 @@ -54362,7 +54362,7 @@ SELECT 73 col0 FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 44 -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\(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\(\*\) )?AS col2" at position 0 and "Int64\(44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) col2, 44 col2 FROM tab2 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_31.slt b/data/sqlite/random/aggregates/slt_good_31.slt index b121309..18360b5 100644 --- a/data/sqlite/random/aggregates/slt_good_31.slt +++ b/data/sqlite/random/aggregates/slt_good_31.slt @@ -2489,7 +2489,7 @@ SELECT DISTINCT 96 * - col0 + + - 95 * - - col0 + + - 84 * col2 FROM tab1 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 "count\(Int64\(1\)\) AS count\(\*\) / sum\(Int64\(15\)\) 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\(\*\) / sum\(Int64\(15\)\) 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 ( * ) / SUM ( ALL + 15 ) AS col2, + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL query III rowsort @@ -4155,7 +4155,7 @@ SELECT DISTINCT 59, + col2 FROM tab0 AS cor0 # 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 "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\(\*\) )?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 + COUNT ( * ) AS col1, - 9 AS col1 FROM tab0 AS cor0 query I rowsort @@ -4898,7 +4898,7 @@ SELECT DISTINCT + - MAX ( - 56 ) AS col1 FROM tab1 AS cor0 # 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(66\) / sum\(DISTINCT \(\- 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\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(66\) / sum\(DISTINCT \(\- tab0\.col0\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col0, - COUNT ( * ) * + + 66 / + SUM ( DISTINCT - col0 ) AS col0 FROM tab0 query I rowsort @@ -6956,7 +6956,7 @@ SELECT + col1 col2, - 50 * - CAST ( + ( - 50 ) AS INTEGER ) 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) AS col2, + COUNT ( * ) AS col2 FROM tab2 AS cor0 query III rowsort @@ -17083,7 +17083,7 @@ SELECT * FROM tab1 AS cor0 WHERE ( ( - - col1 ) ) IS NULL # 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 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\(39\) 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 + 39 AS col1, COUNT ( * ) AS col1 FROM tab1 cor0 query I rowsort label-2811 @@ -17816,7 +17816,7 @@ SELECT * FROM tab0 WHERE col2 * - ( + col0 ) < - col1 # 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 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\(\*\) )?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 ( * ) col0, - COUNT ( * ) AS col0 FROM tab1 query I rowsort @@ -19184,7 +19184,7 @@ SELECT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL NOT BETWEEN NULL AND # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 198 -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\(\*\) \* \(\- 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\(\*\) )?AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-66\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) col1, COUNT ( * ) * - - 66 AS col1 FROM tab2 AS cor0 query I rowsort @@ -24692,7 +24692,7 @@ SELECT - COUNT ( * ) * - - 92 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) 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\(12\) 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 12 AS col0, COUNT ( * ) col0 FROM tab1 query I rowsort label-4059 @@ -25992,7 +25992,7 @@ SELECT - col1 * col2 / - col2 col0 FROM tab2 AS cor0 # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col1, 94 AS col1 FROM tab1 query I rowsort label-4278 @@ -27202,7 +27202,7 @@ SELECT ALL - ( - col1 ) * + + 77 + + col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -81 # Datafusion - Expected - 43 -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\(\-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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* 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 - COUNT ( * ) * COUNT ( * ) AS col1, ( - - 43 ) AS col1 FROM tab2, tab0 AS cor0 query I rowsort label-4475 @@ -29954,7 +29954,7 @@ SELECT - + MAX ( 80 ) FROM tab1 AS cor0 # 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 "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 "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 51 AS col0, COUNT ( * ) AS col0 FROM tab1 query I rowsort @@ -32613,7 +32613,7 @@ SELECT DISTINCT - 86 + - MAX ( DISTINCT - + col0 ) AS col2 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 "Int64\(\-1\) 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\(\-1\) 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 - 1 col2, + COUNT ( * ) AS col2 FROM tab0 query I rowsort @@ -32649,7 +32649,7 @@ SELECT DISTINCT - 82 FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(89\) 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\(97\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(89\) 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 + 97 * - COUNT ( * ) + + 89 AS col0, COUNT ( * ) col0 FROM tab0 AS cor0 WHERE NOT NULL > NULL query I rowsort @@ -34910,7 +34910,7 @@ SELECT col0 AS col0, - 52 * + col0 - col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 83 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, 83 AS col1 FROM tab2, tab1 AS cor0 query I rowsort label-5741 @@ -35250,7 +35250,7 @@ SELECT DISTINCT col2 AS col0, + 5 + - 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 "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 "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 COUNT ( * ) AS col2, ( + COUNT ( * ) ) AS col2 FROM tab1 AS cor0 query I rowsort @@ -45408,7 +45408,7 @@ SELECT DISTINCT + + 51 AS col2 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\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-9\) 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\(\*\) \+ Int64\(\-9\) 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 ( * ) + + - 9 AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0 query I rowsort label-7469 @@ -57364,7 +57364,7 @@ SELECT - 6 + + col2 AS col1 FROM tab2 AS cor0 # 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 col1" at position 0 and "min\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "min\(Int64\(0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, MIN ( - 0 ) AS col1 FROM tab0 AS cor0 query III rowsort diff --git a/data/sqlite/random/aggregates/slt_good_32.slt b/data/sqlite/random/aggregates/slt_good_32.slt index 5e38a44..fa27827 100644 --- a/data/sqlite/random/aggregates/slt_good_32.slt +++ b/data/sqlite/random/aggregates/slt_good_32.slt @@ -5485,7 +5485,7 @@ SELECT ALL - 82, 68 AS col2 FROM tab0 # 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 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, + 74 AS col2 FROM tab2 query II rowsort @@ -7024,7 +7024,7 @@ SELECT ALL + col2 * + 66 * + CAST ( 65 AS INTEGER ) FROM tab1 AS cor0 # Datafusion - Expected - 9 # Datafusion - Expected - 3 # Datafusion - Expected - 18 -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 "Int64\(18\) 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 "Int64\(18\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) * + COUNT ( * ), COUNT ( * ) AS col1, + 18 AS col1 FROM tab2 AS cor0 query II rowsort label-1129 @@ -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 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\. 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 @@ -17297,7 +17297,7 @@ SELECT ALL col2 * + + 42 AS col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 "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 32 AS col0, + COUNT ( * ) AS col0 FROM tab2 query II rowsort @@ -31292,7 +31292,7 @@ SELECT - - 30 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 53 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, + 53 AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: @@ -34722,7 +34722,7 @@ SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE + col1 * + col1 + 75 - - + col1 * # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 99 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "max\(tab0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col0, MAX ( ALL + col2 ) AS col0 FROM tab0 query I rowsort label-5724 @@ -38894,7 +38894,7 @@ SELECT DISTINCT + + 72 col1 FROM tab0 AS cor0 WHERE NOT + col1 > NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 185 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(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 "sum\(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 + SUM ( + col0 ) col0, COUNT ( * ) col0 FROM tab2 cor0 query I rowsort @@ -46247,7 +46247,7 @@ SELECT + COUNT ( * ) / + COUNT ( * ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) 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\(26\) 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 + 26 col1, COUNT ( * ) AS col1 FROM tab1 cor0 query I rowsort @@ -47659,7 +47659,7 @@ SELECT 84 + + col1 col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(15\) AS col0" at position 0 and "Int64\(22\) \+ 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\(15\) AS col0" at position 0 and "Int64\(22\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) + + + 15 AS col0, 22 + + + COUNT ( * ) AS col0 FROM tab2 query III rowsort @@ -53111,7 +53111,7 @@ SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 28 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 63 -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\(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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) 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 DISTINCT - COUNT ( * ) AS col2, + 21 * + COUNT ( * ) AS col2 FROM tab1 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 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\. 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 Int32\)\) 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 @@ -60276,7 +60276,7 @@ SELECT ALL - COUNT ( - CAST ( NULL AS INTEGER ) ) 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 "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 "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 - 29 AS col2, COUNT ( * ) AS col2 FROM tab1 AS cor0 query I rowsort label-9944 diff --git a/data/sqlite/random/aggregates/slt_good_33.slt b/data/sqlite/random/aggregates/slt_good_33.slt index e501dc2..7032ede 100644 --- a/data/sqlite/random/aggregates/slt_good_33.slt +++ b/data/sqlite/random/aggregates/slt_good_33.slt @@ -2409,7 +2409,7 @@ SELECT 58 / + col2 AS col1 FROM tab1 # 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 "count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 COUNT ( * ) AS col2, 28 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 query II rowsort label-408 @@ -7808,7 +7808,7 @@ SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col1 AND 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\(\*\)\) \* \(\- 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\(\*\)\) 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 ( * ) * - COUNT ( * ) AS col1, ( COUNT ( * ) ) col1 FROM tab0 query I rowsort label-1304 @@ -9775,7 +9775,7 @@ SELECT DISTINCT * FROM tab2 WHERE NOT - - 24 <= NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 61 -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\(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\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col2, 61 AS col2 FROM tab2 query I rowsort label-1632 @@ -14744,7 +14744,7 @@ SELECT DISTINCT - col0 * + col0 * col2 * col2 AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -33 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) 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\(\-33\) 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 - 33 AS col1, COUNT ( * ) AS col1 FROM tab1 query I rowsort @@ -23544,7 +23544,7 @@ NULL # 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 col2" at position 0 and "sum\(Int64\(1\)\) \* \(\- count\(cor0\.col0\)\) / 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\(89\) AS col2" at position 0 and "sum\(Int64\(1\)\) \* \(\- count\(cor0\.col0\)\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 89 col2, SUM ( ALL 1 ) * + - COUNT ( + col0 ) / + COUNT ( * ) AS col2 FROM tab0 AS cor0 query I rowsort label-3908 @@ -29375,7 +29375,7 @@ SELECT ALL * FROM tab1 WHERE - CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 141 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(47\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) col2, COUNT ( * ) * 47 AS col2 FROM tab0 AS cor0 query I rowsort label-4870 @@ -29417,7 +29417,7 @@ SELECT DISTINCT + col2, 42 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -50 -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\(\-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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(\-50\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, - 50 AS col1 FROM tab2 query I rowsort @@ -44768,7 +44768,7 @@ SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL <= NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 68 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(68\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, + 68 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 query II rowsort label-7435 @@ -50862,7 +50862,7 @@ SELECT DISTINCT + SUM ( DISTINCT + 88 ) AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - 3 -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\(\*\) AS col1" at position 1 have the 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\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 7 col1, COUNT ( * ) AS col1 FROM tab1 query III rowsort @@ -59000,7 +59000,7 @@ SELECT DISTINCT - SUM ( - - col1 ) AS col0 FROM tab0 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 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\(\*\) )?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 ( * ) col1, + COUNT ( * ) AS col1 FROM tab1 AS cor0 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_34.slt b/data/sqlite/random/aggregates/slt_good_34.slt index fdf392c..49959ed 100644 --- a/data/sqlite/random/aggregates/slt_good_34.slt +++ b/data/sqlite/random/aggregates/slt_good_34.slt @@ -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 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\. 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 Int32\)\) 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 @@ -9315,7 +9315,7 @@ SELECT + 42 FROM tab2 WHERE NOT ( + 74 ) NOT BETWEEN - 97 + - - 3 AND NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1632 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-51\) \* Int64\(32\) 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\(\-51\) \* Int64\(32\) 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 - 51 * 32 col2, COUNT ( * ) AS col2 FROM tab2 query I rowsort @@ -11567,7 +11567,7 @@ SELECT + 49 + COUNT ( * ) + - - COUNT ( * ) AS col1 FROM tab2 WHERE + ( + ( - ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \+ count\(Int64\(1\)\) AS count\(\*\) 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\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 35 + + + COUNT ( * ) AS col2, 90 AS col2 FROM tab2 AS cor0 query I rowsort @@ -17289,7 +17289,7 @@ SELECT - + CAST ( - 10 AS INTEGER ), 90 AS col1 FROM ( tab1 cor0 CROSS JOIN tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) 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\(28\) 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 28 AS col0, COUNT ( * ) AS col0 FROM tab1, tab1 AS cor0 query I rowsort label-2858 @@ -18349,7 +18349,7 @@ SELECT + 44 * - col1 AS col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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\(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 ALL 17 AS col0, COUNT ( * ) AS col0 FROM tab2 query I rowsort @@ -26905,7 +26905,7 @@ SELECT ALL col1 + col2 - col2 * - - 75 AS col1 FROM tab0 # 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 "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, - COUNT ( * ) AS col1 FROM tab1 query II rowsort @@ -33635,7 +33635,7 @@ SELECT + - 48 AS col0, + 62 - + col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 588 -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\(Int64\(65\)\) \* 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\(\*\) )?AS col1" at position 0 and "sum\(Int64\(65\)\) \* 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 ( * ) AS col1, SUM ( + 65 ) * + COUNT ( * ) + + + COUNT ( * ) AS col1 FROM tab1 AS cor0 query III rowsort @@ -46060,7 +46060,7 @@ SELECT - - col2, - 69 * - ( + col0 ) col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 135 -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\(45\) \* 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(45\) \* count\(Int64\(\-2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) col1, 45 * COUNT ( ALL - 2 ) AS col1 FROM tab2 AS cor0 query I rowsort label-7629 @@ -46249,7 +46249,7 @@ SELECT ALL - col1 AS col0 FROM tab2 WHERE NOT ( + col2 ) * col1 + col0 + + + col # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -68 -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\(\-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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(\-68\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col1, - 68 AS col1 FROM tab1 query I rowsort @@ -53697,7 +53697,7 @@ SELECT ALL col2 * + 84 AS col0, col2 col2 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) 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\(91\) 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 91 AS col1, COUNT ( * ) AS col1 FROM tab0 query I rowsort label-8891 @@ -57139,7 +57139,7 @@ SELECT + 27 + - ( - + 77 ) AS col2, - COUNT ( * ) AS col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -174 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- cor0\.col2\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "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 "min\(\(\- cor0\.col2\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(\-6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL MIN ( - col2 ) * + COUNT ( * ) AS col1, - 6 AS col1 FROM tab2 AS cor0 query II rowsort diff --git a/data/sqlite/random/aggregates/slt_good_35.slt b/data/sqlite/random/aggregates/slt_good_35.slt index 16bd55c..a8dac3b 100644 --- a/data/sqlite/random/aggregates/slt_good_35.slt +++ b/data/sqlite/random/aggregates/slt_good_35.slt @@ -8632,7 +8632,7 @@ SELECT DISTINCT 24 / 58 AS col1, + MAX ( - ( + 58 ) ) 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 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\(\*\) )?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 ( * ) AS col0, + COUNT ( * ) AS col0 FROM tab0 query I rowsort label-1438 @@ -9753,7 +9753,7 @@ SELECT - col0 + - 18 + - 26 AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 98 -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\(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 "Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col2, 98 AS col2 FROM tab0 cor0 query I rowsort label-1629 @@ -14648,7 +14648,7 @@ SELECT DISTINCT + col2 - col1 + col0 AS col1 FROM tab2 AS cor0 # 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\(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\) 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 9 AS col2, COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= + col0 * + col0 query III 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 Int32\) \- CAST\(count\(Int64\(1\)\) (AS count\(\*\) )?AS Int32\) 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 @@ -30506,7 +30506,7 @@ SELECT ALL + COUNT ( * ) * 56 FROM tab1 WHERE + ( - col2 ) <> ( + col2 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - -15 -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 "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\(75\) \+ 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 DISTINCT + 75 + COUNT ( * ) col0, - 15 col0 FROM tab1 query I rowsort label-5082 @@ -32823,7 +32823,7 @@ SELECT ALL ( - 67 ) FROM tab0 # Datafusion - Expected - 3 # Datafusion - Expected - 230 # Datafusion - Expected - 31 -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 cor0\.col1\) \+ \(\- 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 "sum\(DISTINCT cor0\.col1\) \+ \(\- Int64\(\-35\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col0, SUM ( DISTINCT col1 ) + - - 35 AS col0, + + 31 FROM tab2 AS cor0 query I rowsort @@ -36148,7 +36148,7 @@ SELECT DISTINCT - - col1 * 76 AS col1 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\(\*\) 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\(\*\) )?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 ( * ) AS col1, + COUNT ( * ) AS col1 FROM tab2 AS cor0 query I rowsort @@ -53893,7 +53893,7 @@ SELECT + col2 * + 40 * - - 22, col2 AS col1 FROM tab2 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 "Int64\(7\) \+ count\(cor0\.col2\) \* sum\(\(\- cor0\.col1\)\) 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\) \+ count\(cor0\.col2\) \* sum\(\(\- cor0\.col1\)\) 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 + COUNT ( ALL col2 ) * + SUM ( ALL - + col1 ) AS col1, + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NULL NOT IN ( col2, - col2 + + col0, - col2 ) query III rowsort @@ -53982,7 +53982,7 @@ SELECT DISTINCT 34 * + 54 AS col0 FROM tab1 # 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 "max\(\(\- cor0\.col0\)\) 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\(\(\- cor0\.col0\)\) 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 ( - col0 ) AS col2, + COUNT ( * ) AS col2 FROM tab0 AS 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..4c0fd81 100644 --- a/data/sqlite/random/aggregates/slt_good_36.slt +++ b/data/sqlite/random/aggregates/slt_good_36.slt @@ -2820,7 +2820,7 @@ SELECT DISTINCT - COUNT ( * ) * MIN ( DISTINCT - + ( - col0 ) ) AS col2 FROM tab # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 # Datafusion - Expected - 246 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) AS col1" at position 0 and "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 "Int64\(\-23\) AS col1" at position 0 and "Int64\(82\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 23 AS col1, 82 * + COUNT ( * ) AS col1 FROM tab0 query I rowsort @@ -6440,7 +6440,7 @@ SELECT ALL col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL # 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 "Int64\(69\) / max\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(69\) / max\(Int64\(\-70\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) col0, 69 / + MAX ( - 70 ) AS col0 FROM tab1 query I rowsort label-1055 @@ -8298,7 +8298,7 @@ SELECT col2 + + col2 + - col0 AS col2 FROM tab0 # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab2 query I rowsort label-1363 @@ -15627,7 +15627,7 @@ SELECT + col1 * 65 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\(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\(\*\)\) 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 ( * ) col0, COUNT ( * ) AS col0 FROM tab0 query I rowsort label-2575 @@ -24534,7 +24534,7 @@ SELECT DISTINCT + col2 AS col1 FROM tab2 WHERE 96 < - col1 / col2 / 96 - col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 12 -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\(72\) / 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(72\) / Int64\(6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) col0, 72 / 6 col0 FROM tab0 query II rowsort @@ -25627,7 +25627,7 @@ SELECT col1 * ( - 53 ) * - 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 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\(\*\)\) 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 ( * ) AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0 query I rowsort @@ -28805,7 +28805,7 @@ SELECT DISTINCT - col2 + - + 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\(\*\) 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\(\*\) )?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 ( * ) AS col1, - COUNT ( * ) AS col1 FROM tab1 query I rowsort label-4777 @@ -38115,7 +38115,7 @@ SELECT + - col0 * - 25 AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -227 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT \(\- cor0\.col0\)\) 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 "sum\(DISTINCT \(\- cor0\.col0\)\) 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 + SUM ( DISTINCT - + col0 ) AS col2, COUNT ( * ) AS col2 FROM tab1 AS cor0 query I rowsort @@ -39411,7 +39411,7 @@ SELECT + 98 AS col2 FROM tab1 WHERE NOT NULL IS NOT 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 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\(\-9\)\) 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 - - 9 AS col1, COUNT ( * ) AS col1 FROM tab2 WHERE - - col0 * col1 IS NULL query II rowsort label-6542 @@ -40849,7 +40849,7 @@ SELECT * FROM tab0 cor0 WHERE NULL NOT IN ( 88 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \+ count\(Int64\(1\)\) AS count\(\*\) 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\(49\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?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 + 49 + + COUNT ( * ) AS col2, + ( + + 12 ) AS col2 FROM tab1 AS cor0 query I rowsort @@ -43795,7 +43795,7 @@ SELECT - col2 - ( 87 ) / 58 AS col0 FROM tab0 cor0 WHERE NOT col2 = + col1 * col # 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\(\-42\) 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\(\-42\) 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 - 42 col2, COUNT ( * ) AS col2 FROM tab1 AS cor0 query I rowsort label-7265 @@ -53755,7 +53755,7 @@ SELECT DISTINCT 17 * + 13 * + COUNT ( DISTINCT 8 ), 23 * + 5 * - MAX ( DISTINCT # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -45 -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\) AS col2" at position 1 have the same name\. Consider aliasing \("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\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, - 45 AS col2 FROM tab0 query I rowsort label-8905 @@ -57867,7 +57867,7 @@ SELECT COUNT ( * ) * + ( - 53 ) AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- Int64\(\-45\)\)\) 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 "min\(\(\- Int64\(\-45\)\)\) 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 MIN ( - - 45 ) AS col2, + COUNT ( * ) AS col2 FROM tab2 query I rowsort @@ -58930,7 +58930,7 @@ SELECT + + COUNT ( * ) FROM tab2 WHERE NOT ( - 92 > + col1 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - -55 -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 "\(\- 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 "count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "\(\- Int64\(55\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) + COUNT ( * ) col2, - ( 55 ) AS col2 FROM tab0 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..3764251 100644 --- a/data/sqlite/random/aggregates/slt_good_37.slt +++ b/data/sqlite/random/aggregates/slt_good_37.slt @@ -18615,7 +18615,7 @@ NULL # 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 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\(\*\)\) 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 ( * ) AS col0, COUNT ( * ) col0 FROM tab0 cor0 query I rowsort label-3091 @@ -25766,7 +25766,7 @@ SELECT + - 89 FROM tab2 WHERE NULL <= NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -30 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) \+ 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 "Int64\(\-53\) \+ 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 - 53 + + + 23 AS col1, COUNT ( * ) AS col1 FROM tab1 AS cor0 query I rowsort label-4272 @@ -26528,7 +26528,7 @@ SELECT + col1 * + + 89 AS col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 75 -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\) AS col2" at position 1 have the same name\. Consider aliasing \("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\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, + 75 AS col2 FROM tab0 cor0 query I rowsort @@ -27627,7 +27627,7 @@ SELECT ALL + - CAST ( - 99 AS INTEGER ) FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) 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\(71\) 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 71 AS col1, + COUNT ( * ) AS col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: @@ -30590,7 +30590,7 @@ SELECT MIN ( DISTINCT + - col0 ) AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -99 -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\(\-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\(\*\) )?AS col1" at position 0 and "Int64\(\-99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col1, - 99 AS col1 FROM tab0 query I rowsort label-5077 @@ -30976,7 +30976,7 @@ SELECT + COUNT ( * ) * COUNT ( * ) col1 FROM tab2 AS cor0 # 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 "count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 + + COUNT ( * ) col2, + 90 col2 FROM tab0 AS cor0 WHERE NULL <= + col0 query I rowsort label-5142 @@ -40008,7 +40008,7 @@ SELECT + col1 / col0 * + 65 + + col2 * col1, col0 col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # 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 "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\(\*\) )?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 ( * ) AS col2, 58 AS col2 FROM tab2 cor0 query I rowsort @@ -40079,7 +40079,7 @@ SELECT DISTINCT - 38 + col0, col1 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - -1173 -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\(23\) \* \(\- 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\(\*\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(23\) \* \(\- Int64\(51\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) + + + COUNT ( * ) AS col1, + 23 * - + 51 AS col1 FROM tab0 query II rowsort @@ -41956,7 +41956,7 @@ SELECT + 20 + - + col1 + + + col2 + ( + col1 ) * - 34 col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 61 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 COUNT ( * ) col0, 61 AS col0 FROM tab0 WHERE NOT ( NULL ) IS NULL query II rowsort diff --git a/data/sqlite/random/aggregates/slt_good_38.slt b/data/sqlite/random/aggregates/slt_good_38.slt index ed644b4..aa8194e 100644 --- a/data/sqlite/random/aggregates/slt_good_38.slt +++ b/data/sqlite/random/aggregates/slt_good_38.slt @@ -646,7 +646,7 @@ SELECT + - COUNT ( * ) * 54 + ( + + ( + + 64 ) ) * + - COUNT ( DISTINCT 88 ) + + # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -59 -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\(\(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "max\(\(\- cor0\.col2\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col0, MAX ( - col2 ) AS col0 FROM tab1 AS cor0 query I rowsort label-103 @@ -2258,7 +2258,7 @@ SELECT col2 * + col1 * - ( + col1 ) * col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) 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\(69\) 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 69 AS col2, COUNT ( * ) AS col2 FROM tab1 query I rowsort @@ -2904,7 +2904,7 @@ SELECT DISTINCT - - col0 - - - 86 + - 74 AS col2 FROM tab2 AS cor0 # 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 "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(DISTINCT \(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "count\(DISTINCT \(\- Int64\(54\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col0, + COUNT ( DISTINCT - + 54 ) AS col0 FROM tab1 AS cor0 query I rowsort label-477 @@ -5393,7 +5393,7 @@ SELECT ALL - - 56 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 64 -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\) AS col1" at position 1 have the same name\. Consider aliasing \("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\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, 64 AS col1 FROM tab1 AS cor0 query I rowsort @@ -16164,7 +16164,7 @@ SELECT ALL - 49 FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-21\) \* Int64\(\-4\) \- \(\- count\(cor0\.col0\)\) \+ min\(DISTINCT cor0\.col1\) / Int64\(48\) AS col1" at position 0 and "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\(\-21\) \* Int64\(\-4\) \- \(\- count\(cor0\.col0\)\) \+ min\(DISTINCT cor0\.col1\) / Int64\(48\) AS col1" at position 0 and "Int64\(63\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 21 * - 4 - - COUNT ( col0 ) + + MIN ( DISTINCT ( + col1 ) ) / 48 AS col1, + 63 / + COUNT ( * ) AS col1 FROM tab1 AS cor0 query I rowsort label-2662 @@ -21168,7 +21168,7 @@ SELECT DISTINCT - MAX ( - col0 ) AS col0 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 30 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col0, 30 AS col0 FROM tab0 query III rowsort @@ -30799,7 +30799,7 @@ SELECT ALL - col0, ( col2 ) + - col2 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -99 -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 "min\(DISTINCT \(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "min\(DISTINCT \(\- tab0\.col2\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col2, MIN ( DISTINCT - col2 ) AS col2 FROM tab0 # Datafusion - Types were automatically converted from: @@ -31570,7 +31570,7 @@ SELECT ALL col1 AS col0 FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN ( NULL ) AN # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) 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\(92\) 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 92 col0, COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( col1 * + 4 * 66 ) IS NOT NULL query III rowsort @@ -36511,7 +36511,7 @@ SELECT col0 AS col2, col2 - + - ( - + 7 ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 37 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 COUNT ( * ) AS col0, + 37 AS col0 FROM tab1 WHERE NOT 50 >= + + col1 query I rowsort label-6030 @@ -39454,7 +39454,7 @@ SELECT DISTINCT * FROM tab0 WHERE - 87 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -34 # Datafusion - Expected - 9 -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\(\*\) AS col0" at position 1 have the 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\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 34 AS col0, COUNT ( * ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) query I rowsort label-6510 @@ -42665,7 +42665,7 @@ SELECT + col2 - + col1 FROM tab1 WHERE NOT NULL BETWEEN NULL AND col2 * - col1 + # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 53 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, 53 AS col1 FROM tab1 query II rowsort @@ -42917,7 +42917,7 @@ SELECT DISTINCT - CAST ( + 68 AS INTEGER ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 97 -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\(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\(\*\) )?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 ( * ) col0, + 97 AS col0 FROM tab1 AS cor0 query I rowsort label-7078 @@ -44600,7 +44600,7 @@ SELECT DISTINCT col2 + 97 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(90\)\) 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\(Int64\(90\)\) 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 + MAX ( 90 ) AS col1, COUNT ( * ) col1 FROM tab2 AS cor0 query III rowsort @@ -45054,7 +45054,7 @@ SELECT DISTINCT - 77 - ( - col0 ) + + col1 AS col0, 14 + - ( + ( + col1 ) ) AS c # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 70 -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\) AS col2" at position 1 have the same name\. Consider aliasing \("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\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col2, + 70 AS col2 FROM tab1 query I rowsort @@ -45071,7 +45071,7 @@ SELECT * FROM tab0 AS cor0 WHERE ( NULL ) <= + - 94 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 22 -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\(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\(\*\) )?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 COUNT ( * ) col1, 22 AS col1 FROM tab1 AS cor0 WHERE NULL < NULL query II rowsort label-7448 @@ -46120,7 +46120,7 @@ SELECT COUNT ( ALL - col0 ) AS col2 FROM tab0 WHERE NOT col1 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 "count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) col2, 6 AS col2 FROM tab1 query I rowsort @@ -47733,7 +47733,7 @@ SELECT ALL - COUNT ( * ) - 63 AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 31 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, 31 AS col0 FROM tab1 query I rowsort @@ -52311,7 +52311,7 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + + 69 - - col0 * col0 ) <> col1 OR # 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 col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / \(\- max\(DISTINCT 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\(\*\) )?AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / \(\- max\(DISTINCT Int64\(16\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COUNT ( * ) col1, - COUNT ( * ) / + - MAX ( DISTINCT + ( 16 ) ) AS col1 FROM tab0 cor0 query III rowsort diff --git a/data/sqlite/random/aggregates/slt_good_39.slt b/data/sqlite/random/aggregates/slt_good_39.slt index 1b17ba6..2bbb42c 100644 --- a/data/sqlite/random/aggregates/slt_good_39.slt +++ b/data/sqlite/random/aggregates/slt_good_39.slt @@ -938,7 +938,7 @@ SELECT DISTINCT col2 * col1 * + - col2 + col2 * + - col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) 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\(40\) 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 40 AS col1, COUNT ( * ) AS col1 FROM tab2 query I rowsort label-159 @@ -5306,7 +5306,7 @@ SELECT MAX ( + col2 ) AS col2 FROM tab1 # 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 "count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 COUNT ( * ) AS col0, + 6 AS col0 FROM tab1 AS cor0 query I rowsort label-875 @@ -11367,7 +11367,7 @@ SELECT DISTINCT - 92 * - - col0 FROM tab0 # 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 "count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, + 21 AS col0 FROM tab1 query I rowsort @@ -15821,7 +15821,7 @@ SELECT ALL COUNT ( * ) * CAST ( + - COUNT ( * ) AS INTEGER ) - + SUM ( + 90 ) FR # 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 "Int64\(0\) 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\(0\) 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 - 0 AS col2, ( COUNT ( * ) ) AS col2 FROM tab2 WHERE NOT + 78 IS NULL query II rowsort @@ -20260,7 +20260,7 @@ SELECT + 88 * - 8 AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -18 # Datafusion - Expected - 3 -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\(\*\) AS col2" at position 1 have the 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\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 18 AS col2, + COUNT ( * ) AS col2 FROM tab0 AS cor0 query I rowsort @@ -28060,7 +28060,7 @@ SELECT - + ( - 72 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -90 # Datafusion - Expected - -33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) AS col0" at position 0 and "Int64\(\-36\) \+ 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\) AS col0" at position 0 and "Int64\(\-36\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 90 AS col0, - 36 + COUNT ( * ) AS col0 FROM tab2 AS cor0 query I rowsort @@ -36930,7 +36930,7 @@ SELECT ALL 63 / COUNT ( * ) col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 80 -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\(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\(\*\) )?AS col2" at position 0 and "Int64\(80\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, + 80 AS col2 FROM tab0 AS cor0 query I rowsort label-6058 @@ -47846,7 +47846,7 @@ SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) > + - col2 # 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 "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 "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, + COUNT ( * ) col2 FROM tab0 AS cor0 query I rowsort label-7846 @@ -48927,7 +48927,7 @@ SELECT ALL 48, - col2 / - - col1 + + + col0 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\(\*\)\)\) 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\(\*\)\)\) 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 ( * ) AS col0, + COUNT ( * ) AS col0 FROM tab2 AS cor0 query II rowsort @@ -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 Int32\) 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 @@ -57789,7 +57789,7 @@ SELECT DISTINCT - MIN ( + 2 ) FROM tab0 # 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\(\-27\)\) 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\(\-27\)\) 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 ( ALL - 27 ) AS col0, COUNT ( * ) AS col0 FROM tab2 query I rowsort label-9477 diff --git a/data/sqlite/random/aggregates/slt_good_4.slt b/data/sqlite/random/aggregates/slt_good_4.slt index 1726e19..f60e44f 100644 --- a/data/sqlite/random/aggregates/slt_good_4.slt +++ b/data/sqlite/random/aggregates/slt_good_4.slt @@ -220,7 +220,7 @@ SELECT DISTINCT + ( + col2 ) * + 10 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - 3 -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\(\*\) AS col0" at position 1 have the 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\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 55 AS col0, COUNT ( * ) AS col0 FROM tab0 query II rowsort label-27 @@ -4756,7 +4756,7 @@ SELECT ALL - col2 AS col0 FROM tab2 AS cor0 WHERE + 6 * col0 / - - 46 > - 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - -81 -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 "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 "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) (AS count\(\*\) )?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 + COUNT ( * ) * + COUNT ( * ) AS col2, - 81 col2 FROM tab0 AS cor0 query III rowsort label-764 @@ -16654,7 +16654,7 @@ SELECT ALL col1 * ( col0 ) col2 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 "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "min\(\(\- 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 "min\(\(\- Int64\(\-79\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COUNT ( * ) AS col1, MIN ( - - 79 ) AS col1 FROM tab1 WHERE NOT NULL IS NULL query III rowsort @@ -18498,7 +18498,7 @@ SELECT - col1 + + ( 55 ) AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - -119 -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 "Int64\(\-2\) \+ \(\- sum\(\(\- 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 "count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(\-2\) \+ \(\- sum\(\(\- Int64\(\-39\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) + ( + COUNT ( * ) ) AS col0, - 2 + - SUM ( - - 39 ) AS col0 FROM tab0 AS cor0 query I rowsort label-3023 @@ -24134,7 +24134,7 @@ SELECT col0 * col2 * + 35 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 20 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, + 20 col2 FROM tab1 query I rowsort label-3940 @@ -30079,7 +30079,7 @@ NULL # Datafusion - Expected - -3 # 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 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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 DISTINCT - COUNT ( * ), COUNT ( * ) col1, - - COUNT ( * ) AS col1 FROM tab0 query II rowsort @@ -48341,7 +48341,7 @@ SELECT + - ( + 74 ) AS col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 80 -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\(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\(\*\) )?AS col1" at position 0 and "Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col1, + 80 col1 FROM tab0 AS cor0 query III rowsort @@ -49163,7 +49163,7 @@ SELECT ALL col1 - - + CAST ( - 31 AS INTEGER ) + - + col1 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\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "count\(tab1\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col1, COUNT ( + col0 ) AS col1 FROM tab1 query II rowsort label-8094 @@ -49435,7 +49435,7 @@ SELECT - + ( + 3 ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -2 -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\(\*\)\) \+ 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\(\*\) )?AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + COUNT ( * ) col1, - ( COUNT ( * ) ) + 1 AS col1 FROM tab2 AS cor0 query I rowsort label-8140 @@ -53787,7 +53787,7 @@ SELECT col2, - 12 AS col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) 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\(2\) 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 2 AS col1, COUNT ( * ) AS col1 FROM tab1 query I rowsort label-8842 diff --git a/data/sqlite/random/aggregates/slt_good_40.slt b/data/sqlite/random/aggregates/slt_good_40.slt index 0c36f99..6f18ee1 100644 --- a/data/sqlite/random/aggregates/slt_good_40.slt +++ b/data/sqlite/random/aggregates/slt_good_40.slt @@ -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 Int32\) 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 @@ -6479,7 +6479,7 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 * 69 IS NOT NULL # 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 "\(\- 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\(\*\)\) 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 ( * ) AS col1, COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE - 56 IS NULL query II rowsort @@ -10153,7 +10153,7 @@ SELECT DISTINCT 0 - col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 58 -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\(\-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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(\-61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + ( + COUNT ( * ) ) col0, - COUNT ( * ) - - 61 AS col0 FROM tab0 query III rowsort @@ -10328,7 +10328,7 @@ SELECT + 11 + 83 AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT tab1\.col0\) \- count\(Int64\(1\)\) AS count\(\*\) 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 "max\(DISTINCT tab1\.col0\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + MAX ( DISTINCT col0 ) - COUNT ( * ) AS col2, 27 AS col2 FROM tab1 query III 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 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\. SELECT + CAST ( NULL AS INTEGER ) AS col0, + COUNT ( * ) AS col0 FROM tab0 AS cor0 query III rowsort @@ -29794,7 +29794,7 @@ NULL # 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 "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, - COUNT ( * ) AS col2 FROM tab0 AS cor0 query I rowsort label-4946 @@ -31232,7 +31232,7 @@ SELECT * FROM tab2 WHERE NOT + col0 + + col1 < - + 51 * + - ( + - CAST ( NULL AS # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) 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\(48\) 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 48 AS col2, COUNT ( * ) AS col2 FROM tab1 query II rowsort @@ -36165,7 +36165,7 @@ SELECT + col0 * + col0 * - + 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 "\(\- count\(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 "\(\- count\(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 - COUNT ( 21 ) AS col0, ( + COUNT ( * ) ) AS col0 FROM tab1 AS cor0 query I rowsort label-5979 @@ -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 Int32\) \* 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 @@ -55883,7 +55883,7 @@ SELECT ALL col1 col0, + col0 AS col0 FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -99 -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 "min\(\(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "min\(\(\- tab0\.col2\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col0, + MIN ( ALL - + col2 ) AS col0 FROM tab0 query I rowsort @@ -55976,7 +55976,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 45 -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\(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\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col0, + 45 AS col0 FROM tab2 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_41.slt b/data/sqlite/random/aggregates/slt_good_41.slt index 60d18e0..c9c4354 100644 --- a/data/sqlite/random/aggregates/slt_good_41.slt +++ b/data/sqlite/random/aggregates/slt_good_41.slt @@ -272,7 +272,7 @@ SELECT ALL * FROM tab2 WHERE 31 IS NULL # 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 col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-65\) \- \(\- 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 "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-65\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, + COUNT ( * ) * - 65 - - COUNT ( * ) AS col2 FROM tab1 query II rowsort label-41 @@ -1481,7 +1481,7 @@ SELECT ALL - + 13 FROM tab0 cor0 # Datafusion - Expected - 88 # Datafusion - Expected - 21 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) 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 "Int64\(88\) 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 88 AS col1, 21, + COUNT ( * ) col1 FROM tab2 AS cor0 query IIIIII rowsort @@ -4459,7 +4459,7 @@ SELECT DISTINCT - col0 AS col2, - col0 FROM tab0 # 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 "Int64\(6\) 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\(6\) 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 6 AS col2, + COUNT ( * ) AS col2 FROM tab2 query I rowsort label-748 @@ -4907,7 +4907,7 @@ SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 141 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(47\)\) \* Int64\(47\) 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\(47\)\) \* Int64\(47\) 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 ( + 47 ) ) * + 47 col2, COUNT ( * ) col2 FROM tab2 query I rowsort @@ -19378,7 +19378,7 @@ SELECT - 9 + 20 - 56 AS col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -32 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-32\) 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\(\-32\) 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 - 32 col2, COUNT ( * ) AS col2 FROM tab2 query I rowsort label-3226 @@ -33506,7 +33506,7 @@ SELECT col1, col1 AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 49 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 COUNT ( * ) AS col1, + 49 col1 FROM tab0 query II rowsort @@ -45401,7 +45401,7 @@ SELECT col2, col1 AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -830 -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\(83\) \* \(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(83\) \* \(\- Int64\(10\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, 83 * - + 10 AS col0 FROM tab1 query II rowsort @@ -49058,7 +49058,7 @@ SELECT + 88 / + 39 FROM tab1 AS cor0 # 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 "count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COUNT ( * ) AS col2, 54 col2 FROM tab0 AS cor0 query III rowsort diff --git a/data/sqlite/random/aggregates/slt_good_42.slt b/data/sqlite/random/aggregates/slt_good_42.slt index 2c4c9f9..d080471 100644 --- a/data/sqlite/random/aggregates/slt_good_42.slt +++ b/data/sqlite/random/aggregates/slt_good_42.slt @@ -4294,7 +4294,7 @@ SELECT DISTINCT + + col1 AS col1 FROM tab2 AS cor0 WHERE - ( + col2 ) = 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # 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 "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\(\(\- cor0\.col0\)\)\) 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 - MIN ( - col0 ) AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0 query I rowsort label-702 @@ -4388,7 +4388,7 @@ SELECT DISTINCT + 26 * + COUNT ( * ) - + 61 AS col0 FROM tab0 AS cor0 CROSS JOIN # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) 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\(49\) 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 49 AS col2, COUNT ( * ) AS col2 FROM tab1 query II rowsort label-715 @@ -11448,7 +11448,7 @@ SELECT - + 82 / COUNT ( - + 99 ) + + + SUM ( DISTINCT + col1 ) + + 43 / - ( - - # Datafusion - Datafusion expected results: # Datafusion - Expected - 157 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \+ \(\- Int64\(\-17\)\) \+ Int64\(55\) 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 "Int64\(85\) \+ \(\- Int64\(\-17\)\) \+ Int64\(55\) 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 + 85 + - - 17 + + 55 col0, + 80 - + + COUNT ( * ) AS col0 FROM tab2 AS cor0 query I rowsort label-1890 @@ -17673,7 +17673,7 @@ SELECT DISTINCT + - col2, 47 * + - col0 - + ( - 99 ) + - col0 col2 FROM tab1 AS # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col2" at position 0 and "Int64\(56\) \+ 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\(25\) AS col2" at position 0 and "Int64\(56\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + 25 AS col2, + ( 56 ) + + + COUNT ( * ) AS col2 FROM tab1 cor0 query I rowsort @@ -18874,7 +18874,7 @@ SELECT ALL * FROM tab2 WHERE NOT col0 NOT BETWEEN col1 + col1 - col2 AND + col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -32 -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\(\-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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(\-32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) col2, - 32 col2 FROM tab0 query III rowsort @@ -22312,7 +22312,7 @@ SELECT - MAX ( + 90 ) FROM tab2 # 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 "min\(DISTINCT tab2\.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 "min\(DISTINCT tab2\.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 + MIN ( DISTINCT + ( col2 ) ) AS col0, COUNT ( * ) AS col0 FROM tab2 query I rowsort label-3697 @@ -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 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\. SELECT 45 + - CAST ( COUNT ( col2 ) AS INTEGER ) AS col2, COUNT ( * ) AS col2 FROM tab1 AS cor0 query I rowsort @@ -42137,7 +42137,7 @@ SELECT * FROM tab0 WHERE ( NOT NULL NOT IN ( - col1 * 99 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) 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\(85\) 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 + 85 AS col1, COUNT ( * ) AS col1 FROM tab0 AS cor0 query I rowsort @@ -44625,7 +44625,7 @@ SELECT - 42 * - COUNT ( * ) AS col0 FROM tab2 # 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 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\(31\) 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 31 AS col2, COUNT ( * ) AS col2 FROM tab2 query I rowsort @@ -52315,7 +52315,7 @@ SELECT ( 16 ) FROM tab1 AS cor0 # 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 "count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "min\(cor0\.col2\) / 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\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "min\(cor0\.col2\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) * + - COUNT ( * ) AS col2, + MIN ( ALL col2 ) / COUNT ( * ) col2 FROM tab1 AS cor0 query I rowsort label-8659 @@ -57144,7 +57144,7 @@ SELECT DISTINCT 16, - col2 * + col0 + - col0 AS col1 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\(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\(\*\) )?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 ( * ) AS col0, - ( - COUNT ( * ) ) AS col0 FROM tab1 cor0 query I rowsort label-9449 diff --git a/data/sqlite/random/aggregates/slt_good_43.slt b/data/sqlite/random/aggregates/slt_good_43.slt index d7b12ae..1f923b5 100644 --- a/data/sqlite/random/aggregates/slt_good_43.slt +++ b/data/sqlite/random/aggregates/slt_good_43.slt @@ -12804,7 +12804,7 @@ SELECT + + col0, 54 * + + 22 * - 2 AS col2 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0 query II rowsort @@ -14490,7 +14490,7 @@ SELECT DISTINCT - + ( MAX ( ALL col1 ) ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -82 -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\) / count\(DISTINCT 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(\-82\) / count\(DISTINCT Int64\(92\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col0, - 82 / COUNT ( DISTINCT + 92 ) AS col0 FROM tab0 query I rowsort label-2371 @@ -23706,7 +23706,7 @@ SELECT ALL 30 * + 90 AS col1 FROM tab0 # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col1, + COUNT ( * ) AS col1 FROM tab2 AS cor0 query I rowsort label-3877 @@ -24224,7 +24224,7 @@ SELECT ALL + col0 FROM tab1 WHERE NOT ( NULL IS NULL ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -6860 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) \* \(\- Int64\(98\)\) AS col2" at position 0 and "Int64\(25\) \+ 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\) \* \(\- Int64\(98\)\) AS col2" at position 0 and "Int64\(25\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 70 * - ( + + 98 ) AS col2, 25 + + COUNT ( * ) AS col2 FROM tab1 query II rowsort @@ -26482,7 +26482,7 @@ SELECT - + ( + 78 ) AS col0 FROM tab2 AS cor0 # 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 "\(\- 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\(\*\)\) 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 ( * ) AS col1, COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL query I rowsort label-4335 @@ -27319,7 +27319,7 @@ SELECT DISTINCT + col0 AS col0 FROM tab0 AS cor0 WHERE - ( + 49 ) IS NOT NULL # 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 "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\(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 + 51 AS col2, COUNT ( * ) col2 FROM tab1 AS cor0 query II rowsort @@ -27564,7 +27564,7 @@ SELECT - col1 + + + col2 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 32 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col2, 32 col2 FROM tab2 AS cor0 WHERE NULL = NULL query II rowsort @@ -30418,7 +30418,7 @@ SELECT + - col0 AS col0, col2 * - col2 - + - col1 AS col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 78 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, 78 AS col2 FROM tab1 cor0 query II rowsort @@ -39007,7 +39007,7 @@ SELECT DISTINCT + col2 + + col1 * 96 AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\(\- cor0\.col0\)\)\) AS col1" at position 0 and "Int64\(29\) \* 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\(\(\- cor0\.col0\)\)\) AS col1" at position 0 and "Int64\(29\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( - col0 ) col1, 29 * + COUNT ( * ) AS col1 FROM tab2 AS cor0 query III rowsort @@ -39399,7 +39399,7 @@ SELECT col2 * CAST ( col0 AS INTEGER ) * + + col0 FROM tab1 # 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\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 COUNT ( * ) AS col0, + 22 AS col0 FROM tab0 query I rowsort @@ -39917,7 +39917,7 @@ SELECT ALL - COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -195 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-69\) 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\(42\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-69\) 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 + 42 * - COUNT ( * ) + - 69 AS col1, COUNT ( * ) col1 FROM tab0 AS cor0 query I rowsort @@ -41439,7 +41439,7 @@ SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 190 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) \* Int64\(\-95\) 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\(\-2\) \* Int64\(\-95\) 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 - 2 * + - 95 AS col0, COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1 query I rowsort @@ -44829,7 +44829,7 @@ SELECT - 90 + - 77 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 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\(\*\) )?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 ( * ) AS col0, COUNT ( * ) AS col0 FROM tab2 query II rowsort @@ -46677,7 +46677,7 @@ SELECT ALL COUNT ( DISTINCT + col1 ) * + COUNT ( * ) FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -26 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(26\)\)\) 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 "\(\- min\(Int64\(26\)\)\) 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 - + MIN ( 26 ) AS col2, + COUNT ( * ) col2 FROM tab0 AS cor0 query I rowsort label-7678 @@ -47268,7 +47268,7 @@ SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL IN ( ( - col0 ), col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -50 -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 "\(\- max\(DISTINCT 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "\(\- max\(DISTINCT Int64\(50\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, - MAX ( DISTINCT + + 50 ) AS col1 FROM tab0 cor0 query II rowsort @@ -51218,7 +51218,7 @@ SELECT + 69, COUNT ( col0 ) + 5 AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -92 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) 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\) 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 + - 92 AS col1, COUNT ( * ) AS col1 FROM tab0 AS cor0 query I rowsort label-8438 @@ -52409,7 +52409,7 @@ SELECT CAST ( - ( + 84 ) AS INTEGER ) AS col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- \(\- count\(tab0\.col0\)\)\)\) / count\(Int64\(1\)\) AS count\(\*\) 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 "\(\- \(\- \(\- count\(tab0\.col0\)\)\)\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( - - COUNT ( col0 ) ) / COUNT ( * ) AS col0, 35 AS col0 FROM tab0 query I rowsort label-8639 @@ -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 Int32\) 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 diff --git a/data/sqlite/random/aggregates/slt_good_44.slt b/data/sqlite/random/aggregates/slt_good_44.slt index 690d66b..fb3e722 100644 --- a/data/sqlite/random/aggregates/slt_good_44.slt +++ b/data/sqlite/random/aggregates/slt_good_44.slt @@ -919,7 +919,7 @@ SELECT ALL COUNT ( * ) * + ( COUNT ( * ) ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) 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\(22\) 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 22 AS col1, COUNT ( * ) col1 FROM tab2 query III rowsort @@ -1866,7 +1866,7 @@ SELECT col0 - + 98 + - col2 * - col0 AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -18 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-15\) \+ \(\- 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 "Int64\(\-15\) \+ \(\- 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 ALL - 15 + + - COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab2 AS cor0 query I rowsort @@ -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 Int32\)\)\)\) 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 @@ -18628,7 +18628,7 @@ SELECT ALL - col0 + - + 55 + 27 * ( - - 11 ) AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -5 -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\(\-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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(\-5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, - 5 AS col1 FROM tab0 query I rowsort label-3066 @@ -24558,7 +24558,7 @@ SELECT + 89 * - 10 AS col2 FROM tab1 WHERE NOT col0 * + - col1 IS NULL # 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 "\(\- \(\- Int64\(7\)\)\) \* 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\(7\)\)\) \* 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 - ( - + 7 ) * ( + COUNT ( * ) ) AS col2, COUNT ( * ) AS col2 FROM tab0 query I rowsort label-4043 @@ -38712,7 +38712,7 @@ SELECT ALL - 33 FROM tab0 WHERE NOT + - col1 NOT BETWEEN NULL AND NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) \* count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(12\) \* count\(Int64\(1\)\) (AS count\(\*\) )?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 12 * + COUNT ( * ) AS col1, ( - + ( COUNT ( ALL - col1 ) ) ) AS col1 FROM tab1 query III rowsort @@ -45891,7 +45891,7 @@ SELECT + + ( - col0 ) + col1 AS col1 FROM tab2 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 "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- count\(tab2\.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 "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- count\(tab2\.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 DISTINCT + COUNT ( * ) + - COUNT ( * ) * - COUNT ( * ) + + - COUNT ( + col0 ) AS col0, COUNT ( * ) AS col0 FROM tab2 query I rowsort @@ -48569,7 +48569,7 @@ SELECT 73 + + - col1 col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 276 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(92\)\) 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 "sum\(Int64\(92\)\) 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 SUM ( 92 ) AS col2, COUNT ( * ) AS col2 FROM tab1 query II rowsort @@ -50538,7 +50538,7 @@ SELECT + + col0 / + 89 AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -28 # Datafusion - Expected - 3 -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\(\*\) AS col2" at position 1 have the 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\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 28 AS col2, COUNT ( * ) AS col2 FROM tab0 query I rowsort @@ -59220,7 +59220,7 @@ SELECT DISTINCT + col2 AS col2 FROM tab1 WHERE NOT - + 65 IS NULL # 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\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 + COUNT ( * ) AS col0, + 85 AS col0 FROM tab1 query I rowsort label-9766 @@ -59995,7 +59995,7 @@ SELECT DISTINCT - - 31 + - col0 * 17 FROM tab1 WHERE NULL IS NOT NULL # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, + COUNT ( * ) AS col2 FROM tab2 query I rowsort label-9886 diff --git a/data/sqlite/random/aggregates/slt_good_45.slt b/data/sqlite/random/aggregates/slt_good_45.slt index e5bf89e..205fda9 100644 --- a/data/sqlite/random/aggregates/slt_good_45.slt +++ b/data/sqlite/random/aggregates/slt_good_45.slt @@ -1543,7 +1543,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -32 -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\(\-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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 + COUNT ( * ) AS col1, - 32 AS col1 FROM tab1 query III rowsort @@ -3484,7 +3484,7 @@ SELECT col0 / - 17 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 26 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, 26 AS col1 FROM tab2 cor0 query I rowsort label-582 @@ -10178,7 +10178,7 @@ SELECT MIN ( + col0 ) + + COUNT ( * ) AS col0 FROM tab2 AS cor0 # 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 "count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COUNT ( * ) + + COUNT ( * ) AS col1, 33 AS col1 FROM tab1 cor0 query I rowsort @@ -24197,7 +24197,7 @@ SELECT MAX ( ALL col1 ) AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -288 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col1" at position 0 and "\(\- Int64\(96\)\) \* 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\(0\) AS col1" at position 0 and "\(\- Int64\(96\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 0 AS col1, ( - + 96 ) * COUNT ( * ) AS col1 FROM tab0 AS cor0 query I rowsort @@ -27143,7 +27143,7 @@ SELECT col2 * + 44 col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) 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\(80\) 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 + + 80 AS col2, + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1 query I rowsort @@ -30051,7 +30051,7 @@ SELECT col1 * col2, + col0 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 3 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 90 col1, + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT col0 IS NULL query I rowsort label-4951 @@ -45702,7 +45702,7 @@ SELECT ( - COUNT ( ( - col1 ) ) ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 75 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(75\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, + 75 col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 query I rowsort label-7538 @@ -51500,7 +51500,7 @@ SELECT + ( - 14 ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 "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 + 5 AS col1, COUNT ( * ) AS col1 FROM tab0 AS cor0 query III rowsort diff --git a/data/sqlite/random/aggregates/slt_good_46.slt b/data/sqlite/random/aggregates/slt_good_46.slt index fcf252f..02e0066 100644 --- a/data/sqlite/random/aggregates/slt_good_46.slt +++ b/data/sqlite/random/aggregates/slt_good_46.slt @@ -3306,7 +3306,7 @@ SELECT COUNT ( ALL col2 ) AS col0 FROM tab2 # 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 "Int64\(6\) 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\(6\) 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 6 AS col2, COUNT ( * ) AS col2 FROM tab0 query I rowsort label-535 @@ -6249,7 +6249,7 @@ SELECT - SUM ( DISTINCT - col0 ) FROM tab2 # 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 col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* min\(CAST\(NULL AS Float64\)\) \* \(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* min\(CAST\(NULL AS Float64\)\) \* \(\- Int64\(72\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, + COUNT ( * ) * + + MIN ( CAST ( NULL AS FLOAT8 ) ) * - + 72 * - COUNT ( * ) AS col0 FROM tab0, tab0 AS cor0 query I rowsort @@ -9562,7 +9562,7 @@ SELECT + col1 * 85 AS col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -48 # Datafusion - Expected - 291 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) AS col2" at position 0 and "Int64\(97\) \* 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\(\-48\) AS col2" at position 0 and "Int64\(97\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 48 AS col2, 97 * + ( + COUNT ( * ) ) AS col2 FROM tab1 query I rowsort label-1573 @@ -28524,7 +28524,7 @@ SELECT ALL MAX ( DISTINCT - col0 ) AS col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -71 -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\(\-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 "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 + COUNT ( * ) AS col1, - 71 col1 FROM tab2 AS cor0 query I rowsort @@ -28551,7 +28551,7 @@ SELECT ALL 60 * - 42 AS col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 103 -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 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "sum\(DISTINCT tab0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col0, SUM ( DISTINCT col1 ) AS col0 FROM tab0 query I rowsort @@ -34351,7 +34351,7 @@ SELECT + COUNT ( * ), COUNT ( * ) FROM tab2 cor0 # Datafusion - Expected - 9 # Datafusion - Expected - -9 # Datafusion - Expected - -29 -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\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("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\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) col1, - COUNT ( * ) AS col1, - 29 FROM tab0, tab2 AS cor0 query I rowsort @@ -35889,7 +35889,7 @@ SELECT - + ( + + 11 ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 49 -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\(52\) \- 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 "Int64\(52\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col0, 52 - COUNT ( * ) AS col0 FROM tab1 AS cor0 query II rowsort @@ -37975,7 +37975,7 @@ SELECT + 56 * col2 + + - col1 + col1 + - 24 / + 30 AS col2 FROM tab1 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 "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(\-32\) 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\(\*\)\)\) \+ Int64\(\-32\) 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 ( * ) + - 32 AS col2, COUNT ( * ) AS col2 FROM tab2 AS cor0 # Datafusion - Types were automatically converted from: @@ -41361,7 +41361,7 @@ SELECT ( - 27 ) + + col2 FROM tab0 # 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 "Int64\(\-56\) 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\(\-56\) 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 - 56 AS col2, COUNT ( * ) AS col2 FROM tab0 # Datafusion - Datafusion expected results: @@ -46685,7 +46685,7 @@ SELECT DISTINCT 66 * COUNT ( * ) AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3427 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) \* \(\- Int64\(\-88\)\) \+ Int64\(5\) 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\(\-39\) \* \(\- Int64\(\-88\)\) \+ Int64\(5\) 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 - 39 * - - 88 + + 5 AS col0, COUNT ( * ) AS col0 FROM tab2 cor0 query I rowsort label-7677 @@ -52520,7 +52520,7 @@ SELECT 23 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 9 IS NOT NULL # 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 "\(\- 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 "\(\- 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, - COUNT ( * ) AS col2 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..c334c27 100644 --- a/data/sqlite/random/aggregates/slt_good_47.slt +++ b/data/sqlite/random/aggregates/slt_good_47.slt @@ -15331,7 +15331,7 @@ SELECT + col2 * - - col0 AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - -5742 -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\(\(\- cor0\.col1\)\) \* \(\- Int64\(\-29\)\) \* 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 "sum\(\(\- cor0\.col1\)\) \* \(\- Int64\(\-29\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) AS col2, SUM ( - col1 ) * - - 29 * + COUNT ( * ) AS col2 FROM tab1 AS cor0 query I rowsort label-2492 @@ -27891,7 +27891,7 @@ SELECT DISTINCT - col0, + col2 * 50 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) 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\(40\) 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 40 AS col0, + COUNT ( * ) AS col0 FROM tab2 query II rowsort label-4560 @@ -34181,7 +34181,7 @@ SELECT DISTINCT col1 AS col1 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL # 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 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\(\*\) )?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 ( * ) col0, - COUNT ( * ) AS col0 FROM tab1 AS cor0 query I rowsort @@ -45805,7 +45805,7 @@ SELECT ALL + + 15 / 58 / + - CAST ( - col2 AS INTEGER ) + - 58 AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 243 -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 "min\(\(\- cor0\.col1\)\) \* \(\- 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 "min\(\(\- cor0\.col1\)\) \* \(\- 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, + MIN ( - col1 ) * ( - COUNT ( * ) ) AS col2 FROM tab0 AS cor0 query I rowsort @@ -56352,7 +56352,7 @@ SELECT - 13 - + col2 * 39 + col2 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 "sum\(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 "sum\(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 DISTINCT SUM ( ALL ( + col1 ) ) AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( - + col2 ) query I rowsort label-9252 @@ -57255,7 +57255,7 @@ SELECT DISTINCT * FROM tab2, tab0 AS cor0 WHERE - 33 IS NOT NULL # 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\(\*\)\) 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\(\*\)\) 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 ( * ) AS col0, COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_48.slt b/data/sqlite/random/aggregates/slt_good_48.slt index 3cd2d12..638bbcc 100644 --- a/data/sqlite/random/aggregates/slt_good_48.slt +++ b/data/sqlite/random/aggregates/slt_good_48.slt @@ -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 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\. SELECT + CAST ( NULL AS INTEGER ) col1, COUNT ( * ) AS col1 FROM tab0 query I rowsort @@ -22226,7 +22226,7 @@ SELECT ALL col1 AS col2, + 73 * - 66 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col0" at position 0 and "Int64\(45\) \+ 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\(43\) AS col0" at position 0 and "Int64\(45\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 43 col0, 45 + COUNT ( * ) AS col0 FROM tab2 AS cor0 query I rowsort label-3663 @@ -29227,7 +29227,7 @@ SELECT ALL - 34 * + + ( - + SUM ( ALL - CAST ( - col1 AS INTEGER ) ) ) AS col0 F # 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 "count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 + COUNT ( * ) AS col2, + 35 col2 FROM tab0 AS cor0 query I rowsort @@ -38070,7 +38070,7 @@ SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL > NULL # 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\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col0, COUNT ( * ) + 82 AS col0 FROM tab2 query III rowsort label-6274 @@ -40549,7 +40549,7 @@ SELECT ALL MAX ( + col2 ) AS col2 FROM tab1 # 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 "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\(31\) 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 31 AS col0, + COUNT ( * ) col0 FROM tab0 query I rowsort @@ -41687,7 +41687,7 @@ SELECT DISTINCT - col2 - + 44 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 "\(\- 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 "\(\- 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, ( - COUNT ( * ) ) col2 FROM tab0 AS cor0 query I rowsort label-6866 @@ -48012,7 +48012,7 @@ SELECT DISTINCT + COUNT ( * ), COUNT ( * ) AS col1 FROM tab1 AS cor0 # 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 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\(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 99 col2, + COUNT ( * ) AS col2 FROM tab2 AS cor0 query II rowsort @@ -48798,7 +48798,7 @@ SELECT ALL + + 93 AS col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 15 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 COUNT ( * ) AS col2, 15 AS col2 FROM tab0 AS cor0 query I rowsort @@ -51746,7 +51746,7 @@ SELECT - 89 * - col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -17784 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \* Int64\(\-13\) \* 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 "Int64\(18\) \* Int64\(\-13\) \* 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 ALL + 18 * - 13 * + + 76 AS col0, + COUNT ( * ) AS col0 FROM tab2 AS cor0 query I rowsort @@ -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 Int32\) \* 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 @@ -57121,7 +57121,7 @@ SELECT ALL * FROM tab2 cor0 WHERE ( col0 ) = 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 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) col2, + 90 AS col2 FROM tab2 AS cor0 query I rowsort label-9404 @@ -59019,7 +59019,7 @@ SELECT * FROM tab0 AS cor0 WHERE NOT NULL < ( col2 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - 3 -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\(\*\) AS col0" at position 1 have the 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\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + ( 95 ) AS col0, + ( COUNT ( * ) ) AS col0 FROM tab0 AS cor0 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_49.slt b/data/sqlite/random/aggregates/slt_good_49.slt index 96d1a86..213bf33 100644 --- a/data/sqlite/random/aggregates/slt_good_49.slt +++ b/data/sqlite/random/aggregates/slt_good_49.slt @@ -349,7 +349,7 @@ SELECT col2 FROM tab1 WHERE NOT ( + CAST ( NULL AS INTEGER ) * + col1 ) IS NOT N # Datafusion - Datafusion expected results: # Datafusion - Expected - -19 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) 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 "Int64\(\-19\) 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 DISTINCT - 19 col2, - COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab1 query II rowsort @@ -1103,7 +1103,7 @@ SELECT + col1 * + + col2 * - 82, - col0 AS col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) 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\(44\) 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 + + 44 AS col0, + COUNT ( * ) AS col0 FROM tab2 AS cor0 query I rowsort label-180 @@ -15833,7 +15833,7 @@ SELECT ALL ( + col0 ) col0 FROM tab2 WHERE NOT col0 >= - 62 # 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 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\(\*\) )?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 + COUNT ( * ) AS col0, COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab0 AS cor0 query I rowsort label-2601 @@ -24968,7 +24968,7 @@ SELECT * FROM tab2 WHERE NOT - - 54 + + col2 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # 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 "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\(\*\) )?AS col2" at position 0 and "Int64\(14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col2, 14 AS col2 FROM tab0 query I rowsort label-4105 @@ -27001,7 +27001,7 @@ SELECT SUM ( ALL - 53 ) AS col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) 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\(98\) 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 98 col2, COUNT ( * ) AS col2 FROM tab2 query II rowsort @@ -29000,7 +29000,7 @@ SELECT - col2 * col1 / - + col2 AS col1, col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -80 # Datafusion - Expected - 9 -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\(\*\) AS col1" at position 1 have the 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\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - 80 AS col1, + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 query I rowsort label-4750 @@ -40141,7 +40141,7 @@ SELECT - - 63 col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 72 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -47 -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 "min\(\(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "min\(\(\- tab1\.col1\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col0, MIN ( + - col1 ) AS col0 FROM tab1 # Datafusion - Datafusion expected results: @@ -47452,7 +47452,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) 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\(24\) 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 + 24 AS col2, COUNT ( * ) AS col2 FROM tab1 AS cor0 query I rowsort @@ -48923,7 +48923,7 @@ SELECT ALL - col1 AS col2, - 18 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -39 -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\(\-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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 COUNT ( * ) AS col0, - 39 AS col0 FROM tab1 query III rowsort @@ -57069,7 +57069,7 @@ SELECT * FROM tab0 WHERE NOT NULL <= + 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # 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\(18\) \- 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\(\*\) )?AS col2" at position 0 and "Int64\(18\) \- Int64\(\-24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, 18 - + - 24 AS col2 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..1a98133 100644 --- a/data/sqlite/random/aggregates/slt_good_5.slt +++ b/data/sqlite/random/aggregates/slt_good_5.slt @@ -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 Int32\)\) \* \(\- 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 @@ -7171,7 +7171,7 @@ SELECT - - 15 * + + col0 + + ( + - 74 ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 70 -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\(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\(\*\) )?AS col1" at position 0 and "Int64\(70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col1, 70 AS col1 FROM tab1 query I rowsort @@ -14260,7 +14260,7 @@ SELECT DISTINCT + ( + COUNT ( * ) ) * + 98 AS col2 FROM tab2 WHERE + 68 + - - co # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 28 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(28\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, 28 AS col2 FROM tab1 query II rowsort @@ -27726,7 +27726,7 @@ SELECT ALL + col1 + - col2 FROM tab0 AS cor0 WHERE NULL IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 93 -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\(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\(Int64\(1\)\) (AS count\(\*\) )?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 + + COUNT ( * ) AS col2, 93 AS col2 FROM tab0 AS cor0 query I rowsort @@ -28832,7 +28832,7 @@ SELECT DISTINCT + col0 - - col1 AS col2 FROM tab2 cor0 # 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 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col2, 9 col2 FROM tab1 AS cor0 query I rowsort @@ -38295,7 +38295,7 @@ SELECT 95, col1 - + col1 col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 50 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(50\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, 50 AS col1 FROM tab1 query I rowsort label-6282 @@ -38373,7 +38373,7 @@ SELECT ALL - col2 FROM tab1 AS cor0 WHERE + col2 = - - col1 # 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 "count\(Int64\(1\)\) AS count\(\*\) \- 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 "count\(Int64\(1\)\) AS count\(\*\) \- 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 COUNT ( * ) - - 53 AS col0, COUNT ( * ) AS col0 FROM tab2 AS cor0 query III rowsort @@ -44758,7 +44758,7 @@ SELECT ALL + 90 / col1 * + 77 * col2 + - col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -75 # Datafusion - Expected - 666 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* 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 "Int64\(\-75\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(74\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 75 AS col1, COUNT ( * ) * + 74 * + COUNT ( * ) AS col1 FROM tab0 cor0 query III rowsort @@ -55626,7 +55626,7 @@ SELECT * FROM tab1 WHERE col0 NOT BETWEEN - 20 + col1 AND NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 "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 97 AS col1, COUNT ( * ) AS col1 FROM tab2 query I rowsort @@ -59607,7 +59607,7 @@ SELECT - + 51 * - 9 * 60, 43 AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 34 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col0, + ( 34 ) col0 FROM tab0 query I rowsort label-9805 diff --git a/data/sqlite/random/aggregates/slt_good_50.slt b/data/sqlite/random/aggregates/slt_good_50.slt index bddc0a0..d659efd 100644 --- a/data/sqlite/random/aggregates/slt_good_50.slt +++ b/data/sqlite/random/aggregates/slt_good_50.slt @@ -2836,7 +2836,7 @@ SELECT col2 AS col2, col1 AS col2 FROM tab0 # 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 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(\-9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col2, - 9 AS col2 FROM tab0 query II rowsort @@ -8383,7 +8383,7 @@ SELECT ALL + 55 + + + col1 + - - 68 AS col1 FROM tab0 cor0 # 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 "Int64\(10\) / Int64\(\-79\) 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\(10\) / Int64\(\-79\) 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 + 10 / - 79 AS col2, COUNT ( * ) AS col2 FROM tab1 cor0 query III rowsort @@ -20565,7 +20565,7 @@ SELECT + + 90 AS col0 FROM tab2 AS 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\(66\) \+ min\(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 "Int64\(66\) \+ min\(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 ALL + + 66 + MIN ( - 51 ) AS col0, + COUNT ( * ) AS col0 FROM tab1 AS cor0 query II rowsort @@ -26346,7 +26346,7 @@ SELECT ALL - SUM ( col2 ) FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) 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\(69\) 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 + + 69 AS col1, + COUNT ( * ) AS col1 FROM tab1 AS cor0 query I rowsort label-4335 @@ -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 Int32\) \+ 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 @@ -44305,7 +44305,7 @@ SELECT DISTINCT COUNT ( col2 ) * 3 + 64 FROM tab2 # 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 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) 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 - COUNT ( * ) AS col2, COUNT ( * ) * + COUNT ( * ) col2 FROM tab1 query I rowsort @@ -49113,7 +49113,7 @@ SELECT MIN ( ALL + 38 ) col1 FROM tab1 # 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\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "max\(\(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "max\(\(\- tab2\.col0\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col0, + MAX ( - col0 ) AS col0 FROM tab2 query III rowsort @@ -52988,7 +52988,7 @@ SELECT ALL * FROM tab2 AS cor0 WHERE NULL > + 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -220 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) \* Int64\(\-55\) \* count\(Int64\(1\)\) AS count\(\*\) / 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\(4\) \* Int64\(\-55\) \* count\(Int64\(1\)\) AS count\(\*\) / 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 + 4 * - 55 * + COUNT ( * ) / + COUNT ( * ) AS col2, + COUNT ( * ) AS col2 FROM tab0 query III rowsort label-8733 diff --git a/data/sqlite/random/aggregates/slt_good_51.slt b/data/sqlite/random/aggregates/slt_good_51.slt index b0a3be9..4333a3d 100644 --- a/data/sqlite/random/aggregates/slt_good_51.slt +++ b/data/sqlite/random/aggregates/slt_good_51.slt @@ -2050,7 +2050,7 @@ SELECT + col1 * col2 AS col2 FROM tab2 WHERE NULL IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -240 # Datafusion - Expected - 70 -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 "max\(\(\- Int64\(\-55\)\)\) \+ min\(DISTINCT 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 "Int64\(\-80\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "max\(\(\- Int64\(\-55\)\)\) \+ min\(DISTINCT tab0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 80 * + ( COUNT ( * ) ) col2, MAX ( ALL - - 55 ) + MIN ( DISTINCT col0 ) AS col2 FROM tab0 query II rowsort label-332 @@ -2215,7 +2215,7 @@ SELECT DISTINCT + ( + MIN ( - 44 ) ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) 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\(76\) 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 76 AS col1, COUNT ( * ) AS col1 FROM tab2 cor0 WHERE NOT NULL IS NULL query I rowsort @@ -12555,7 +12555,7 @@ SELECT - col0 + + - 76 * + 88 AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 40 -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\(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\(\*\) )?AS col1" at position 0 and "Int64\(40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, 40 AS col1 FROM tab1 query I rowsort label-2045 @@ -21616,7 +21616,7 @@ SELECT col0, col0 col1 FROM tab1 # 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 "Int64\(93\) 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\(93\) 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 93 AS col1, + COUNT ( * ) AS col1 FROM tab0 AS cor0 query I rowsort @@ -21742,7 +21742,7 @@ SELECT ALL - col1 - + 11 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 "Int64\(\-84\) 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\(\-84\) 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 + - 84 col2, COUNT ( * ) AS col2 FROM tab0 cor0 query I rowsort @@ -26602,7 +26602,7 @@ SELECT DISTINCT + - COUNT ( * ) * - - SUM ( DISTINCT 31 ) + + 37 * - ( - 85 ) FR # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - - COUNT ( * ) AS col2, + ( + COUNT ( * ) ) AS col2 FROM tab2 AS cor0 query IIIIII 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 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\. SELECT + + CAST ( - COUNT ( * ) AS INTEGER ) AS col1, 89 * COUNT ( * ) col1 FROM tab1 cor0 query III rowsort @@ -31115,7 +31115,7 @@ SELECT ALL col1 * 66 + + CAST ( - - col0 AS INTEGER ) * + ( + 99 ) FROM tab1 AS # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 40 -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\(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\(\*\) )?AS col1" at position 0 and "Int64\(40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col1, 40 AS col1 FROM tab2 AS cor0 query I rowsort @@ -34557,7 +34557,7 @@ SELECT ALL + COUNT ( * ) + + ( MIN ( DISTINCT col0 ) ) AS col2 FROM tab0 # 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 "Int64\(\-9\) 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\(\-9\) 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 - 9 AS col0, + COUNT ( * ) col0 FROM tab2 AS cor0 query I rowsort label-5683 @@ -35561,7 +35561,7 @@ SELECT - col1 - - 7 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 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\(\*\) )?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 ( * ) AS col0, COUNT ( * ) col0 FROM tab1 query I rowsort @@ -44245,7 +44245,7 @@ NULL # 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 "Int64\(67\) 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\(67\) 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 67 col0, + COUNT ( * ) AS col0 FROM tab1 query I rowsort @@ -57020,7 +57020,7 @@ SELECT + COUNT ( * ) * - 81 * - COUNT ( * ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -37 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(40\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) 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 "\(\- max\(Int64\(40\)\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?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 - ( + + MAX ( 40 ) ) + + + COUNT ( * ) AS col1, - COUNT ( * ) + 39 AS col1 FROM tab1 AS cor0 query III rowsort @@ -58778,7 +58778,7 @@ SELECT col2 / - 72 AS col1 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\(\*\) AS col1" at position 0 and "count\(\(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "count\(\(\- tab0\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col1, COUNT ( - col1 ) AS col1 FROM tab0 query II rowsort diff --git a/data/sqlite/random/aggregates/slt_good_52.slt b/data/sqlite/random/aggregates/slt_good_52.slt index 17edf9a..08d9790 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 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\. SELECT MAX ( DISTINCT - - CAST ( NULL AS INTEGER ) ) AS col1, COUNT ( * ) AS col1 FROM tab1 AS cor0 query I rowsort label-1208 @@ -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 Int32\) \* 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 @@ -14412,7 +14412,7 @@ SELECT DISTINCT * FROM tab1 WHERE NOT 72 > - col1 # Datafusion - Expected - 360 # Datafusion - Expected - 21 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 and "sum\(DISTINCT \(\- 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 "Int64\(7\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 and "sum\(DISTINCT \(\- Int64\(\-12\)\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( - 4 ) * + 90 AS col0, 7 * COUNT ( * ) col1, + SUM ( DISTINCT - ( + - 12 ) ) AS col1 FROM tab1 query II rowsort label-2379 @@ -19628,7 +19628,7 @@ SELECT ALL ( + + COUNT ( * ) ) 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\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- min\(\(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- min\(\(\- cor0\.col1\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, + COUNT ( * ) * - MIN ( - col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL <= NULL query I rowsort @@ -25202,7 +25202,7 @@ 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 "count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 + + COUNT ( * ) AS col1, + 88 col1 FROM tab0 AS cor0 query I rowsort label-4176 @@ -30615,7 +30615,7 @@ SELECT col2 + - + col1 FROM tab0 # 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 "\(\- \(\- 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 "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) col1, ( - - COUNT ( * ) ) AS col1 FROM tab1 query I rowsort label-5069 @@ -32484,7 +32484,7 @@ SELECT ALL col1 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -153 -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\(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\(\*\) )?AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, - COUNT ( * ) * 51 col0 FROM tab2 query I rowsort label-5388 @@ -36479,7 +36479,7 @@ SELECT ALL 48 / + col0 + - col0 AS col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 21 -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 "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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) * + COUNT ( * ) AS col0, + 21 AS col0 FROM tab2 WHERE + ( + - col1 ) >= NULL query I rowsort label-6054 @@ -38828,7 +38828,7 @@ SELECT DISTINCT - 98 * - - col0 AS col0 FROM tab1 AS cor0 WHERE col2 BETWEEN NUL # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-57\) / count\(Int64\(1\)\) AS count\(\*\) 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-57\) / count\(Int64\(1\)\) (AS count\(\*\) )?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 DISTINCT - COUNT ( * ) * + - 57 / COUNT ( * ) AS col0, - COUNT ( ALL - col2 ) col0 FROM tab2 AS cor0 query I rowsort @@ -42943,7 +42943,7 @@ SELECT ALL COUNT ( - col2 ) / - 67 col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - 3 -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\(\*\) AS col1" at position 1 have the 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\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 60 AS col1, COUNT ( * ) AS col1 FROM tab2 # Datafusion - Datafusion expected results: @@ -48445,7 +48445,7 @@ SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -94 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) 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\(\-94\) 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 - 94 AS col2, COUNT ( * ) col2 FROM tab0 AS cor0 query I rowsort label-8034 @@ -50459,7 +50459,7 @@ SELECT DISTINCT * FROM tab2 WHERE NOT NULL > + col2 # 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 "Int64\(29\) 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\) 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 ( + 29 ) AS col0, COUNT ( * ) AS col0 FROM tab2 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 Int32\)\) 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 diff --git a/data/sqlite/random/aggregates/slt_good_53.slt b/data/sqlite/random/aggregates/slt_good_53.slt index 10fd2a4..1129f04 100644 --- a/data/sqlite/random/aggregates/slt_good_53.slt +++ b/data/sqlite/random/aggregates/slt_good_53.slt @@ -9601,7 +9601,7 @@ SELECT DISTINCT - - col2 AS col0, col1 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - -42 # Datafusion - Expected - 81 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \+ Int64\(\-10\) \+ Int64\(78\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 and "\(\- count\(DISTINCT \(\- \(\- 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 "Int64\(10\) \+ Int64\(\-10\) \+ Int64\(78\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 and "\(\- count\(DISTINCT \(\- \(\- cor0\.col1\)\)\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 42 AS col1, + 10 + - 10 + 78 + + ( ( + COUNT ( * ) ) ) AS col0, + - COUNT ( DISTINCT - - col1 ) AS col0 FROM tab2 AS cor0 query I rowsort label-1597 @@ -11545,7 +11545,7 @@ SELECT MIN ( ALL + col0 ) AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -5 -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\(\(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "max\(\(\- tab1\.col1\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, MAX ( - col1 ) AS col2 FROM tab1 query III rowsort @@ -18566,7 +18566,7 @@ SELECT 79 * + 58 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) 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\) 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 ) AS col2, + COUNT ( * ) AS col2 FROM tab1 query I rowsort label-3064 @@ -19324,7 +19324,7 @@ SELECT DISTINCT + 95 * + 66 * + + ( - + col0 ) FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4320 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-45\)\)\) \* Int64\(\-96\) 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 "\(\- \(\- Int64\(\-45\)\)\) \* Int64\(\-96\) 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 - ( - - 45 ) * - 96 AS col1, - COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab1 AS cor0 query III rowsort @@ -21166,7 +21166,7 @@ SELECT DISTINCT - 10 AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN - 56 * - col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) 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\(\-50\) 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 - 50 AS col0, COUNT ( * ) AS col0 FROM tab2 query II rowsort @@ -22427,7 +22427,7 @@ SELECT + - col2 - - - col0 + + + 60 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - -84249 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(\(\- cor0\.col1\)\)\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(33\) \* Int64\(\-69\) \* 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 "\(\- sum\(\(\- cor0\.col1\)\)\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(33\) \* Int64\(\-69\) \* Int64\(37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + - SUM ( ALL - col1 ) / COUNT ( * ) AS col0, + 33 * - 69 * 37 AS col0 FROM tab0 AS cor0 query I rowsort label-3698 @@ -37141,7 +37141,7 @@ SELECT - CAST ( NULL AS FLOAT8 ) col2 FROM tab2 cor0 WHERE ( ( ( + + 54 ) + + + # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) 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\(38\) 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 ( + + 38 ) AS col1, COUNT ( * ) AS col1 FROM tab0 query I rowsort label-6122 @@ -37313,7 +37313,7 @@ SELECT DISTINCT + col2 col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL # 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 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col0, + 9 col0 FROM tab1 cor0 query I rowsort label-6149 @@ -45863,7 +45863,7 @@ SELECT ( - - col1 ) / - 28 col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 60 -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\(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\(\*\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) + + COUNT ( * ) AS col1, 60 col1 FROM tab1 AS cor0 query I rowsort label-7543 @@ -49236,7 +49236,7 @@ SELECT DISTINCT MIN ( - col0 ) + + + COUNT ( DISTINCT + 87 ) - 98 AS col2 FROM t # Datafusion - Datafusion expected results: # Datafusion - Expected - -35 # Datafusion - Expected - 9 -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\(\*\) AS col0" at position 1 have the 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\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 35 AS col0, + COUNT ( * ) AS col0 FROM tab0, tab1 AS cor0 query III rowsort @@ -58024,7 +58024,7 @@ SELECT - 27 AS col1 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # 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\(\*\)\) \+ \(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- 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 - + COUNT ( * ) / - COUNT ( * ) + - COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0 query I rowsort label-9538 @@ -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 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\. SELECT ALL - ( + + AVG ( DISTINCT - ( + col0 ) ) ) + - CAST ( NULL AS INTEGER ) col1, + COUNT ( * ) col1 FROM tab2 AS cor0 query I rowsort label-9653 @@ -59687,7 +59687,7 @@ SELECT DISTINCT SUM ( + col0 ) + + 53 AS col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -86 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) 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\(\-86\) 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 + - 86 AS col0, COUNT ( * ) col0 FROM tab0 cor0 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_54.slt b/data/sqlite/random/aggregates/slt_good_54.slt index 77173b9..8cb81e4 100644 --- a/data/sqlite/random/aggregates/slt_good_54.slt +++ b/data/sqlite/random/aggregates/slt_good_54.slt @@ -34736,7 +34736,7 @@ SELECT ALL - SUM ( ALL + - 89 ) AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -19680 # Datafusion - Expected - -206 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-80\)\) \* \(\- sum\(Int64\(82\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-73\) \- Int64\(\-16\) \- 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\(\-80\)\) \* \(\- sum\(Int64\(82\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-73\) \- Int64\(\-16\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 80 * - SUM ( + 82 ) AS col0, COUNT ( * ) * + - 73 - - 16 - COUNT ( * ) AS col0 FROM tab0 AS cor0 query I rowsort label-5733 @@ -36994,7 +36994,7 @@ SELECT + 61 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 "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 ALL + 97 AS col1, COUNT ( * ) AS col1 FROM tab1 AS cor0 query I rowsort label-6097 @@ -40509,7 +40509,7 @@ SELECT ALL COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT 53 IN ( + - col2 ) # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col2, + COUNT ( * ) col2 FROM tab1 AS cor0 query I rowsort @@ -41723,7 +41723,7 @@ SELECT + col0 - CAST ( + - col2 AS INTEGER ) FROM tab2 # 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 "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 "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 + 21 AS col0, COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL query I 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 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\. SELECT ALL CAST ( NULL AS INTEGER ) col1, COUNT ( * ) AS col1 FROM tab1 query I rowsort @@ -43700,7 +43700,7 @@ SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 52 -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\(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\(\*\) )?AS col1" at position 0 and "Int64\(52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) col1, 52 AS col1 FROM tab1 query I rowsort label-7194 @@ -55722,7 +55722,7 @@ SELECT + SUM ( - col2 ) AS col0 FROM tab0 AS cor0 # 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\(\*\) 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\(\*\) )?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 + COUNT ( * ) AS col2, COUNT ( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 query I rowsort @@ -60342,7 +60342,7 @@ SELECT DISTINCT COUNT ( * ) FROM tab0 cor0 WHERE col0 <= ( + col2 ) # 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 "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 "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, COUNT ( * ) AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: diff --git a/data/sqlite/random/aggregates/slt_good_55.slt b/data/sqlite/random/aggregates/slt_good_55.slt index 988975d..4ef4359 100644 --- a/data/sqlite/random/aggregates/slt_good_55.slt +++ b/data/sqlite/random/aggregates/slt_good_55.slt @@ -1609,7 +1609,7 @@ SELECT DISTINCT - 27 * - 99 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) / 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\(15\) / 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 15 / COUNT ( * ) AS col2, - COUNT ( * ) AS col2 FROM tab2 query III rowsort @@ -7192,7 +7192,7 @@ SELECT DISTINCT + col2 AS col1, - col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -32 -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\(\-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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 + COUNT ( * ) AS col0, - 32 col0 FROM tab1 cor0 query I 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 Int32\) \+ 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 @@ -11297,7 +11297,7 @@ SELECT ALL - 28 FROM tab2 AS cor0 WHERE NOT - col0 / + col2 + + col0 IS NOT NULL # 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 "max\(Int64\(67\)\) 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 "max\(Int64\(67\)\) 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 MAX ( 67 ) AS col0, COUNT ( * ) AS col0 FROM tab2 query I rowsort label-1878 @@ -12945,7 +12945,7 @@ SELECT ALL - - ( + 55 ) AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Expected - 3 # Datafusion - Expected - -199 # Datafusion - Expected - -6 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "\(\- sum\(tab0\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, - SUM ( + + col0 ) AS col2, - COUNT ( * ) + - COUNT ( DISTINCT - + col2 ) col1 FROM tab0 query I rowsort label-2148 @@ -23307,7 +23307,7 @@ SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 + + + 88 * - 92 / col2 + + 57 * + # Datafusion - Datafusion expected results: # Datafusion - Expected - 4015 # Datafusion - Expected - 105 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT cor0\.col1\) \* Int64\(11\) \+ \(\- \(\- Int64\(44\)\)\) \* Int64\(72\) AS col0" at position 0 and "Int64\(35\) \* 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\(DISTINCT cor0\.col1\) \* Int64\(11\) \+ \(\- \(\- Int64\(44\)\)\) \* Int64\(72\) AS col0" at position 0 and "Int64\(35\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MAX ( DISTINCT + col1 ) * + 11 + - - ( 44 ) * + 72 AS col0, + 35 * COUNT ( * ) AS col0 FROM tab2 AS cor0 query I rowsort label-3855 @@ -25386,7 +25386,7 @@ SELECT + COUNT ( ALL + 99 ) 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\(\*\) 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\(\*\) )?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 ( * ) AS col0, COUNT ( * ) AS col0 FROM tab2 AS cor0 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 Int32\) \* \(\- \(\- 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 @@ -33562,7 +33562,7 @@ SELECT * FROM tab1 AS cor0 WHERE NULL > 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 92 -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\(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 "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 DISTINCT COUNT ( * ) col0, + 92 AS col0 FROM tab2 query I rowsort @@ -37941,7 +37941,7 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 157 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col2" at position 0 and "Int64\(29\) \+ Int64\(68\) \+ Int64\(20\) \* 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\(78\) AS col2" at position 0 and "Int64\(29\) \+ Int64\(68\) \+ Int64\(20\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 78 AS col2, + 29 + 68 + + 20 * + COUNT ( * ) col2 FROM tab1 AS cor0 query I rowsort @@ -46457,7 +46457,7 @@ SELECT DISTINCT col2 + - 37 + - col1 * - 80 + 10 AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -58 -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\(\-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\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(\-58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col1, - 58 AS col1 FROM tab0 query I rowsort @@ -52452,7 +52452,7 @@ SELECT ALL * FROM tab2 WHERE ( + - col2 ) = col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -18 # Datafusion - Expected - 3 -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\(\*\) AS col2" at position 1 have the 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\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 18 AS col2, + COUNT ( * ) AS col2 FROM tab2 query III rowsort @@ -56667,7 +56667,7 @@ SELECT DISTINCT * FROM tab2 WHERE NOT NULL <= - + col1 * + 12 # 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 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\(68\) 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 68 AS col1, COUNT ( * ) col1 FROM tab1 AS cor0 query II 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 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\. 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..2f45dda 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 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\. SELECT + CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) AS col1, + COUNT ( * ) AS col2 FROM tab1 # Datafusion - Datafusion expected results: @@ -12422,7 +12422,7 @@ SELECT - + col1 + col0 * - col1 + + 61 FROM tab1 AS cor0 # 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\(\*\) 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\(\*\) )?AS col2" at position 0 and "Int64\(22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, 22 col2 FROM tab2 query I rowsort @@ -15415,7 +15415,7 @@ SELECT DISTINCT + CAST ( + col1 AS INTEGER ) AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col1" at position 0 and "\(\- count\(Int64\(61\)\)\) \* 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\(92\) AS col1" at position 0 and "\(\- count\(Int64\(61\)\)\) \* 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 + 92 AS col1, - COUNT ( + 61 ) * + COUNT ( * ) / COUNT ( * ) AS col1 FROM tab1 cor0 query I rowsort label-2543 @@ -18598,7 +18598,7 @@ SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 23 + - col2 + - + col0 <= NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) 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\(85\) 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 85 AS col2, COUNT ( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1 query III rowsort @@ -31165,7 +31165,7 @@ SELECT col1 + - 59 AS col0 FROM tab1 # Datafusion - Expected - 58 # Datafusion - Expected - 3 # Datafusion - Expected - -85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) 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\(58\) 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 58 AS col2, COUNT ( * ) AS col2, - + 85 FROM tab2 query I rowsort label-5151 @@ -49674,13 +49674,13 @@ NULL # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col2, + COUNT ( * ) AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "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\(7\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "count\(DISTINCT tab2\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 7 + + COUNT ( * ) AS col0, COUNT ( DISTINCT ( col1 ) ) AS col0 FROM tab2 query I rowsort @@ -51119,7 +51119,7 @@ SELECT ALL * FROM tab2 AS cor0 WHERE - col0 > ( NULL ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) 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\(12\) 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 + 12 col2, + COUNT ( * ) col2 FROM tab2 AS cor0 query III rowsort @@ -51909,7 +51909,7 @@ SELECT DISTINCT - 27 + + 25 FROM tab1 AS cor0 # 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 "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "min\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "min\(Int64\(\-36\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col0, ( MIN ( - 36 ) ) AS col0 FROM tab1 cor0 query III rowsort @@ -54421,7 +54421,7 @@ SELECT DISTINCT * FROM tab1 WHERE - col0 - + col1 IS NULL # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab0 query II rowsort label-9005 diff --git a/data/sqlite/random/aggregates/slt_good_57.slt b/data/sqlite/random/aggregates/slt_good_57.slt index b2d8519..58a861f 100644 --- a/data/sqlite/random/aggregates/slt_good_57.slt +++ b/data/sqlite/random/aggregates/slt_good_57.slt @@ -5833,7 +5833,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COUNT ( * ) AS col2, 84 AS col2 FROM tab1 AS cor0 query III rowsort @@ -37787,7 +37787,7 @@ SELECT DISTINCT COUNT ( - col0 ) AS col0 FROM tab2 # 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 "Int64\(93\) 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\(93\) 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 93 AS col1, COUNT ( * ) AS col1 FROM tab2 query I rowsort label-6217 @@ -38180,7 +38180,7 @@ SELECT - ( - 76 ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 91 -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 "max\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "max\(tab1\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col1, + MAX ( + col0 ) col1 FROM tab1 query I rowsort @@ -38690,7 +38690,7 @@ SELECT ALL - - 20 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -264 -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\(\-88\) \* 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 "Int64\(\-88\) \* 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, - 88 * + COUNT ( * ) col0 FROM tab0 query I rowsort label-6361 @@ -38814,7 +38814,7 @@ SELECT col2 * + + 24 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\(Int64\(1\)\) AS count\(\*\) 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\(\*\) )?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 ( * ) AS col0, 3 AS col0 FROM tab0 query III rowsort @@ -47968,7 +47968,7 @@ SELECT + - COUNT ( * ) * 89 AS col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -94 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) 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\(\-94\) 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 - 94 AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0 query II rowsort @@ -48946,7 +48946,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - 3 -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\(\*\) AS col1" at position 1 have the 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\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 60 AS col1, COUNT ( * ) col1 FROM tab0 AS cor0 query I rowsort @@ -56855,7 +56855,7 @@ SELECT ALL + col2 AS col1, + col1 AS col1 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 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\(\*\) )?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 + COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab2 query II rowsort label-9367 @@ -57604,7 +57604,7 @@ SELECT DISTINCT * FROM tab2 WHERE NOT + col2 <= - col2 * - col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -86 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) 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\(\-86\) 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 - 86 AS col2, COUNT ( * ) AS col2 FROM tab0 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..a5179e1 100644 --- a/data/sqlite/random/aggregates/slt_good_58.slt +++ b/data/sqlite/random/aggregates/slt_good_58.slt @@ -4599,7 +4599,7 @@ SELECT - 40 / - + COUNT ( * ) col0 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - -90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT Int64\(89\)\) AS col2" at position 0 and "Int64\(\-30\) \* 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\(89\)\) AS col2" at position 0 and "Int64\(\-30\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL MAX ( DISTINCT + 89 ) AS col2, - 30 * + COUNT ( * ) AS col2 FROM tab1 query III rowsort @@ -24242,7 +24242,7 @@ SELECT DISTINCT - + ( col1 ) FROM tab0 AS cor0 WHERE NOT + col2 * - 49 IS NOT NU # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 30 -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\(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\(\*\) )?AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col2, COUNT ( * ) + + 27 AS col2 FROM tab1 AS cor0 query I rowsort label-4015 @@ -26316,7 +26316,7 @@ SELECT - col1 FROM tab0 WHERE NOT NULL = - col0 + - - 37 + - col0 + - - col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 132 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(tab1\.col0\) AS col0" at position 0 and "Int64\(44\) \* 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\(tab1\.col0\) AS col0" at position 0 and "Int64\(44\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + MAX ( ALL + col0 ) AS col0, 44 * + ( + COUNT ( * ) ) AS col0 FROM tab1 query I rowsort @@ -28833,7 +28833,7 @@ SELECT DISTINCT + CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 # 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 "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- min\(Int64\(\-35\)\)\) / 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- min\(Int64\(\-35\)\)\) / Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col2, + COUNT ( * ) + COUNT ( * ) + - MIN ( ( - 35 ) ) / 54 col2 FROM tab0 query I rowsort label-4775 @@ -37222,7 +37222,7 @@ SELECT ALL + ( + + col0 ), col2 FROM tab1 AS cor0 # 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 "\(\- min\(\(\- \(\- 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 "\(\- min\(\(\- \(\- 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 DISTINCT + - MIN ( - - col1 ) AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0 query I rowsort label-6157 @@ -39347,7 +39347,7 @@ SELECT * FROM tab0 WHERE ( NOT ( NOT NULL BETWEEN + + col1 AND NULL ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) 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\(22\) 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 + 22 col0, COUNT ( * ) AS col0 FROM tab0 AS cor0 query I rowsort @@ -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 Int32\) 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 @@ -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 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\. SELECT DISTINCT + CAST ( + 90 AS INTEGER ) AS col2, - COUNT ( * ) * + MIN ( DISTINCT + 73 ) + COUNT ( * ) AS col2 FROM tab1 query III rowsort @@ -48542,7 +48542,7 @@ SELECT + col2 AS col1 FROM tab1 WHERE NULL <= col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -14 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) 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 "Int64\(\-14\) 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 DISTINCT + - 14 AS col1, + COUNT ( * ) * COUNT ( * ) AS col1 FROM tab2 AS cor0 query I rowsort @@ -51894,7 +51894,7 @@ SELECT + 41 * col0 FROM tab1 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 "min\(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\(\*\) )?AS col1" at position 0 and "min\(cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col1, + MIN ( ALL col0 ) AS col1 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL query I 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 Int32\)" 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 @@ -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 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\. 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..1e569f6 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 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\. SELECT ALL - COUNT ( - + CAST ( NULL AS INTEGER ) ) AS col1, + COUNT ( * ) AS col1 FROM tab2 query III rowsort @@ -6787,7 +6787,7 @@ SELECT - col2 * - + col2 + - - col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 52 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 COUNT ( * ) AS col2, + 52 AS col2 FROM tab2 AS cor0 query II rowsort @@ -6898,7 +6898,7 @@ SELECT + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT 5 - - col0 IS 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 "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(88\) / 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(88\) / Int64\(62\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + COUNT ( * ) AS col2, + 88 / + 62 AS col2 FROM tab1 AS cor0 query I rowsort label-1123 @@ -9649,7 +9649,7 @@ SELECT ALL - 24 col1 FROM tab1 WHERE col0 < NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) 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\(59\) 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 59 AS col1, COUNT ( * ) AS col1 FROM tab2 query I rowsort @@ -29104,7 +29104,7 @@ SELECT 87 * + COUNT ( * ) AS col0 FROM tab0 # 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 "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) col1, - COUNT ( * ) AS col1 FROM tab2 query I rowsort @@ -44204,7 +44204,7 @@ SELECT ALL COUNT ( * ) AS col0 FROM tab1 cor0 WHERE NOT ( NOT ( + + col0 + col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16240 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \* \(\- Int64\(58\)\) \* Int64\(\-20\) 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\(14\) \* \(\- Int64\(58\)\) \* Int64\(\-20\) 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 14 * - + 58 * - 20 AS col0, COUNT ( * ) AS col0 FROM tab1 cor0 query I rowsort @@ -45683,7 +45683,7 @@ SELECT * FROM tab1 WHERE NOT ( NOT NULL < NULL ) # 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\(15\) / count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(15\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(\-22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 15 / + COUNT ( * ) AS col1, - 22 AS col1 FROM tab2 query I rowsort @@ -47209,7 +47209,7 @@ SELECT DISTINCT col2 - - 88 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 37 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 COUNT ( * ) AS col0, 37 AS col0 FROM tab2 AS cor0 query II rowsort @@ -52438,7 +52438,7 @@ SELECT DISTINCT - col2 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -72 -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\(\-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\(1\)\) (AS count\(\*\) )?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 COUNT ( * ) AS col0, - 72 AS col0 FROM tab2 AS cor0 WHERE - col1 NOT IN ( + 86 * + + col2, + col0 * + 67 + + col0, - CAST ( NULL AS INTEGER ) ) query I rowsort label-8626 @@ -55532,7 +55532,7 @@ SELECT ALL * FROM tab2 cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NOT NULL # 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 "Int64\(84\) 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\(84\) 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 + 84 AS col1, COUNT ( * ) col1 FROM tab2 AS cor0 query III rowsort @@ -55807,7 +55807,7 @@ SELECT ALL col1 FROM tab1 cor0 WHERE NOT NULL BETWEEN col2 AND - 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 82 -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\(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\(\*\) )?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 ( * ) AS col2, + 82 AS col2 FROM tab1 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_6.slt b/data/sqlite/random/aggregates/slt_good_6.slt index 07a0c83..f3b84e1 100644 --- a/data/sqlite/random/aggregates/slt_good_6.slt +++ b/data/sqlite/random/aggregates/slt_good_6.slt @@ -25793,7 +25793,7 @@ SELECT DISTINCT * FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) > - col1 # 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\(Int64\(1\)\) AS count\(\*\)\) / Int64\(71\) 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\(\*\)\) / Int64\(71\) 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 ( * ) / + + 71 AS col2, COUNT ( * ) AS col2 FROM tab2 query I rowsort label-4242 @@ -26376,7 +26376,7 @@ SELECT - - 74 AS col2, - col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 "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 DISTINCT 88 AS col2, COUNT ( * ) AS col2 FROM tab2 AS cor0 query II rowsort @@ -35660,7 +35660,7 @@ SELECT - col1 * col2 * - 7 AS col1, + ( + col2 ) / 82 * - 95 AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -585 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(tab2\.col1\)\) \* count\(Int64\(1\)\) AS count\(\*\) 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\(tab2\.col1\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(\-66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - SUM ( + col1 ) * + COUNT ( * ) col0, - 66 AS col0 FROM tab2 query I rowsort label-5875 @@ -40141,7 +40141,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 Float64\)\) 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 Float64\)\) 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 FLOAT8 ) AS col0, COUNT ( * ) AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: @@ -41128,7 +41128,7 @@ SELECT DISTINCT + MIN ( - col1 ), - ( - 7 ) AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - -195 # Datafusion - Expected - -98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) \* count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(\-65\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 and "Int64\(\-98\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + ( COUNT ( * ) ) * - - 7 AS col2, - 65 * + COUNT ( * ) AS col1, - 98 AS col1 FROM tab0 AS cor0 query III 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 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\. SELECT - ( - + COUNT ( * ) ) * CAST ( 52 AS INTEGER ) AS col2, COUNT ( * ) col2 FROM tab1 query I rowsort @@ -48144,7 +48144,7 @@ SELECT DISTINCT + 38 * + CAST ( AVG ( + col2 ) AS INTEGER ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -92 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) \* Int64\(23\) 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\(\-4\) \* Int64\(23\) 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 - 4 * + + 23 AS col0, COUNT ( * ) col0 FROM tab1 query I rowsort @@ -50927,7 +50927,7 @@ SELECT ALL - - col1, - col1 / - CAST ( + col1 AS INTEGER ) AS col0 FROM tab2 AS # Datafusion - Expected - 9 # Datafusion - Expected - NULL # 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 col2" at position 0 and "avg\(DISTINCT 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\(9\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "avg\(DISTINCT cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 9 + COUNT ( * ) AS col2, AVG ( DISTINCT + + col2 ) col2, - MAX ( col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT 13 IS NOT NULL query IIIIII 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 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\. SELECT CAST ( NULL AS INTEGER ) AS col0, + COUNT ( * ) AS col0 FROM tab2 # Datafusion - Types were automatically converted from: diff --git a/data/sqlite/random/aggregates/slt_good_60.slt b/data/sqlite/random/aggregates/slt_good_60.slt index f6a9685..85a72f4 100644 --- a/data/sqlite/random/aggregates/slt_good_60.slt +++ b/data/sqlite/random/aggregates/slt_good_60.slt @@ -10338,7 +10338,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \* count\(Int64\(1\)\) AS count\(\*\) 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\(28\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 28 * COUNT ( * ) AS col2, 57 AS col2 FROM tab1 AS cor0 query I rowsort @@ -14320,7 +14320,7 @@ SELECT ALL 0 + - - 68 AS col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -63 -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\(\-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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(\-63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col1, - 63 AS col1 FROM tab2 cor0 query I rowsort label-2366 @@ -14737,7 +14737,7 @@ SELECT ALL + + col2 + 80 AS col0 FROM tab1 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 col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(55\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- \(\- min\(Int64\(\-19\)\)\) / Int64\(\-66\) \- \(\- 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 "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(55\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- \(\- min\(Int64\(\-19\)\)\) / Int64\(\-66\) \- \(\- Int64\(26\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col0, COUNT ( * ) * ( + + 55 ) * + - COUNT ( * ) - - MIN ( - 19 ) / - 66 - - + 26 AS col0 FROM tab1 AS cor0 WHERE + col1 BETWEEN + + 53 * - 30 AND NULL query I rowsort @@ -20875,7 +20875,7 @@ SELECT DISTINCT + 68 * + 29 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 62 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, 62 AS col1 FROM tab2 query I rowsort @@ -21399,7 +21399,7 @@ SELECT + + COUNT ( * ) FROM tab0 AS cor0 WHERE 11 * - 88 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -25 # Datafusion - Expected - 3 -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\(\*\) AS col0" at position 1 have the 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\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 25 AS col0, ( COUNT ( * ) ) AS col0 FROM tab2 AS cor0 query II rowsort @@ -27023,7 +27023,7 @@ SELECT ALL CAST ( + 0 AS INTEGER ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 108 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col2, COUNT ( * ) * + 36 AS col2 FROM tab0 query III rowsort @@ -35235,7 +35235,7 @@ NULL # 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 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\(\*\) )?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 ( * ) AS col0, + COUNT ( * ) AS col0 FROM tab0 AS cor0 query I rowsort @@ -37833,7 +37833,7 @@ SELECT ( + - col1 ) * col0 AS col0 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\(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\(\*\) )?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 ( * ) AS col0, COUNT ( * ) AS col0 FROM tab0 query I rowsort @@ -42274,7 +42274,7 @@ SELECT ALL - col1 + - + ( - 82 ) AS col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 45 -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\) AS col2" at position 1 have the same name\. Consider aliasing \("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\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col2, + 45 AS col2 FROM tab1 AS cor0 query I rowsort @@ -43673,7 +43673,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - 261 -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 "Int64\(87\) \* 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\(75\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(87\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 75 + - + COUNT ( * ) col0, + 87 * COUNT ( * ) col0 FROM tab1 AS cor0 WHERE col0 IS NOT NULL # Datafusion - Types were automatically converted from: @@ -46519,7 +46519,7 @@ SELECT 69 + + - 30 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) 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\(25\) 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 25 AS col1, + COUNT ( * ) AS col1 FROM tab1 query I rowsort label-7656 @@ -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 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\. SELECT ALL CAST ( + + 65 AS INTEGER ) * + 88 AS col2, COUNT ( * ) AS col2 FROM tab1 query I rowsort @@ -54333,7 +54333,7 @@ SELECT + 61 * + + 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\(tab0\.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 "count\(tab0\.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 COUNT ( + col2 ) AS col0, COUNT ( * ) AS col0 FROM tab0 query III rowsort @@ -55249,7 +55249,7 @@ SELECT COUNT ( * ) * - 27 AS col0 FROM tab0 # 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 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\(39\) 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 + 39 col1, COUNT ( * ) AS col1 FROM tab2 query I rowsort label-9098 @@ -58126,7 +58126,7 @@ SELECT + SUM ( - col0 ), 22 AS col1 FROM tab0 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 "\(\- \(\- 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 "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) col2, + ( - - COUNT ( * ) ) AS col2 FROM tab1 AS cor0 query II rowsort diff --git a/data/sqlite/random/aggregates/slt_good_61.slt b/data/sqlite/random/aggregates/slt_good_61.slt index 6eec8b8..0be47e5 100644 --- a/data/sqlite/random/aggregates/slt_good_61.slt +++ b/data/sqlite/random/aggregates/slt_good_61.slt @@ -3530,7 +3530,7 @@ SELECT DISTINCT - ( col0 ) + - col1 FROM tab2 # 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 "max\(Int64\(\-52\)\) AS col2" at position 0 and "Int64\(46\) \+ 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\(Int64\(\-52\)\) AS col2" at position 0 and "Int64\(46\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MAX ( - 52 ) AS col2, 46 + + + COUNT ( * ) AS col2 FROM tab1 AS cor0 query I rowsort @@ -3931,7 +3931,7 @@ SELECT * FROM tab0 WHERE NOT - - col1 + - + col2 * - + col0 < - - ( col2 ) # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col2, + COUNT ( * ) AS col2 FROM tab2 AS cor0 query I rowsort label-633 @@ -5408,7 +5408,7 @@ SELECT * FROM tab2 WHERE NOT - col1 + + 40 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -12 -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\(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\(\*\) )?AS col2" at position 0 and "max\(Int64\(\-12\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col2, + MAX ( - 12 ) AS col2 FROM tab1 query I rowsort label-882 @@ -8453,7 +8453,7 @@ SELECT col1 + - 63 - + 79 AS col1 FROM tab0 # 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 "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\(\*\) )?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 ( * ) AS col0, COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL IS NULL query I rowsort label-1377 @@ -28572,7 +28572,7 @@ SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 4 IS NOT 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\(\*\) \* 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\(\*\) \* 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 COUNT ( * ) * COUNT ( * ) AS col0, - COUNT ( * ) AS col0 FROM tab1 query I rowsort label-4700 @@ -35772,7 +35772,7 @@ SELECT ALL col0 + + col2 - + col2 + + col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -32 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "\(\- Int64\(32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, - ( + 32 ) AS col2 FROM tab1 AS cor0 query I rowsort @@ -49859,7 +49859,7 @@ SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - + 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\(\*\) AS col0" at position 0 and "\(\- count\(\(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "\(\- count\(\(\- Int64\(\-61\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col0, - COUNT ( - - 61 ) AS col0 FROM tab0 query I rowsort label-8206 @@ -55367,7 +55367,7 @@ SELECT ALL + col2 - - col1 * - col1 FROM tab0 # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col2, + ( COUNT ( * ) ) AS col2 FROM tab0 AS cor0 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..f825613 100644 --- a/data/sqlite/random/aggregates/slt_good_62.slt +++ b/data/sqlite/random/aggregates/slt_good_62.slt @@ -847,7 +847,7 @@ SELECT DISTINCT - col2 + - - 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\(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\(\*\) )?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 ( * ) AS col0, COUNT ( * ) AS col0 FROM tab1 AS cor0 query I rowsort label-132 @@ -5017,7 +5017,7 @@ SELECT ALL * FROM tab1 AS cor0 WHERE CAST ( - + col1 AS FLOAT8 ) IS NOT NULL # Datafusion - Expected - 3 # Datafusion - Expected - 3 # 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 "\(\- Int64\(1\)\) 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\(1\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col1, COUNT ( 4 ), + - ( + 1 ) AS col1 FROM tab1 query I rowsort @@ -10547,7 +10547,7 @@ SELECT - + ( + COUNT ( - col1 ) ) * ( - 7 ) AS col0 FROM tab2 AS cor0 WHERE NOT # Datafusion - Expected - -65 # Datafusion - Expected - -42 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) 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 "Int64\(\-65\) 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 - 65 col1, SUM ( ALL - + 14 ), + COUNT ( * ) AS col1 FROM tab0 cor0 query I rowsort label-1730 @@ -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 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\. SELECT DISTINCT CAST ( - 66 AS INTEGER ) AS col1, + COUNT ( * ) AS col1 FROM tab2 AS cor0 query I rowsort @@ -11861,7 +11861,7 @@ SELECT DISTINCT + col1 + - col1 + + + col1 AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - 3 -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\(\*\) AS col0" at position 1 have the 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\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 2 AS col0, + COUNT ( * ) AS col0 FROM tab2 AS cor0 query I rowsort @@ -14900,7 +14900,7 @@ SELECT ALL MAX ( col2 ) col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) 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\(24\) 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 24 AS col1, + COUNT ( * ) col1 FROM tab2 AS cor0 query I rowsort @@ -18362,7 +18362,7 @@ SELECT + 93 / - + col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) / Int64\(32\) \+ Int64\(93\) 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\(90\) / Int64\(32\) \+ Int64\(93\) 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 + 90 / 32 + + 93 AS col1, COUNT ( * ) AS col1 FROM tab0 AS cor0 query I rowsort label-3020 @@ -18496,7 +18496,7 @@ SELECT DISTINCT + - COUNT ( * ) / 15 FROM tab2 AS cor0 # 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 "Int64\(27\) 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\(27\) 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 + 27 AS col2, COUNT ( * ) AS col2 FROM tab0 query I rowsort @@ -23493,7 +23493,7 @@ SELECT + 73 + MAX ( + 16 ) col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 86 -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\(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\(\*\) )?AS col2" at position 0 and "Int64\(86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col2, 86 col2 FROM tab1 AS cor0 query I rowsort @@ -38078,7 +38078,7 @@ SELECT + col0 / - + 41 AS col2 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 "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\(\*\) )?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 ( * ) AS col1, COUNT ( * ) AS col1 FROM tab0 AS cor0 query I rowsort @@ -39191,7 +39191,7 @@ SELECT DISTINCT COUNT ( * ) + 39 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -161170 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(tab1\.col0\) \* \(\- Int64\(71\)\) \* Int64\(10\) 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\(tab1\.col0\) \* \(\- Int64\(71\)\) \* Int64\(10\) 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 col0 ) * - + 71 * + 10 AS col1, + COUNT ( * ) col1 FROM tab1 query I rowsort @@ -42099,7 +42099,7 @@ NULL # 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\(11\)\) 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\(11\)\) 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 - + 11 AS col0, COUNT ( * ) AS col0 FROM tab2 cor0 WHERE NULL > ( NULL ) query I rowsort @@ -44470,7 +44470,7 @@ SELECT * FROM tab0 AS cor0 WHERE NOT 39 <> col1 # 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 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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 + COUNT ( * ) col2, COUNT ( * ) * + - COUNT ( * ) AS col2 FROM tab0 cor0 query I rowsort @@ -46898,7 +46898,7 @@ SELECT col0 * - + 29 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -189 # Datafusion - Expected - -71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-63\)\)\) \* 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 "\(\- \(\- Int64\(\-63\)\)\) \* 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 ALL - - ( - 63 ) * COUNT ( * ) AS col1, - 71 AS col1 FROM tab2 AS cor0 query I rowsort label-7698 diff --git a/data/sqlite/random/aggregates/slt_good_63.slt b/data/sqlite/random/aggregates/slt_good_63.slt index e3c8d3f..d67f634 100644 --- a/data/sqlite/random/aggregates/slt_good_63.slt +++ b/data/sqlite/random/aggregates/slt_good_63.slt @@ -265,7 +265,7 @@ SELECT DISTINCT - col2 * col0 + - + 48 / 76 FROM tab1 AS cor0 WHERE NULL > NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) 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\(16\) 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 16 AS col0, + COUNT ( * ) AS col0 FROM tab2 query I rowsort @@ -8653,7 +8653,7 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 BETWEEN NULL AND NULL # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, + COUNT ( * ) AS col1 FROM tab0 query I rowsort label-1423 @@ -13497,7 +13497,7 @@ SELECT col2 AS col0, - 70 * + 0 / col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 "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 + 5 AS col1, + COUNT ( * ) AS col1 FROM tab0 cor0 query I rowsort @@ -16907,7 +16907,7 @@ SELECT DISTINCT - - col2 AS col1, col1 AS 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 "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\(\*\) )?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 ( * ) col0, COUNT ( * ) AS col0 FROM tab0 AS cor0 query I rowsort @@ -21709,7 +21709,7 @@ NULL # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0 query I rowsort label-3601 @@ -24766,7 +24766,7 @@ SELECT - COUNT ( * ) / - 57 col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -261 -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\(\*\)\) \* 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) col1, - COUNT ( * ) * 87 AS col1 FROM tab1 query I rowsort label-4116 @@ -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 Int32\)\)\) 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 @@ -42215,7 +42215,7 @@ SELECT * FROM tab1 WHERE NOT NULL IN ( + col1 - + 34, - col0 ) # 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 "max\(tab1\.col0\) \+ 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 "max\(tab1\.col0\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, MAX ( col0 ) + + + COUNT ( * ) col1 FROM tab1 query I rowsort @@ -48102,7 +48102,7 @@ SELECT * FROM tab0 AS cor0 WHERE col2 * + 24 IN ( + - 80 * 62 ) # 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 "max\(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 "max\(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 MAX ( ALL - 29 ) AS col2, + COUNT ( * ) AS col2 FROM tab1 AS cor0 query I rowsort @@ -53447,7 +53447,7 @@ SELECT ALL 60, + col0 FROM tab1 # 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 "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, COUNT ( * ) * + + 23 col1 FROM tab2 query I rowsort label-8895 diff --git a/data/sqlite/random/aggregates/slt_good_64.slt b/data/sqlite/random/aggregates/slt_good_64.slt index 83866f2..1a06e10 100644 --- a/data/sqlite/random/aggregates/slt_good_64.slt +++ b/data/sqlite/random/aggregates/slt_good_64.slt @@ -1810,7 +1810,7 @@ SELECT DISTINCT - SUM ( - col0 ) AS col0 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -64 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- max\(DISTINCT Int64\(\-64\)\)\)\) 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 Int64\(\-64\)\)\)\) 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 - - MAX ( DISTINCT - 64 ) AS col1, COUNT ( * ) AS col1 FROM tab0 AS cor0 query III rowsort @@ -12177,7 +12177,7 @@ SELECT ALL + col0 * - col0 * - col1 AS col2 FROM tab1 # 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 "max\(DISTINCT Int64\(\-6\)\) / \(\- Int64\(84\)\) 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 "max\(DISTINCT Int64\(\-6\)\) / \(\- Int64\(84\)\) 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 + MAX ( DISTINCT - 6 ) / + - ( + 84 ) AS col0, COUNT ( * ) AS col0 FROM tab0 query I rowsort @@ -15265,7 +15265,7 @@ SELECT ALL col0, + col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 47 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 COUNT ( * ) AS col2, 47 AS col2 FROM tab0 query I rowsort label-2513 @@ -28277,7 +28277,7 @@ SELECT ( - ( - ( - col2 ) ) ) * + 47 * + + col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 68 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(68\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, + 68 AS col1 FROM tab2 query I rowsort label-4647 @@ -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 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\. SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) AS col1 FROM tab1 query I rowsort label-5453 @@ -39855,7 +39855,7 @@ SELECT - + ( + 14 ) col1 FROM tab2 WHERE NOT ( NOT - col2 BETWEEN + 77 / + 17 AN # 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\(\*\) 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\(\*\) )?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 ( * ) AS col2, 22 col2 FROM tab2 WHERE - ( + ( 47 ) ) IS NOT NULL query I rowsort label-6551 @@ -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 Int32\) AS Int32\) 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 @@ -54765,7 +54765,7 @@ SELECT - col2 - + col1 col0, + col0 FROM tab2 WHERE NOT - 98 <= - - CAST ( NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) 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\(76\) 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 + 76 AS col2, COUNT ( * ) AS col2 FROM tab1 query II rowsort @@ -55567,7 +55567,7 @@ SELECT + - col2 + - - col0 * - col2 - - - ( - 64 ) FROM tab2 WHERE NOT NULL >= N # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 25 -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\) AS col1" at position 1 have the same name\. Consider aliasing \("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\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, 25 AS col1 FROM tab0 query I rowsort label-9137 @@ -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 Int32\)\) 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 diff --git a/data/sqlite/random/aggregates/slt_good_65.slt b/data/sqlite/random/aggregates/slt_good_65.slt index d18f8f0..947dad1 100644 --- a/data/sqlite/random/aggregates/slt_good_65.slt +++ b/data/sqlite/random/aggregates/slt_good_65.slt @@ -3388,7 +3388,7 @@ SELECT ALL + MAX ( 69 ) - 7 * + COUNT ( * ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -90 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) 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\) 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 + - 90 AS col0, COUNT ( * ) AS col0 FROM tab2 AS cor0 query I rowsort label-564 @@ -4195,7 +4195,7 @@ SELECT DISTINCT COUNT ( * ) - + + MAX ( - col2 ) * - COUNT ( * ) 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 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\(\*\) )?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 COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab0 query III rowsort @@ -5696,7 +5696,7 @@ SELECT DISTINCT col0 * - 97 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\(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\(\*\) )?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 ( * ) AS col0, COUNT ( * ) AS col0 FROM tab1 query I rowsort label-946 @@ -15912,7 +15912,7 @@ SELECT - + 82 + - - 71 AS col0 FROM tab0 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 "count\(Int64\(1\)\) AS count\(\*\) \* 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\(\*\) \* 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 ( * ) * + COUNT ( * ) AS col0, - COUNT ( * ) AS col0 FROM tab2 query I rowsort label-2640 @@ -20832,7 +20832,7 @@ SELECT DISTINCT COUNT ( * ) * + - COUNT ( * ) col1 FROM tab1 AS cor0 WHERE NULL # 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\(77\)\)\) 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 "\(\- count\(Int64\(77\)\)\) 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 DISTINCT - COUNT ( ALL + 77 ) col2, COUNT ( * ) - COUNT ( * ) AS col2 FROM tab2 AS cor0 query I rowsort @@ -22445,7 +22445,7 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 + + - col1 NOT BETWEEN + + 91 AND # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(61\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) / \(\- 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\(61\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) / \(\- 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 DISTINCT - + 61 * - + COUNT ( * ) / - COUNT ( * ) AS col0, COUNT ( * ) col0 FROM tab0 AS cor0 query I rowsort @@ -24043,7 +24043,7 @@ SELECT * FROM tab0 WHERE NOT NULL = col0 / col2 # 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 "count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, 93 AS col2 FROM tab0 WHERE NOT + col0 < NULL query I rowsort @@ -30152,7 +30152,7 @@ SELECT ALL + - 25 / col1 + + - col1 col0 FROM tab1 WHERE - 58 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 11 -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\(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\(\*\) )?AS col2" at position 0 and "Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, + 11 AS col2 FROM tab2 query III rowsort label-5016 @@ -31197,7 +31197,7 @@ SELECT CAST ( col1 AS INTEGER ) + + - 73 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 100 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \+ 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 "Int64\(97\) \+ 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 97 + COUNT ( * ) AS col1, - COUNT ( * ) AS col1 FROM tab2 query III rowsort @@ -34289,7 +34289,7 @@ SELECT DISTINCT + + ( - + COUNT ( ALL ( col1 ) ) ) FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 78 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( ( COUNT ( * ) ) ) AS col2, 78 col2 FROM tab0 AS cor0 query I rowsort label-5712 @@ -36753,7 +36753,7 @@ SELECT DISTINCT - + col0 * - col2 * + + 5 * + col0 FROM tab0 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col2, + COUNT ( * ) AS col2 FROM tab2 cor0 query III 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 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\. SELECT - CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) AS col0 FROM tab2 query II rowsort @@ -38725,7 +38725,7 @@ SELECT + 76 * col0 * col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 97 -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\(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\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "max\(tab0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col0, MAX ( + col0 ) AS col0 FROM tab0 query II rowsort label-6453 @@ -46505,7 +46505,7 @@ SELECT + 95 AS col0, + 55 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 "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\(\*\) )?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 ( * ) AS col1, COUNT ( * ) col1 FROM tab2 query I rowsort @@ -49076,7 +49076,7 @@ SELECT + - MIN ( ALL - col1 ) * - + 56 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 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\(\*\) )?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 ( * ) AS col1, + ( + - COUNT ( * ) ) AS col1 FROM tab2 query II rowsort @@ -55898,7 +55898,7 @@ SELECT DISTINCT - col2 * - col1 * + col0 AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -53 -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\(\*\) \+ 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col1, ( + + COUNT ( * ) ) + - 56 col1 FROM tab2 AS cor0 query I rowsort @@ -57864,7 +57864,7 @@ SELECT ALL + - ( - col1 ) - + col1 FROM tab1 AS cor0 # 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\(\*\)\) 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\(\*\)\) 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 ( * ) AS col2, + COUNT ( * ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 ) 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..355fbc6 100644 --- a/data/sqlite/random/aggregates/slt_good_66.slt +++ b/data/sqlite/random/aggregates/slt_good_66.slt @@ -2671,7 +2671,7 @@ SELECT DISTINCT - - COUNT ( * ) FROM tab0 AS cor0 WHERE - col2 IS NOT NULL # 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 "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 "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 - 51 AS col0, + ( + COUNT ( * ) ) col0 FROM tab1 AS cor0 query I rowsort @@ -5932,7 +5932,7 @@ SELECT ALL + 59 * + - 15 FROM tab2 AS cor0 # 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 "count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 + COUNT ( * ) AS col0, - 88 AS col0 FROM tab2 AS cor0 query I rowsort @@ -11814,7 +11814,7 @@ SELECT - + col1, - col0 + - + col1 / + + 41 AS col2 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 "\(\- 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\(\*\)\) 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 ( * ) AS col1, COUNT ( * ) AS col1 FROM tab1 AS cor0 query I rowsort @@ -19326,7 +19326,7 @@ SELECT COUNT ( - - col1 ) AS col1 FROM tab0 # 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 "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, - COUNT ( * ) AS col2 FROM tab1 AS cor0 query I rowsort label-3196 @@ -37602,7 +37602,7 @@ SELECT col2 * + + 13 AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 7 -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\(23\) / 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(23\) / Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, 23 / + 3 AS col2 FROM tab1 query I rowsort label-6231 @@ -38084,7 +38084,7 @@ SELECT col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( - col1 ) < NULL # 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 "count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 + COUNT ( * ) AS col1, + 54 col1 FROM tab0 cor0 query I rowsort @@ -42061,7 +42061,7 @@ SELECT + ( - + COUNT ( * ) ) AS col1 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 "\(\- 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 "\(\- 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 - COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab1 AS cor0 query I rowsort @@ -43078,7 +43078,7 @@ SELECT - 77 col0 FROM tab0 # 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 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) 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 - COUNT ( * ) AS col2, COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab1 AS cor0 query II rowsort @@ -51435,7 +51435,7 @@ SELECT 75 * + + 5 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 51 -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 "min\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "min\(tab1\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col2, MIN ( col0 ) AS col2 FROM tab1 query III 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 Int32\)\) 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 @@ -58501,7 +58501,7 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col1 ) <= NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) / \(\- \(\- 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\(52\) / \(\- \(\- 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 52 / - ( - + 13 ) AS col2, COUNT ( * ) AS col2 FROM tab0 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_67.slt b/data/sqlite/random/aggregates/slt_good_67.slt index 4ab1e5a..8e3ed5d 100644 --- a/data/sqlite/random/aggregates/slt_good_67.slt +++ b/data/sqlite/random/aggregates/slt_good_67.slt @@ -9575,7 +9575,7 @@ SELECT DISTINCT - ( col1 ) * + - 6 * + - col2 * + ( 72 ) + + 43 FROM tab1 AS cor # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) 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\(95\) 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 95 AS col1, COUNT ( * ) AS col1 FROM tab0 AS cor0 query III rowsort label-1570 @@ -13269,7 +13269,7 @@ SELECT ALL col0 * - + col1, col2 FROM tab2 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 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\(\*\)\) 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 ( * ) ) AS col1, COUNT ( * ) col1 FROM tab0 AS cor0 query I rowsort label-2176 @@ -13460,7 +13460,7 @@ SELECT DISTINCT - col0 * col0 - + CAST ( - 40 AS INTEGER ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- tab1\.col1\)\)\) AS col0" at position 0 and "count\(\(\- Int64\(78\)\)\) \* 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 "\(\- min\(\(\- tab1\.col1\)\)\) AS col0" at position 0 and "count\(\(\- Int64\(78\)\)\) \* 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 - MIN ( ALL - + col1 ) AS col0, COUNT ( ALL - + 78 ) * COUNT ( * ) - COUNT ( * ) AS col0 FROM tab1 query I rowsort label-2206 @@ -14133,7 +14133,7 @@ SELECT ALL MIN ( + col2 ) col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) 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\(4\) 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 ( 4 ) AS col2, + COUNT ( * ) AS col2 FROM tab1 AS cor0 query I rowsort @@ -16003,7 +16003,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -20 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) / 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\(\-61\) / 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 - 61 / + + COUNT ( * ) AS col2, COUNT ( * ) col2 FROM tab2 AS cor0 query I rowsort label-2627 @@ -33061,7 +33061,7 @@ SELECT COUNT ( * ) / COUNT ( DISTINCT + + 47 ) * + COUNT ( ( + col0 ) ) + - 39 * # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ max\(\(\- tab0\.col1\)\) 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\(\*\)\) \+ max\(\(\- tab0\.col1\)\) 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 ( * ) + ( MAX ( + - ( col1 ) ) ) AS col1, COUNT ( * ) AS col1 FROM tab0 query I rowsort @@ -44925,7 +44925,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -69 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-69\) 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\(\-69\) 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 + - 69 AS col0, + COUNT ( * ) AS col0 FROM tab2 cor0 query I rowsort @@ -51814,7 +51814,7 @@ SELECT ALL + MIN ( - 26 ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 1862 -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\(\-19\) \* 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 "Int64\(\-19\) \* Int64\(\-98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col0, - 19 * + - 98 AS col0 FROM tab2, tab0 AS cor0 query I rowsort @@ -56751,7 +56751,7 @@ SELECT DISTINCT col1 + - - 18 + + ( - col1 ) - - 57 AS col1 FROM tab1 AS cor0 # 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\(Int64\(1\)\) AS count\(\*\) \+ \(\- 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 "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- 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 COUNT ( * ) + - COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0 query I rowsort @@ -57160,7 +57160,7 @@ SELECT DISTINCT + col2 / - - col0 + - 51 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \+ 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 "Int64\(9\) \+ 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 + 9 + + + ( COUNT ( * ) ) AS col0, - 15 AS col0 FROM tab0 AS cor0 query I rowsort @@ -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 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\. 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..a6d622d 100644 --- a/data/sqlite/random/aggregates/slt_good_68.slt +++ b/data/sqlite/random/aggregates/slt_good_68.slt @@ -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 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\. SELECT - CAST ( NULL AS INTEGER ) / COUNT ( * ) AS col2, 92 + - ( + + 16 ) AS col2 FROM tab1 query III rowsort @@ -10484,7 +10484,7 @@ SELECT ALL + COUNT ( * ) * 11 * - 3 AS col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 12 -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\(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\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col1, 12 AS col1 FROM tab2 AS cor0 query III rowsort @@ -14179,7 +14179,7 @@ SELECT ALL - col0, + 78 * - col1 AS col2 FROM tab0 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 "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "min\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "min\(Int64\(\-10\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col2, MIN ( + - 10 ) AS col2 FROM tab2 AS cor0 query II rowsort @@ -18156,7 +18156,7 @@ SELECT ALL col2 FROM tab2 WHERE NULL <> NULL # 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 "count\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "count\(DISTINCT tab2\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col2, + COUNT ( DISTINCT + + col2 ) AS col2 FROM tab2 query II rowsort @@ -20732,7 +20732,7 @@ SELECT * FROM tab1 cor0 WHERE 12 <> + col1 + col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 49 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, 49 AS col1 FROM tab1 AS cor0 query III rowsort @@ -25087,7 +25087,7 @@ SELECT ALL MAX ( CAST ( col1 AS INTEGER ) ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) 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\(\-47\) 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 ( + - 47 ) AS col2, COUNT ( * ) AS col2 FROM tab0 query I rowsort @@ -25235,7 +25235,7 @@ SELECT DISTINCT - 48 + - 96 AS col2 FROM tab1 WHERE NOT + col1 + col1 IS NOT NUL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -2880 -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\(cor0\.col2\) \* 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 "max\(cor0\.col2\) \* Int64\(\-30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col2, ( + MAX ( col2 ) ) * - 30 AS col2 FROM tab1 cor0 query I rowsort label-4186 @@ -38831,7 +38831,7 @@ SELECT ALL col0 FROM tab2 WHERE NOT ( NOT col1 >= 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\(\*\) \* 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\(\*\) \* 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 COUNT ( * ) * COUNT ( * ) AS col0, COUNT ( * ) AS col0 FROM tab2 AS cor0 query I rowsort label-6425 diff --git a/data/sqlite/random/aggregates/slt_good_69.slt b/data/sqlite/random/aggregates/slt_good_69.slt index b7a6173..bcd994d 100644 --- a/data/sqlite/random/aggregates/slt_good_69.slt +++ b/data/sqlite/random/aggregates/slt_good_69.slt @@ -1750,7 +1750,7 @@ SELECT + 20 col2, MIN ( ( - col2 ) ) AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 1340 -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\(\-20\) \* 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(\-20\) \* Int64\(\-67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col0, - 20 * - 67 AS col0 FROM tab2 AS cor0 query I rowsort @@ -5180,7 +5180,7 @@ SELECT ALL + col2 / - ( + - col0 ) - - col1 AS col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -64 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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\(\-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 ALL - 64 AS col2, COUNT ( * ) AS col2 FROM tab2 cor0 WHERE ( NULL ) < + + col1 * - - col2 query I rowsort @@ -19390,7 +19390,7 @@ SELECT + + col2, col1 AS col1 FROM tab0 AS cor0 # 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\(\*\) 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\(\*\) )?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 ( * ) col0, ( - COUNT ( * ) ) AS col0 FROM ( tab0 cor0 CROSS JOIN tab1 AS cor1 ) query III rowsort @@ -35231,7 +35231,7 @@ SELECT DISTINCT + 36 - col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7029 # Datafusion - Expected - -348 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \* Int64\(99\) AS col0" at position 0 and "\(\- min\(cor0\.col0\)\) \+ \(\- 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\(71\) \* Int64\(99\) AS col0" at position 0 and "\(\- min\(cor0\.col0\)\) \+ \(\- Int64\(99\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 71 * + 99 AS col0, - MIN ( + col0 ) + - + 99 * + + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL query I rowsort @@ -37124,7 +37124,7 @@ SELECT + CAST ( + + 29 AS INTEGER ) AS col2 FROM tab0 # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, + ( COUNT ( * ) ) AS col2 FROM tab1 query II rowsort @@ -42786,7 +42786,7 @@ SELECT * FROM tab0 WHERE NOT + + 83 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -92 -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\(\-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 "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 DISTINCT COUNT ( * ) col0, ( - 92 ) AS col0 FROM tab1 query I rowsort @@ -44675,7 +44675,7 @@ SELECT ALL * FROM tab0 WHERE NOT ( NOT NULL = NULL ) # 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\(\*\) 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\(\*\) )?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 ( * ) AS col1, COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 query I rowsort label-7362 @@ -44951,7 +44951,7 @@ SELECT ALL - CAST ( ( + 79 ) AS INTEGER ) / + col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -30 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) / \(\- 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\(91\) / \(\- 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 DISTINCT 91 / + - COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0 query I rowsort label-7406 @@ -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 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\. SELECT + + CAST ( + 1 AS INTEGER ) AS col1, COUNT ( * ) AS col1 FROM tab0 AS cor0 query I rowsort label-7588 @@ -58056,7 +58056,7 @@ SELECT ALL COUNT ( * ) * 23 AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - 1405 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(tab1\.col2\) AS col0" at position 0 and "Int64\(\-22\) \* Int64\(\-64\) \- 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\(tab1\.col2\) AS col0" at position 0 and "Int64\(\-22\) \* Int64\(\-64\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL MAX ( ALL + col2 ) col0, - 22 * - 64 - + + COUNT ( * ) AS col0 FROM tab1 query III rowsort @@ -58157,7 +58157,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col2" at position 0 and "Int64\(84\) \- 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\(84\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 85 AS col2, 84 - + COUNT ( * ) col2 FROM tab0, tab1 AS cor0 query I rowsort @@ -58926,7 +58926,7 @@ SELECT + + 58 + - 9 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - -5760 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col2" at position 0 and "sum\(Int64\(\-80\)\) \* 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\(80\) AS col2" at position 0 and "sum\(Int64\(\-80\)\) \* Int64\(8\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 80 col2, SUM ( + - 80 ) * + + ( 8 ) * + COUNT ( * ) AS col2 FROM tab1 AS cor0 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..72301fd 100644 --- a/data/sqlite/random/aggregates/slt_good_7.slt +++ b/data/sqlite/random/aggregates/slt_good_7.slt @@ -13829,7 +13829,7 @@ SELECT 47 FROM tab0 WHERE NOT NULL > NULL # 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 "Int64\(3\) 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\(3\) 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 + 3 AS col1, COUNT ( * ) AS col1 FROM tab1 cor0 query II rowsort label-2253 @@ -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 Int32\)\) 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 @@ -17734,7 +17734,7 @@ SELECT DISTINCT + COUNT ( * ) + 0 AS col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) 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 "Int64\(95\) 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 + + 95 AS col2, COUNT ( * ) + + + COUNT ( * ) AS col2 FROM tab0 AS cor0 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 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\. SELECT ALL 3 * + CAST ( NULL AS INTEGER ) / SUM ( DISTINCT - col1 ) AS col2, + COUNT ( * ) AS col2 FROM tab2 AS cor0 query II rowsort @@ -26096,7 +26096,7 @@ SELECT DISTINCT COUNT ( 41 ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 18 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "sum\(Int64\(2\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, + SUM ( + 2 ) col2 FROM tab2, tab1 AS cor0 query I rowsort label-4250 @@ -27973,7 +27973,7 @@ SELECT + 69 * - 31 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 231 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \* 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\(77\) \* 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 + 77 * COUNT ( * ) AS col0, - COUNT ( * ) AS col0 FROM tab0 cor0 query I rowsort @@ -43751,7 +43751,7 @@ SELECT 25 + - - 45 * col1 + - 79 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -69 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-72\) \+ 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 "Int64\(\-72\) \+ 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 - 72 + + COUNT ( * ) AS col0, 92 col0 FROM tab1 query I rowsort label-7148 diff --git a/data/sqlite/random/aggregates/slt_good_70.slt b/data/sqlite/random/aggregates/slt_good_70.slt index 14c8ece..b7ea964 100644 --- a/data/sqlite/random/aggregates/slt_good_70.slt +++ b/data/sqlite/random/aggregates/slt_good_70.slt @@ -4454,7 +4454,7 @@ SELECT DISTINCT * FROM tab1 WHERE NOT - 24 IN ( + + col0 * + + ( - - 52 ), 58 + # Datafusion - Datafusion expected results: # Datafusion - Expected - 720 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-80\)\) \* 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\(\-80\)\) \* 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 - - 80 * + ( + COUNT ( * ) ) AS col0, + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 query III rowsort @@ -8248,7 +8248,7 @@ SELECT ALL ( - + 64 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( 53 ) IS # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # 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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col0, 24 AS col0 FROM tab0, tab0 AS cor0 query I rowsort @@ -11069,7 +11069,7 @@ SELECT DISTINCT - col1 * + 7 col1 FROM tab0 # 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 "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\(\*\) )?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 ( * ) AS col0, + COUNT ( * ) AS col0 FROM tab0 WHERE NULL < NULL query III rowsort @@ -26883,7 +26883,7 @@ SELECT * FROM tab2 AS cor0 WHERE col0 NOT BETWEEN - + col0 + + 60 AND NULL # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col1, COUNT ( * ) col1 FROM tab1 # Datafusion - Types were automatically converted from: @@ -28484,7 +28484,7 @@ SELECT + CAST ( + 26 AS INTEGER ) FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - 132 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col1" at position 0 and "Int64\(44\) \* 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\(85\) AS col1" at position 0 and "Int64\(44\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 85 AS col1, 44 * + COUNT ( * ) col1 FROM tab2 AS cor0 query I rowsort label-4698 @@ -34389,7 +34389,7 @@ SELECT 64 * - col0 AS col2 FROM tab1 AS cor0 # 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\(\*\) 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\(\*\) )?AS col1" at position 0 and "Int64\(81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, 81 AS col1 FROM tab2 AS cor0 WHERE CAST ( - ( - - col2 ) AS INTEGER ) BETWEEN - col0 AND NULL 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 Int32\)" 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 @@ -42517,7 +42517,7 @@ SELECT * FROM tab2 AS cor0 WHERE NOT + 41 < ( - - 31 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 + COUNT ( * ) AS col0, 42 AS col0 FROM tab0 AS cor0 query I rowsort @@ -42950,7 +42950,7 @@ SELECT ALL 39 * + 78 * + + col0 col0, col1 AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -64 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) 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\(\-64\) 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 - 64 AS col0, COUNT ( * ) AS col0 FROM tab2 query III rowsort @@ -46616,7 +46616,7 @@ SELECT col1 + CAST ( - col0 AS INTEGER ) FROM tab2 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 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\(\*\) )?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 ( * ) AS col0, COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE col1 + + - 67 IS NOT NULL query I rowsort label-7697 @@ -57694,7 +57694,7 @@ SELECT + - col0 * 26 AS col0, - 57 AS col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 3 -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\(\*\) AS col2" at position 1 have the 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\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 78 AS col2, COUNT ( * ) AS col2 FROM tab0 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_71.slt b/data/sqlite/random/aggregates/slt_good_71.slt index 19ddf87..dbc5e74 100644 --- a/data/sqlite/random/aggregates/slt_good_71.slt +++ b/data/sqlite/random/aggregates/slt_good_71.slt @@ -6536,7 +6536,7 @@ SELECT DISTINCT * FROM tab0 WHERE + 69 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 96 -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 "\(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 + COUNT ( * ) AS col2, - MIN ( + - col2 ) AS col2 FROM tab1 query I rowsort label-1071 @@ -24183,7 +24183,7 @@ SELECT DISTINCT - COUNT ( * ) * + + MIN ( - + 34 ) FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) 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\(77\) 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 + 77 AS col1, + COUNT ( * ) AS col1 FROM tab2 AS cor0 query I rowsort @@ -24944,7 +24944,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) 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\(94\) 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 94 col2, COUNT ( * ) AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: @@ -33295,7 +33295,7 @@ SELECT DISTINCT + SUM ( - + col0 ) AS col2 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 "count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, 66 col1 FROM tab0 query I rowsort @@ -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 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\. SELECT ALL - CAST ( NULL AS INTEGER ) col2, COUNT ( * ) AS col2 FROM tab0 query I rowsort @@ -48266,7 +48266,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT Int64\(11\)\) \+ 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 "max\(DISTINCT Int64\(11\)\) \+ 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 + MAX ( DISTINCT 11 ) + + COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab1 query I rowsort @@ -51713,7 +51713,7 @@ SELECT col0 * 55 * - - col2 AS col1, + 82 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 18 -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\(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 "Int64\(18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col2, 18 AS col2 FROM tab1 cor0 query I rowsort label-8551 @@ -59898,7 +59898,7 @@ SELECT col2 * + col2 + 80, col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col0" at position 0 and "Int64\(60\) / Int64\(\-98\) \+ 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 "Int64\(60\) / Int64\(\-98\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 46 col0, 60 / - 98 + + COUNT ( * ) AS col0 FROM tab1 AS cor0 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..2f3ff70 100644 --- a/data/sqlite/random/aggregates/slt_good_72.slt +++ b/data/sqlite/random/aggregates/slt_good_72.slt @@ -7407,7 +7407,7 @@ SELECT - - 26 AS col0, + col0 AS col0, - + col1 FROM tab0 cor0 # 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 "\(\- Int64\(27\)\) 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\(27\)\) 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 - + 27 AS col2, COUNT ( * ) AS col2 FROM tab1 cor0 query I rowsort @@ -22183,7 +22183,7 @@ SELECT ALL ( + - col2 ) AS col0 FROM tab0 # 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\(\*\) / sum\(cor0\.col2\) \+ Int64\(26\) 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\(\*\) / sum\(cor0\.col2\) \+ Int64\(26\) 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 ( * ) / + SUM ( col2 ) + 26 AS col0, + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL > + CAST ( NULL AS FLOAT8 ) query III rowsort @@ -28317,7 +28317,7 @@ SELECT + ( + 67 ) AS col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) 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\(36\) 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 + 36 AS col1, COUNT ( * ) AS col1 FROM tab1 query II 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 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\. SELECT ALL 90 * 90 - + CAST ( NULL AS INTEGER ) AS col0, + COUNT ( * ) col0 FROM tab1 query I rowsort label-5313 @@ -38287,7 +38287,7 @@ 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\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "max\(\(\- 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\(\*\) )?AS col0" at position 0 and "max\(\(\- Int64\(\-46\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col0, + MAX ( - - 46 ) col0 FROM tab2 query I rowsort @@ -42587,7 +42587,7 @@ SELECT DISTINCT col1 / + 41 AS col1, ( 70 ) FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -1953 -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\(63\) \* \(\- 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\(\*\) )?AS col2" at position 0 and "Int64\(63\) \* \(\- Int64\(31\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, 63 * - + 31 AS col2 FROM tab2 AS cor0 query I rowsort label-7041 @@ -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 Int32\) 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 @@ -46031,7 +46031,7 @@ SELECT * FROM tab0 AS cor0 WHERE col1 NOT IN ( + 41 - + col1 ) # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) col1, COUNT ( * ) AS col1 FROM tab0 query I rowsort label-7623 @@ -47037,7 +47037,7 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT - - 13 IS NULL ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # 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\(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\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col2, 34 AS col2 FROM tab1 cor0 query II rowsort @@ -52381,7 +52381,7 @@ SELECT ALL SUM ( + 92 ) FROM tab2 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 "Int64\(84\) 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\(84\) 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 + 84 col0, COUNT ( * ) col0 FROM tab2 query III rowsort label-8670 @@ -56899,7 +56899,7 @@ SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 AND + # 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\(\*\)\) 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\(\*\)\) 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 ( * ) AS col1, COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 query I rowsort label-9407 @@ -59072,7 +59072,7 @@ SELECT ALL - - col1 - - 29 - + 42 AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # 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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, 42 AS col2 FROM tab0 AS cor0 query I rowsort label-9772 @@ -59348,7 +59348,7 @@ SELECT ALL ( ( + 59 ) ) * col2 AS col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 174 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) \* 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 "Int64\(59\) \* 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 ALL + 59 * + COUNT ( * ) - + COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab2 AS cor0 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_73.slt b/data/sqlite/random/aggregates/slt_good_73.slt index 7024d21..db4b683 100644 --- a/data/sqlite/random/aggregates/slt_good_73.slt +++ b/data/sqlite/random/aggregates/slt_good_73.slt @@ -5600,7 +5600,7 @@ SELECT + + 30 * ( COUNT ( * ) ) FROM tab0 AS cor0 # 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 "Int64\(93\) AS col1" at position 0 and "Int64\(20\) \* 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 "Int64\(20\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 93 AS col1, 20 * COUNT ( * ) AS col1 FROM tab0 AS cor0 query I rowsort label-921 @@ -5866,7 +5866,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 105 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \+ max\(tab2\.col0\) 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\(30\) \+ max\(tab2\.col0\) 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 30 + + MAX ( col0 ) col1, COUNT ( * ) AS col1 FROM tab2 query I rowsort @@ -6234,7 +6234,7 @@ SELECT ALL col1 * - 35 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) / \(\- \(\- Int64\(\-5\)\)\) 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\(\-85\) / \(\- \(\- Int64\(\-5\)\)\) 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 - 85 / - ( - - 5 ) AS col0, + 20 - COUNT ( * ) AS col0 FROM tab1 query I rowsort @@ -7820,7 +7820,7 @@ SELECT ALL - + col1 * + ( col1 ) FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) 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\(45\) 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 + 45 AS col0, COUNT ( * ) AS col0 FROM tab0 # Datafusion - Types were automatically converted from: @@ -10477,7 +10477,7 @@ SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(DISTINCT cor0\.col1\)\) \* count\(Int64\(1\)\) AS count\(\*\) 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 "\(\- min\(DISTINCT cor0\.col1\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "\(\- Int64\(\-64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - MIN ( DISTINCT + + col1 ) * + COUNT ( * ) AS col0, - ( - 64 ) AS col0 FROM tab1 AS cor0 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 Int32\) 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 @@ -22851,7 +22851,7 @@ SELECT - col0 * - - col2 AS col1, 23 FROM tab0 # 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\(\(\- tab0\.col2\)\)\) 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\(\(\- tab0\.col2\)\)\) 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 ( - + col2 ) AS col1, COUNT ( * ) AS col1 FROM tab0 query I rowsort @@ -31155,7 +31155,7 @@ SELECT - col1 AS col1, col2 * + ( - 90 ) AS col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) 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\(44\) 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 44 AS col0, COUNT ( * ) col0 FROM tab2 query III rowsort @@ -37684,7 +37684,7 @@ SELECT + 79 * + 82 - - + 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 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\(\*\)\) 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 - COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab1 query I rowsort label-6219 @@ -42911,7 +42911,7 @@ SELECT ALL - col1 + - - col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - -11 -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 "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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?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 - COUNT ( * ) * COUNT ( * ) AS col0, ( - 14 ) + COUNT ( * ) AS col0 FROM tab1 AS cor0 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..23538d3 100644 --- a/data/sqlite/random/aggregates/slt_good_74.slt +++ b/data/sqlite/random/aggregates/slt_good_74.slt @@ -7287,7 +7287,7 @@ SELECT 62 - - COUNT ( * ) AS col0 FROM tab2 AS cor0 # 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 "count\(Int64\(1\)\) AS count\(\*\) \- count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) AS count\(\*\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(\-39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) - + + COUNT ( * ) AS col0, - 39 col0 FROM tab2 AS cor0 query I rowsort @@ -13534,7 +13534,7 @@ SELECT - COUNT ( ALL 37 ) FROM tab1 AS cor0 WHERE ( NULL ) > NULL # 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\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- 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 - COUNT ( * ) + - + COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab0 cor0 query I rowsort label-2254 @@ -13992,7 +13992,7 @@ SELECT + - 23 + 14 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Expected - 8 # 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\(\*\) \* \(\- count\(\(\- cor0\.col2\)\)\) 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 "count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(\(\- cor0\.col2\)\)\) 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 8, COUNT ( * ) * - COUNT ( - col2 ) col1, COUNT ( * ) col1 FROM tab1 AS cor0 query I rowsort label-2330 @@ -17670,7 +17670,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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / avg\(DISTINCT tab0\.col2\) 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\(\*\)\) / avg\(DISTINCT tab0\.col2\) 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 ( * ) / + AVG ( DISTINCT ( col2 ) ) AS col1, COUNT ( * ) AS col1 FROM tab0 WHERE NOT - + col1 IS NOT NULL query I rowsort label-2947 @@ -17850,7 +17850,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) 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\(73\) 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 + 73 AS col0, COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 query I rowsort @@ -19938,7 +19938,7 @@ SELECT DISTINCT - col1, CAST ( 44 AS INTEGER ) + - col1 AS col2 FROM tab1 AS cor # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0 query II rowsort label-3326 @@ -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 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\. SELECT - - CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) AS col0 FROM tab2 AS cor0 query I rowsort @@ -52983,7 +52983,7 @@ SELECT DISTINCT - MAX ( - + 57 ) FROM tab2 # 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 "count\(Int64\(1\)\) AS count\(\*\) / Int64\(40\) \* 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 "count\(Int64\(1\)\) AS count\(\*\) / Int64\(40\) \* 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 ALL + COUNT ( * ) / 40 * COUNT ( * ) AS col1, - 12 AS col1 FROM tab1 query I rowsort @@ -56581,7 +56581,7 @@ SELECT DISTINCT - CAST ( + 8 AS INTEGER ), col2 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( - COUNT ( * ) ) AS col2, COUNT ( * ) AS col2 FROM tab0 cor0 query II rowsort label-9423 diff --git a/data/sqlite/random/aggregates/slt_good_75.slt b/data/sqlite/random/aggregates/slt_good_75.slt index a8f515a..222b258 100644 --- a/data/sqlite/random/aggregates/slt_good_75.slt +++ b/data/sqlite/random/aggregates/slt_good_75.slt @@ -9045,7 +9045,7 @@ SELECT ALL + col1 / + - col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 68 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(68\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col2, 68 col2 FROM tab0 AS cor0 query I rowsort @@ -9760,7 +9760,7 @@ SELECT ALL - - 60, COUNT ( * ) AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -58 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) 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\(\-58\) 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 - 58 col2, COUNT ( * ) col2 FROM tab0 AS cor0 query I rowsort label-1627 @@ -18370,7 +18370,7 @@ SELECT - col0 AS col2, ( + 83 ) FROM tab1 WHERE NOT NULL >= NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -30 -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\(\-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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(\-30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, - 30 col0 FROM tab2 query I rowsort @@ -19641,7 +19641,7 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL < + 58 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 51 -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\(\*\) \* 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col1, + COUNT ( * ) * + 17 AS col1 FROM tab2 AS cor0 query I rowsort @@ -19878,7 +19878,7 @@ SELECT + 37 col2, col1 AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) 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\(98\) 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 98 col2, COUNT ( * ) AS col2 FROM tab0 query I rowsort @@ -37578,7 +37578,7 @@ SELECT 15 * - col0 AS col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(tab0\.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 "\(\- min\(tab0\.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 - MIN ( + col2 ) AS col0, + COUNT ( * ) AS col0 FROM tab0 query III rowsort @@ -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 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\. SELECT + CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL query III rowsort @@ -46168,7 +46168,7 @@ SELECT ALL - - col2 - + - col2 AS col0 FROM tab1 WHERE NULL > NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) 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\(46\) 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 46 AS col2, COUNT ( * ) AS col2 FROM tab0 query I rowsort label-7672 @@ -47324,7 +47324,7 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + 75 * - 52 ) BETWEEN + col2 AND + c # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COUNT ( * ) AS col1, + COUNT ( * ) AS col1 FROM tab1 AS cor0 query I rowsort @@ -47817,7 +47817,7 @@ SELECT DISTINCT 19 * - - col1 col0, + col0 AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -52 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-52\)\) 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\(Int64\(\-52\)\) 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 + MIN ( ALL + - 52 ) AS col0, COUNT ( * ) AS col0 FROM tab2 query I rowsort label-7952 @@ -48650,7 +48650,7 @@ SELECT col2 / - + 29 + - col2 AS col0 FROM tab2 # Datafusion - Expected - 3 # Datafusion - Expected - -891 # Datafusion - Expected - -67 -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\(\-67\) 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\(\*\) )?AS col2" at position 0 and "Int64\(\-67\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col2, 11 * SUM ( DISTINCT - 81 ) col0, + - 67 AS col2 FROM tab1 query I rowsort @@ -50856,7 +50856,7 @@ SELECT DISTINCT 17 * - 29, col1 FROM tab0 # 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 "Int64\(\-58\) \+ Int64\(55\) 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\) \+ Int64\(55\) 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 + 55 col1, COUNT ( * ) col1 FROM tab2 cor0 query I rowsort label-8451 @@ -53572,7 +53572,7 @@ SELECT DISTINCT - SUM ( DISTINCT - 65 ) + + COUNT ( * ) 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\(\*\)\)\) 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\(\*\)\)\) 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 ( * ) AS col1, COUNT ( * ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 ) query I rowsort @@ -54946,7 +54946,7 @@ SELECT DISTINCT + - 34 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 34 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 + COUNT ( * ) AS col1, + 34 AS col1 FROM tab1 AS cor0 query I rowsort label-9129 @@ -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 Int32\)\) 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 @@ -56738,7 +56738,7 @@ SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL > col2 * col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) 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\(22\) 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 + 22 AS col2, + COUNT ( * ) AS col2 FROM tab2 AS cor0 query I rowsort @@ -58757,7 +58757,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) 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\(33\) 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 33 AS col1, COUNT ( * ) AS col1 FROM tab1 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_76.slt b/data/sqlite/random/aggregates/slt_good_76.slt index 7246856..05e43b3 100644 --- a/data/sqlite/random/aggregates/slt_good_76.slt +++ b/data/sqlite/random/aggregates/slt_good_76.slt @@ -351,7 +351,7 @@ SELECT - ( 5 ) 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 col2" at position 0 and "Int64\(3\) \* 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(3\) \* 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 COUNT ( * ) AS col2, 3 * + COUNT ( * ) / - COUNT ( * ) AS col2 FROM tab0 AS cor0 query II rowsort label-52 @@ -4272,7 +4272,7 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 * + 43 / - col1 BETWEEN NULL AND # Datafusion - Datafusion expected results: # Datafusion - Expected - -19 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) 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\(\-19\) 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 + - 19 col2, + COUNT ( * ) AS col2 FROM tab2 AS cor0 query I rowsort label-706 @@ -9807,7 +9807,7 @@ SELECT ALL - 73 / + col2 + + + 61 - + col2 col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 "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 ALL + + 97 AS col1, + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 query III rowsort @@ -19219,7 +19219,7 @@ NULL # Datafusion - Expected - 9 # Datafusion - Expected - -3 # Datafusion - Expected - 28 -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 "\(\- 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 "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "\(\- Int64\(\-28\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) col0, - COUNT ( * ), - - 28 AS col0 FROM tab2 query I rowsort @@ -20004,7 +20004,7 @@ SELECT ALL + 44 AS col2 FROM tab2, 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 "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\(\*\) )?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 ( * ) col0, COUNT ( * ) AS col0 FROM tab0 query I rowsort label-3309 @@ -22877,7 +22877,7 @@ SELECT - 7 * + 3 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 "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\(\*\) )?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 ( * ) AS col1, + COUNT ( * ) AS col1 FROM tab0 query I rowsort label-3786 @@ -29187,7 +29187,7 @@ SELECT ALL + col1 FROM tab1 WHERE NOT col1 = + 72 * - 70 + - 23 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - -639 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "\(\- sum\(Int64\(71\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col1, + ( - SUM ( + 71 ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 query I rowsort @@ -30778,7 +30778,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -648 # Datafusion - Expected - -9 -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\(72\)\) 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\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(72\)\) 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 COUNT ( * ) * COUNT ( * ) * - + 72 AS col0, - COUNT ( * ) * COUNT ( * ) AS col0 FROM tab2 AS cor0 query I rowsort @@ -32471,7 +32471,7 @@ SELECT + 3 * - - 32 AS col1 FROM tab1 # 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 "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 "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 COUNT ( * ) AS col2, COUNT ( * ) col2 FROM tab0 WHERE NOT NULL IS NULL query I rowsort @@ -36890,7 +36890,7 @@ SELECT + - 77 col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(5\)\) 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 "min\(Int64\(5\)\) 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 DISTINCT + MIN ( 5 ) AS col2, COUNT ( * ) * COUNT ( * ) AS col2 FROM tab0 AS cor0 query I rowsort label-6116 @@ -39947,7 +39947,7 @@ SELECT - + 60 * + MIN ( DISTINCT + 29 ) * + + 75 + COUNT ( * ) AS col0 FROM tab0 # 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / \(\- Int64\(\-25\)\) \+ max\(\(\- cor0\.col0\)\) 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\(\*\)\) / \(\- Int64\(\-25\)\) \+ max\(\(\- cor0\.col0\)\) 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 ( * ) / - - 25 + + MAX ( ALL - col0 ) AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0 query I rowsort label-6623 @@ -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 Int32\)\) 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 diff --git a/data/sqlite/random/aggregates/slt_good_77.slt b/data/sqlite/random/aggregates/slt_good_77.slt index 053483f..0c5ff66 100644 --- a/data/sqlite/random/aggregates/slt_good_77.slt +++ b/data/sqlite/random/aggregates/slt_good_77.slt @@ -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 Int32\) 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 @@ -6203,7 +6203,7 @@ SELECT ALL - ( - + CAST ( + 40 AS INTEGER ) ) FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 82 -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\(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\(\*\) )?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 ( * ) AS col2, 82 AS col2 FROM tab2 AS cor0 query III rowsort @@ -10749,7 +10749,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 210 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- min\(Int64\(77\)\)\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-7\) 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\(\*\)\) \* \(\- min\(Int64\(77\)\)\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-7\) 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 ( * ) * - + MIN ( + 77 ) - - COUNT ( * ) * - 7 AS col1, COUNT ( * ) col1 FROM tab0 query II rowsort label-1778 @@ -15630,7 +15630,7 @@ SELECT - ( + COUNT ( * ) ) col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -73 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 + COUNT ( * ) AS col1, MIN ( ALL - 73 ) AS col1 FROM tab1 AS cor0 query II rowsort @@ -20018,7 +20018,7 @@ SELECT + SUM ( col2 ) FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -31 -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\(\-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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 COUNT ( * ) AS col0, - 31 col0 FROM tab1 cor0 query I rowsort @@ -25719,7 +25719,7 @@ SELECT + col0 AS col2, col2 FROM tab0 AS cor0 # 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 "count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 COUNT ( * ) AS col1, 88 AS col1 FROM tab2 cor0 query I rowsort label-4259 @@ -28214,7 +28214,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 4 -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\) \+ 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\(1\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col1, 1 + + COUNT ( * ) AS col1 FROM tab2 query I rowsort @@ -36401,7 +36401,7 @@ SELECT ALL - - 97 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # 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 "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\(\*\) )?AS col1" at position 0 and "Int64\(8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + ( COUNT ( * ) ) col1, + 8 AS col1 FROM tab2 query III rowsort @@ -43223,7 +43223,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 101 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \+ min\(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 "Int64\(50\) \+ min\(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 DISTINCT + 50 + + MIN ( col0 ) AS col0, + COUNT ( * ) AS col0 FROM tab1 AS cor0 query I rowsort label-7151 @@ -46017,7 +46017,7 @@ SELECT ALL - 90 - - - 56, 30 + + + col0 + + 70 col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -38 -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\(\-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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(\-38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, - 38 AS col1 FROM tab2 query I rowsort label-7612 @@ -58362,7 +58362,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 97 -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\(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\(\*\) )?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 ( * ) AS col0, 97 AS col0 FROM tab0 query II rowsort label-9661 @@ -60220,7 +60220,7 @@ SELECT * FROM tab2 WHERE NOT NULL = - 49 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) 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\(25\) 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 + 25 AS col2, COUNT ( * ) col2 FROM tab2 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..0339e2f 100644 --- a/data/sqlite/random/aggregates/slt_good_78.slt +++ b/data/sqlite/random/aggregates/slt_good_78.slt @@ -4988,7 +4988,7 @@ SELECT - 73 AS col0, MAX ( DISTINCT - 35 ) FROM tab2 AS cor0 # 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 "Int64\(51\) 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\(51\) 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 + 51 AS col1, COUNT ( * ) col1 FROM tab1 AS cor0 query I rowsort label-840 @@ -8181,7 +8181,7 @@ SELECT col1 + - + col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -40392 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) \* sum\(DISTINCT tab1\.col1\) \* Int64\(\-17\) 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\(36\) \* sum\(DISTINCT tab1\.col1\) \* Int64\(\-17\) 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 36 * SUM ( DISTINCT + col1 ) * + - 17 AS col2, COUNT ( * ) AS col2 FROM tab1 query I rowsort label-1361 @@ -9123,7 +9123,7 @@ SELECT * FROM tab0 AS cor0 WHERE NOT - col2 <> col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 3 -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\(\*\) AS col1" at position 1 have the 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\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 80 AS col1, COUNT ( * ) AS col1 FROM tab0 query I rowsort label-1511 @@ -21435,7 +21435,7 @@ SELECT ALL - col1 + + CAST ( - 1 AS INTEGER ) + - col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- cor0\.col2\)\)\) \+ \(\- count\(cor0\.col2\)\) 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 "\(\- min\(\(\- cor0\.col2\)\)\) \+ \(\- count\(cor0\.col2\)\) 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 - MIN ( - col2 ) + - + COUNT ( col2 ) AS col2, COUNT ( * ) AS col2 FROM tab2 AS cor0 query I rowsort @@ -25560,7 +25560,7 @@ SELECT ALL 64 + CAST ( + col2 AS INTEGER ) * + + col0 FROM tab2 AS cor0 # 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\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col1, 46 AS col1 FROM tab2 AS cor0 query I rowsort @@ -31256,7 +31256,7 @@ SELECT ALL 18, + col0 AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -176 # Datafusion - Expected - 828 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) \* min\(Int64\(16\)\) AS col1" at position 0 and "Int64\(92\) \* 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\(\-11\) \* min\(Int64\(16\)\) AS col1" at position 0 and "Int64\(92\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 11 * MIN ( + 16 ) AS col1, + 92 * + COUNT ( * ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) query I rowsort label-5185 @@ -32944,7 +32944,7 @@ SELECT ALL * FROM tab2 WHERE - col1 / + - CAST ( NULL AS INTEGER ) IS NULL # 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 "count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) col2, + 69 AS col2 FROM tab0 cor0 query I rowsort @@ -42553,7 +42553,7 @@ SELECT DISTINCT ( 97 ) col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 342 -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\(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 "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col0, COUNT ( * ) * 38 AS col0 FROM tab2, tab2 AS cor0 query I rowsort @@ -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 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\. SELECT + 63 - - CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) AS col1 FROM tab0 cor0 query II rowsort @@ -47654,7 +47654,7 @@ SELECT col1 AS col2 FROM tab2 WHERE NOT NULL IS NULL # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, + COUNT ( * ) AS col1 FROM tab2 query I rowsort @@ -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 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\. SELECT CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) AS col0 FROM tab1 AS cor0 query III rowsort @@ -51605,7 +51605,7 @@ SELECT - - col0 + + col2 * - + col2 col2 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 "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 "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, + COUNT ( * ) AS col2 FROM tab1 query II rowsort @@ -56473,7 +56473,7 @@ SELECT ALL + 30 AS col2, COUNT ( * ) FROM tab2 WHERE NOT + - 82 NOT IN ( 62, col # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab1 AS cor0 query III rowsort @@ -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 Int32\) \- \(\- 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 diff --git a/data/sqlite/random/aggregates/slt_good_79.slt b/data/sqlite/random/aggregates/slt_good_79.slt index 5279375..9065025 100644 --- a/data/sqlite/random/aggregates/slt_good_79.slt +++ b/data/sqlite/random/aggregates/slt_good_79.slt @@ -1345,7 +1345,7 @@ SELECT ALL + col0 + + + 75 col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 65 -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\(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\(\*\) )?AS col2" at position 0 and "Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) col2, 65 AS col2 FROM tab1 WHERE col0 IS NOT NULL query I rowsort label-213 @@ -6601,7 +6601,7 @@ SELECT col0 * - - col0 * + CAST ( - 79 AS INTEGER ) AS 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\(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 "count\(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 COUNT ( + col1 ) AS col2, + COUNT ( * ) AS col2 FROM tab2 AS cor0 query III rowsort @@ -9273,7 +9273,7 @@ SELECT ALL - 63 AS col1 FROM tab1 AS cor0 WHERE - col0 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) 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\(40\) 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 + 40 AS col1, + COUNT ( * ) AS col1 FROM tab0 cor0 query I rowsort label-1532 @@ -20805,7 +20805,7 @@ SELECT DISTINCT + ( - ( 37 ) ) * - col2 AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -16 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) 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\(\-16\) 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 - 16 AS col1, COUNT ( * ) AS col1 FROM tab1 AS cor0 query I rowsort label-3431 @@ -21847,7 +21847,7 @@ SELECT DISTINCT col2, - col2 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 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\(\*\) )?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 ( * ) col1, COUNT ( * ) AS col1 FROM tab0 AS cor0 query I rowsort @@ -36127,7 +36127,7 @@ SELECT - COUNT ( * ) * + + 76 + 54 FROM tab0 # 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 "Int64\(35\) 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\(35\) 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 35 AS col1, + COUNT ( * ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NULL < - 16 query I rowsort @@ -37022,7 +37022,7 @@ SELECT DISTINCT + ( - COUNT ( * ) ) col0 FROM tab0 WHERE NOT ( col2 * col2 ) <= # Datafusion - Datafusion expected results: # Datafusion - Expected - -201 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(DISTINCT \(\- tab1\.col0\)\)\) \* Int64\(67\) 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 "\(\- count\(DISTINCT \(\- tab1\.col0\)\)\) \* Int64\(67\) 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 - COUNT ( DISTINCT + - col0 ) * + 67 AS col2, COUNT ( * ) + COUNT ( * ) col2 FROM tab1 query III rowsort @@ -43056,7 +43056,7 @@ SELECT - col2 FROM tab0 WHERE col2 < + col2 # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) AS col1, + COUNT ( * ) AS col1 FROM tab2 query I rowsort label-7085 @@ -43317,7 +43317,7 @@ SELECT + col2 * + 96 AS col1 FROM tab0 # 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\(42\)\)\) 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\(42\)\)\) 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 - ( - + 42 ) AS col0, + COUNT ( * ) AS col0 FROM tab2 AS cor0 query I rowsort @@ -48793,7 +48793,7 @@ SELECT ALL + - 60 col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) 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\(\-62\) 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 + - 62 AS col0, COUNT ( * ) AS col0 FROM tab0 AS cor0 query I rowsort @@ -52515,7 +52515,7 @@ SELECT DISTINCT - MAX ( ALL + 27 ) 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 "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\(\*\) )?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 ( * ) AS col0, COUNT ( * ) col0 FROM tab0 query I rowsort label-8651 @@ -56903,7 +56903,7 @@ NULL # 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 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\(\*\)\) 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 ( * ) AS col0, COUNT ( * ) AS col0 FROM tab2 AS cor0 query I rowsort @@ -57893,7 +57893,7 @@ SELECT + col2 AS col2, col1 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 291 # Datafusion - Expected - -73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(\-97\)\)\) AS col2" at position 0 and "Int64\(\-73\) \+ \(\- 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 "\(\- sum\(Int64\(\-97\)\)\) AS col2" at position 0 and "Int64\(\-73\) \+ \(\- 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 - SUM ( - 97 ) AS col2, - 73 + - COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab2 AS cor0 query III rowsort diff --git a/data/sqlite/random/aggregates/slt_good_8.slt b/data/sqlite/random/aggregates/slt_good_8.slt index 0112937..8dd1dd2 100644 --- a/data/sqlite/random/aggregates/slt_good_8.slt +++ b/data/sqlite/random/aggregates/slt_good_8.slt @@ -7684,7 +7684,7 @@ SELECT * FROM tab1 WHERE NOT col1 + - col2 NOT BETWEEN - 7 AND NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 288 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \* 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\(96\) \* 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 96 * COUNT ( * ) AS col0, - COUNT ( * ) AS col0 FROM tab1 query I rowsort label-1260 @@ -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 Int32\)\) 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 @@ -22416,7 +22416,7 @@ SELECT - ( + COUNT ( * ) ) + - - COUNT ( * ) - MIN ( col0 ) * COUNT ( col0 ) * 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -15 -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\(DISTINCT \(\- 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\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "max\(DISTINCT \(\- tab0\.col0\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col0, MAX ( DISTINCT - col0 ) AS col0 FROM tab0 query I rowsort label-3706 @@ -24510,7 +24510,7 @@ SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE col0 < + 41 # Datafusion - Expected - 89 # Datafusion - Expected - 9 # Datafusion - Expected - -846 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(95\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 89, COUNT ( * ) AS col2, + COUNT ( * ) + + - COUNT ( * ) * 95 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 ) query II rowsort @@ -31507,7 +31507,7 @@ SELECT ALL ( + + 10 ) AS col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -87 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) 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\(\-87\) 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 - 87 AS col2, COUNT ( * ) col2 FROM tab1 query III rowsort @@ -35272,7 +35272,7 @@ SELECT ALL * FROM tab1 WHERE NOT - - ( + 19 ) IS 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 "count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, 35 AS col1 FROM tab0 query III rowsort @@ -36074,7 +36074,7 @@ SELECT 52 / + 56 AS col1, - 98 FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - 3 -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\(\*\) AS col0" at position 1 have the 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\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 82 AS col0, + COUNT ( * ) col0 FROM tab2 AS cor0 query I rowsort @@ -39250,7 +39250,7 @@ SELECT * FROM tab0 WHERE NOT ( NOT 48 * - - col2 + col0 <= 25 ) # 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\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 COUNT ( * ) AS col1, 85 AS col1 FROM tab1 query I rowsort @@ -39818,7 +39818,7 @@ NULL # 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 "count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) col0, + 13 AS col0 FROM tab0 query I rowsort @@ -41786,7 +41786,7 @@ SELECT ALL - 49 * + col1 + + 95 AS 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\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 + COUNT ( * ) AS col0, - COUNT ( ALL col2 ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_80.slt b/data/sqlite/random/aggregates/slt_good_80.slt index b259ad1..c1ff2f2 100644 --- a/data/sqlite/random/aggregates/slt_good_80.slt +++ b/data/sqlite/random/aggregates/slt_good_80.slt @@ -5659,7 +5659,7 @@ SELECT ALL - COUNT ( * ) * 78 * + + 31 FROM tab0 # 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 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\(\*\) )?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 ( * ) AS col0, COUNT ( * ) AS col0 FROM tab0 AS cor0 query I rowsort @@ -16091,7 +16091,7 @@ SELECT DISTINCT - 80 + col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -63 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) \+ count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(\-66\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?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 - 66 + + + COUNT ( * ) AS col2, + 89 AS col2 FROM tab1 AS cor0 query I rowsort @@ -17514,7 +17514,7 @@ SELECT DISTINCT + col2, + col1 AS col0 FROM tab2 # 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 "Int64\(29\) 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\(29\) 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 29 AS col1, + COUNT ( * ) AS col1 FROM tab2 query III rowsort @@ -32097,7 +32097,7 @@ SELECT DISTINCT + col1 + + col1 FROM tab0 AS cor0 WHERE + 8 BETWEEN NULL AND NUL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 44 -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\(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\(\*\) )?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 + COUNT ( * ) AS col0, + 44 col0 FROM tab2 cor0 query III rowsort @@ -32978,7 +32978,7 @@ SELECT DISTINCT 26 * - col0 AS col1 FROM tab1 cor0 WHERE NOT NULL IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 5 -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 "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\(\*\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?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 ( * ) + + COUNT ( * ) AS col2, 5 AS col2 FROM tab0 AS cor0 query I rowsort label-5433 @@ -33563,7 +33563,7 @@ SELECT DISTINCT + COUNT ( * ) + MAX ( ALL + 67 ) FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) 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\(13\) 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 + + 13 AS col0, COUNT ( * ) col0 FROM tab2 AS cor0 query I rowsort label-5532 @@ -49045,7 +49045,7 @@ SELECT ALL - COUNT ( * ) AS col1, 45 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -3315 -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\(65\) \* 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\(\*\) )?AS col0" at position 0 and "Int64\(65\) \* Int64\(\-51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col0, 65 * - 51 AS col0 FROM tab2 query I rowsort @@ -57114,7 +57114,7 @@ SELECT + col0 * - + 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 col0" at position 0 and "\(\- count\(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\(\*\) )?AS col0" at position 0 and "\(\- count\(Int64\(8\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col0, - COUNT ( ALL 8 ) AS col0 FROM tab1 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..bcfa9e3 100644 --- a/data/sqlite/random/aggregates/slt_good_81.slt +++ b/data/sqlite/random/aggregates/slt_good_81.slt @@ -9275,7 +9275,7 @@ SELECT DISTINCT + 94 * - - 93 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - -37 -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\(\-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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 + + COUNT ( * ) AS col0, - 37 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 query III rowsort @@ -11167,7 +11167,7 @@ SELECT + col0 AS col0, - col0 AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - 249 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) AS col2" at position 0 and "Int64\(83\) \* 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\(\-22\) AS col2" at position 0 and "Int64\(83\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 22 AS col2, 83 * + COUNT ( * ) AS col2 FROM tab1 AS cor0 query I rowsort label-1842 @@ -20310,7 +20310,7 @@ SELECT COUNT ( * ) FROM tab2 WHERE + col1 * + - col1 IS NULL # 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 "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- min\(tab1\.col0\)\) \+ \(\- 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 "\(\- min\(tab1\.col0\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + ( COUNT ( * ) ) col1, - MIN ( + + col0 ) + - COUNT ( * ) AS col1 FROM tab1 WHERE NOT - col2 + col2 IN ( - + 72, col0 * - col0 ) query I rowsort label-3349 @@ -21641,7 +21641,7 @@ SELECT + ( - - 82 ) + col0 AS col1 FROM tab2 AS cor0 # 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\(\*\)\) 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\(\*\)\) 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 ( * ) AS col0, COUNT ( * ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 ) query I rowsort label-3562 @@ -35903,7 +35903,7 @@ SELECT DISTINCT MIN ( ALL - col0 ) AS col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) / Int64\(57\) 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 "Int64\(\-66\) / Int64\(57\) 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 DISTINCT - 66 / + 57 AS col1, COUNT ( * ) * COUNT ( * ) AS col1 FROM tab0 query I rowsort @@ -36783,7 +36783,7 @@ SELECT ALL COUNT ( col2 ) AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) 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\(88\) 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 + 88 AS col1, + COUNT ( * ) AS col1 FROM tab2 AS cor0 query I rowsort label-6064 @@ -38490,7 +38490,7 @@ SELECT - 67 * col2 col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) 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\(52\) 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 + ( + 52 ) AS col2, + COUNT ( * ) col2 FROM tab1 AS cor0 query I rowsort label-6344 @@ -44471,7 +44471,7 @@ SELECT DISTINCT 28 AS col0, - COUNT ( * ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -73 -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\(\-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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(\-73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col1, - 73 AS col1 FROM tab0 query III rowsort @@ -45887,7 +45887,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) 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\(\-70\) 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 - 70 AS col1, + COUNT ( * ) col1 FROM tab0 AS cor0 query I rowsort @@ -46105,7 +46105,7 @@ SELECT col0 + + 15 FROM tab0 # Datafusion - Expected - 3 # Datafusion - Expected - 3956 # Datafusion - Expected - -77 -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\(\-77\) 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\(\*\) )?AS col2" at position 0 and "Int64\(\-77\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col2, 86 * + + ( + + 46 ) AS col1, - 77 AS col2 FROM tab2 query II rowsort @@ -51177,7 +51177,7 @@ SELECT - ( + - COUNT ( * ) ) / - + MIN ( ALL - col1 ) FROM tab0 # 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 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\(\-9\) 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 - 9 AS col0, COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE ( NULL BETWEEN col0 * - col1 AND NULL ) query II rowsort @@ -54021,7 +54021,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -45 -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\(\-94\) \+ 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(\-94\) \+ Int64\(49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col2, - 94 + + 49 AS col2 FROM tab0 query III rowsort @@ -55114,7 +55114,7 @@ SELECT - col1 * - ( - col2 ) * - col2 / - - col2 + + col1 FROM tab2 AS cor0 # 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 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "\(\- Int64\(\-9\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col2, - ( - 9 ) AS col2 FROM tab2 query I rowsort label-9115 @@ -55126,7 +55126,7 @@ SELECT DISTINCT COUNT ( * ) + 35 col1 FROM tab0 # Datafusion - Expected - 3 # Datafusion - Expected - 25 # Datafusion - Expected - 91 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) col0, + 25 AS col0, + 91 FROM tab1 query I rowsort @@ -57171,7 +57171,7 @@ SELECT ALL col1 * + 46 AS col0 FROM tab0 # 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\(\*\)\) \* 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\(\*\)\) \* 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 - COUNT ( * ) * + + COUNT ( * ) AS col0, COUNT ( * ) col0 FROM tab1 query I rowsort label-9460 diff --git a/data/sqlite/random/aggregates/slt_good_82.slt b/data/sqlite/random/aggregates/slt_good_82.slt index 022c281..e3775f0 100644 --- a/data/sqlite/random/aggregates/slt_good_82.slt +++ b/data/sqlite/random/aggregates/slt_good_82.slt @@ -1897,7 +1897,7 @@ SELECT ALL CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE ( NULL ) IN ( - col2 # 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 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\(\*\)\) 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 ( * ) AS col0, COUNT ( * ) col0 FROM tab0 AS cor0 query I rowsort label-309 @@ -4815,7 +4815,7 @@ SELECT DISTINCT 24 - - + col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 264 # 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\(\*\) 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\(88\) \* 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 + 88 * COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab0 query II rowsort @@ -6584,7 +6584,7 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL >= + col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 2904 -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\(33\) \* 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\(\*\) )?AS col1" at position 0 and "Int64\(33\) \* Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) col1, + 33 * 88 AS col1 FROM tab0 query I rowsort @@ -6783,7 +6783,7 @@ SELECT ALL 14 col1 FROM tab1 AS cor0 WHERE 21 IS NULL # 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\(\*\) 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\(\*\) )?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 COUNT ( * ) AS col2, - COUNT ( * ) AS col2 FROM tab0, tab1 AS cor0 query III rowsort @@ -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 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\. SELECT CAST ( NULL AS INTEGER ) AS col1, + COUNT ( * ) AS col1 FROM tab0 AS cor0 query I rowsort @@ -16844,7 +16844,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- \(\- Int64\(\-26\)\) 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\(74\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- \(\- Int64\(\-26\)\) 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 74 / + - COUNT ( * ) - - - 26 AS col0, COUNT ( * ) AS col0 FROM tab0 AS cor0 query I rowsort @@ -24222,7 +24222,7 @@ SELECT DISTINCT - col2 col2 FROM tab1 WHERE NOT NULL IS NOT NULL OR NULL <= + co # Datafusion - Datafusion expected results: # Datafusion - Expected - -279 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- Int64\(93\)\)\) 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\(\(\- Int64\(93\)\)\) 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 + SUM ( - + 93 ) AS col0, COUNT ( * ) AS col0 FROM tab2 query III rowsort @@ -25190,7 +25190,7 @@ SELECT DISTINCT + COUNT ( * ) + + - 33 AS col2 FROM tab0 AS cor0 # 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 "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "sum\(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\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "sum\(cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + COUNT ( * ) AS col0, + SUM ( + col1 ) AS col0 FROM tab1 AS cor0 query III rowsort @@ -35074,7 +35074,7 @@ SELECT ALL - CAST ( NULL AS INTEGER ) col0 FROM tab2 WHERE - - col2 NOT IN ( + 9 # 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 col0" at position 0 and "\(\- count\(DISTINCT tab0\.col1\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ 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\(\*\) )?AS col0" at position 0 and "\(\- count\(DISTINCT tab0\.col1\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, + ( - + COUNT ( DISTINCT col1 ) ) + + + COUNT ( * ) + + 9 col0 FROM tab0 query I rowsort @@ -36936,7 +36936,7 @@ SELECT 73 FROM tab2, tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 67 -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\(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\(\*\) )?AS col2" at position 0 and "Int64\(67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, 67 AS col2 FROM tab1 query I rowsort @@ -38685,7 +38685,7 @@ SELECT DISTINCT * FROM tab0 WHERE ( NULL ) >= 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 56700 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(tab2\.col2\)\) \* Int64\(\-6\) \* Int64\(70\) \* \(\- \(\- Int64\(15\)\)\) \* 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\(84\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(tab2\.col2\)\) \* Int64\(\-6\) \* Int64\(70\) \* \(\- \(\- Int64\(15\)\)\) \* 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 84 AS col1, COUNT ( * ) + - COUNT ( col2 ) * - 6 * 70 * - - ( + 15 ) * + COUNT ( * ) - + COUNT ( * ) AS col1 FROM tab2 query I rowsort label-6319 @@ -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 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\. SELECT - CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col1, - 47 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 query I rowsort @@ -42263,7 +42263,7 @@ SELECT ALL MAX ( - - col1 ) AS col2 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\(\*\) 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\(\*\) )?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 ( * ) AS col2, COUNT ( * ) AS col2 FROM tab1 query II rowsort @@ -45494,7 +45494,7 @@ SELECT ALL * FROM tab2 WHERE NOT + col1 * - 18 BETWEEN - col2 AND 38 # 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 "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 "Int64\(79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col1, 79 col1 FROM tab2 query III rowsort @@ -56500,7 +56500,7 @@ SELECT * FROM tab0 WHERE + - col2 / - ( - + 64 ) > col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6863 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) \* Int64\(98\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- 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\(70\) \* Int64\(98\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "\(\- count\(Int64\(5\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 70 * 98 + COUNT ( * ) AS col1, - COUNT ( + 5 ) AS col1 FROM tab2 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_83.slt b/data/sqlite/random/aggregates/slt_good_83.slt index 102f631..6ee2c74 100644 --- a/data/sqlite/random/aggregates/slt_good_83.slt +++ b/data/sqlite/random/aggregates/slt_good_83.slt @@ -4679,7 +4679,7 @@ SELECT - 17 * + 25 * + COUNT ( * ) FROM tab0 # 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 "count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, + 10 AS col2 FROM tab0 AS cor0 query I rowsort @@ -8730,7 +8730,7 @@ SELECT DISTINCT - 86 * - + 47 + - 49 FROM tab2 # 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\(\*\) AS col0" at position 0 and "count\(DISTINCT 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "count\(DISTINCT 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 ALL COUNT ( * ) AS col0, COUNT ( DISTINCT + CAST ( NULL AS FLOAT8 ) ) + COUNT ( * ) AS col0 FROM tab0, tab2 AS cor0 query II rowsort @@ -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 Int32\) \- 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 @@ -18955,7 +18955,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -49 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(tab0\.col0\) \+ \(\- Int64\(64\)\) 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\(tab0\.col0\) \+ \(\- Int64\(64\)\) 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 ( MIN ( col0 ) ) + - + 64 col0, + COUNT ( * ) AS col0 FROM tab0 query I rowsort @@ -20192,7 +20192,7 @@ SELECT + COUNT ( * ), COUNT ( * ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 288 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "\(\- sum\(Int64\(\-96\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + COUNT ( * ) AS col1, - SUM ( + - 96 ) AS col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: @@ -25167,7 +25167,7 @@ SELECT DISTINCT + 57 + - col2 * + - col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \- count\(Int64\(1\)\) AS count\(\*\) 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\(81\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(\-91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 81 - + + COUNT ( * ) AS col0, - 91 AS col0 FROM tab0 cor0 query I rowsort label-4132 @@ -26646,7 +26646,7 @@ SELECT DISTINCT SUM ( DISTINCT - 41 ) AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) 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\(\-50\) 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 - 50 col1, COUNT ( * ) col1 FROM tab2 # Datafusion - Types were automatically converted from: @@ -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 Int32\)\) 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 @@ -33460,7 +33460,7 @@ SELECT * FROM tab1 AS cor0 WHERE NOT col0 - - col2 IS NULL # 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 "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(\-36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) * COUNT ( * ) AS col1, - 36 AS col1 FROM tab2 AS cor0 query IIIIII rowsort @@ -38686,7 +38686,7 @@ SELECT DISTINCT + 2 - 10 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 18 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 COUNT ( * ) col0, 18 AS col0 FROM tab1 query III rowsort label-6355 @@ -40592,7 +40592,7 @@ SELECT ( - 96 ) / - + col0 + - 50 * ( col0 ) - + - col2 col2, - 4 FROM tab1 # 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 "Int64\(35\) / \(\- 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 "Int64\(35\) / \(\- 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 35 / - - 43 AS col1, COUNT ( * ) col1 FROM tab1 query I rowsort @@ -45550,7 +45550,7 @@ SELECT + 62 * - col0 AS col2 FROM tab0 WHERE + + col0 IS NOT NULL # 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 "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col1, - ( + COUNT ( * ) ) AS col1 FROM tab0 cor0 query I rowsort @@ -50585,7 +50585,7 @@ SELECT SUM ( ALL - 89 ) * - 97 - 42 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -43 -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\(14\) \+ Int64\(\-57\) \+ 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\(\*\) )?AS col0" at position 0 and "Int64\(14\) \+ Int64\(\-57\) \+ 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 COUNT ( * ) AS col0, 14 + - 57 + COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab2 query II rowsort diff --git a/data/sqlite/random/aggregates/slt_good_84.slt b/data/sqlite/random/aggregates/slt_good_84.slt index 775050e..0a656a9 100644 --- a/data/sqlite/random/aggregates/slt_good_84.slt +++ b/data/sqlite/random/aggregates/slt_good_84.slt @@ -1609,7 +1609,7 @@ SELECT + 63 * col2 * - ( - - col0 ) - - + col1 + + 98 AS col1 FROM tab2 WHERE NO # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 19 -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\(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\(\*\) )?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 COUNT ( * ) AS col1, 19 AS col1 FROM tab0 query II rowsort @@ -2999,7 +2999,7 @@ SELECT ALL - col0 * 68 AS col2 FROM tab0 AS cor0 # 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\(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\(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 1 AS col0, + COUNT ( * ) AS col0 FROM tab2 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 Int32\) 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 @@ -25613,7 +25613,7 @@ SELECT ALL - - CAST ( NULL AS INTEGER ) col0 FROM tab2 WHERE + + 20 BETWEEN NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -45 -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\) \- min\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(6\) \- min\(tab1\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, + 6 - MIN ( ALL col0 ) AS col1 FROM tab1 query III rowsort @@ -32223,7 +32223,7 @@ SELECT ALL - 71 / - + col2 AS col1, 53 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -162 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) \* max\(Int64\(18\)\) / count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(\-27\) \* max\(Int64\(18\)\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 27 * MAX ( ALL + 18 ) / + COUNT ( * ) AS col0, + 51 AS col0 FROM tab0 query II rowsort @@ -36213,7 +36213,7 @@ SELECT DISTINCT * FROM tab1 WHERE 87 + col2 NOT BETWEEN NULL AND ( + 70 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - 3 -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\(\*\) AS col0" at position 1 have the 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\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + 81 AS col0, COUNT ( * ) AS col0 FROM tab0 AS cor0 query I rowsort label-6003 @@ -38328,7 +38328,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -52 -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\(DISTINCT 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\(\*\) )?AS col1" at position 0 and "\(\- sum\(DISTINCT Int64\(52\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col1, - SUM ( DISTINCT 52 ) AS col1 FROM tab1 AS cor0 query I rowsort @@ -43567,7 +43567,7 @@ SELECT DISTINCT + MAX ( + col2 ) * + - ( - COUNT ( * ) ) * + COUNT ( * ) FROM ta # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -76 -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 "max\(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\(\*\) )?AS col1" at position 0 and "max\(Int64\(\-76\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, + MAX ( ALL - 76 ) AS col1 FROM tab1 AS cor0 query I rowsort label-7209 @@ -50612,7 +50612,7 @@ SELECT 39 * + + 61 AS col0 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\(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\(\*\) )?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 ( * ) AS col0, - COUNT ( * ) AS col0 FROM tab1 # Datafusion - Datafusion expected results: @@ -55253,7 +55253,7 @@ SELECT - + 67 AS 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\(86\) \+ \(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(86\) \+ \(\- CAST\(NULL AS Float64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, + 86 + - CAST ( NULL AS FLOAT8 ) AS col2 FROM tab0 query III rowsort label-9124 diff --git a/data/sqlite/random/aggregates/slt_good_85.slt b/data/sqlite/random/aggregates/slt_good_85.slt index c0f85a8..3e6ca89 100644 --- a/data/sqlite/random/aggregates/slt_good_85.slt +++ b/data/sqlite/random/aggregates/slt_good_85.slt @@ -5191,7 +5191,7 @@ SELECT 36 AS col0, - col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) AS col2" at position 0 and "Int64\(67\) \- 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\(\-50\) AS col2" at position 0 and "Int64\(67\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 50 AS col2, 67 - + + COUNT ( * ) AS col2 FROM tab1 AS cor0 query II rowsort @@ -5566,7 +5566,7 @@ SELECT col1 * + - ( - - 18 ) AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 111 # 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 "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\(37\) \* count\(Int64\(1\)\) (AS count\(\*\) )?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 ( 37 ) * + COUNT ( * ) AS col1, 93 AS col1 FROM tab0 query III rowsort @@ -10478,7 +10478,7 @@ SELECT + 30 * 61 - + + col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 87 -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\(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 "count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?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 + COUNT ( * ) + + COUNT ( * ) AS col1, + 87 AS col1 FROM tab1 query III rowsort @@ -10837,7 +10837,7 @@ SELECT + 8 col0 FROM tab2 AS cor0 WHERE col1 IS NULL # 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\(\*\) 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\(\*\) )?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 + COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 query I rowsort @@ -11457,7 +11457,7 @@ SELECT DISTINCT + col0 / - - col1 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 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\(\*\) )?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 ( * ) col0, COUNT ( * ) col0 FROM tab1 query II rowsort @@ -11572,7 +11572,7 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE 16 + + + col1 NOT BETWEEN col2 AND - + # Datafusion - Datafusion expected results: # Datafusion - Expected - 207 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \* count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(69\) \* count\(Int64\(1\)\) (AS count\(\*\) )?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 69 * + COUNT ( * ) AS col0, - SUM ( + - col1 ) AS col0 FROM tab1 query I rowsort @@ -12607,7 +12607,7 @@ SELECT - col1 / + ( col1 ) + + 49 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\(\*\) 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\(\*\) )?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 ( * ) AS col1, COUNT ( * ) AS col1 FROM tab2 AS cor0 # Datafusion - Types were automatically converted from: @@ -22358,7 +22358,7 @@ SELECT COUNT ( * ) AS col2, 0 AS col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-22\)\) AS col1" at position 0 and "Int64\(79\) \+ 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 "min\(Int64\(\-22\)\) AS col1" at position 0 and "Int64\(79\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + ( + MIN ( ALL - 22 ) ) AS col1, + 79 + + COUNT ( * ) AS col1 FROM tab0 query III rowsort @@ -22766,7 +22766,7 @@ SELECT ALL col2 - col0 - - - 29 * - col1 AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 4284 -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\) \* 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(51\) \* Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) col2, + 51 * 84 AS col2 FROM tab0 query I rowsort @@ -31712,7 +31712,7 @@ SELECT + col1 / + - 81 col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 132 -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\(44\) \* \(\- \(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(44\) \* \(\- \(\- count\(Int64\(\-63\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, + 44 * - - COUNT ( - 63 ) AS col1 FROM tab0 query I rowsort label-5260 @@ -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 Int32\) 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 @@ -43395,7 +43395,7 @@ SELECT col0 + + - ( col1 ) AS col1 FROM tab0 # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) col1, COUNT ( * ) AS col1 FROM tab2 query II rowsort label-7208 @@ -44029,7 +44029,7 @@ SELECT DISTINCT 32 / - col0 * col0 col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 63 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) col1, + 63 AS col1 FROM tab2 query II rowsort @@ -56341,7 +56341,7 @@ SELECT + ( - col0 ) + + - col2 + + + col0 * 30 * col0 + ( col2 ) col2, col2 FROM # 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 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\(\*\) )?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 ( * ) AS col0, COUNT ( * ) AS col0 FROM tab0 query I rowsort @@ -56373,7 +56373,7 @@ SELECT * FROM tab2 AS cor0 WHERE NOT 97 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 97 -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\(5\) \+ 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\(5\) \+ Int64\(92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, + 5 + 92 AS col2 FROM tab1 cor0 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_86.slt b/data/sqlite/random/aggregates/slt_good_86.slt index a3cf070..90ee439 100644 --- a/data/sqlite/random/aggregates/slt_good_86.slt +++ b/data/sqlite/random/aggregates/slt_good_86.slt @@ -1613,7 +1613,7 @@ SELECT COUNT ( * ) + + ( - + 80 ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - 3 -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 "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\(80\) 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 ( * ) + 80 AS col0, + COUNT ( * ) col0 FROM tab1 query II rowsort label-268 @@ -11343,7 +11343,7 @@ SELECT ALL + 1 AS col1 FROM tab1 WHERE - col1 IS NULL # 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\(\*\) AS col0" at position 0 and "Int64\(91\) \+ 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(91\) \+ Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, 91 + + 31 AS col0 FROM tab1 query I rowsort @@ -11698,7 +11698,7 @@ SELECT + col2 * + col0 AS col2, col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 63 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 + COUNT ( * ) AS col1, + 63 AS col1 FROM tab2 AS cor0 query III rowsort label-1946 @@ -15449,7 +15449,7 @@ SELECT 7 + - 57 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 "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 "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 COUNT ( * ) AS col2, + COUNT ( * ) AS col2 FROM tab1 AS cor0 query I rowsort @@ -15658,7 +15658,7 @@ SELECT DISTINCT - 0 - col2 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -120 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(40\) 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\(40\) 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 ( * ) * 40 AS col1, COUNT ( * ) AS col1 FROM tab1 query II rowsort @@ -17785,7 +17785,7 @@ SELECT * FROM tab2 cor0 WHERE NOT col1 / col0 NOT IN ( - 43 + col0 ) OR NULL IS # Datafusion - Datafusion expected results: # Datafusion - Expected - -98 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) 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\(\-98\) 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 - 98 AS col1, ( COUNT ( * ) ) AS col1 FROM tab0 AS cor0 # Datafusion - Types were automatically converted from: @@ -18605,7 +18605,7 @@ SELECT DISTINCT - col2 * - - col2 - - col0 + + 84 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 4607 -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\(\-61\) \* Int64\(\-75\) \+ Int64\(97\) / 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\(\-61\) \* Int64\(\-75\) \+ Int64\(97\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, ( - 61 ) * - 75 + + 97 / + COUNT ( * ) col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL query I rowsort label-3084 @@ -21206,7 +21206,7 @@ SELECT DISTINCT - col0 + 91 AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-66\) 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\(\*\) \- Int64\(\-66\) 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 ( * ) - - 66 AS col2, COUNT ( * ) AS col2 FROM tab2 query I rowsort @@ -32086,7 +32086,7 @@ SELECT DISTINCT SUM ( DISTINCT col1 ) AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 64 -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\) AS col1" at position 1 have the same name\. Consider aliasing \("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\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, ( + 64 ) AS col1 FROM tab1 query II rowsort @@ -38146,7 +38146,7 @@ SELECT - col1, col2 / + + col2 AS col0 FROM tab1 cor0 WHERE ( + 76 ) IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 5742 -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\(66\) \* min\(DISTINCT 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(66\) \* min\(DISTINCT Int64\(87\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COUNT ( * ) AS col1, 66 * + MIN ( DISTINCT + 87 ) AS col1 FROM tab2 AS cor0 query I rowsort @@ -42935,7 +42935,7 @@ SELECT - col1 FROM tab2 WHERE + 36 = - col1 * - 27 + + + CAST ( col1 AS INTEGER # Datafusion - Datafusion expected results: # Datafusion - Expected - 114 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \- Int64\(\-96\) 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\(18\) \- Int64\(\-96\) 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 18 - + - 96 AS col0, COUNT ( * ) col0 FROM tab2 query I rowsort label-7084 @@ -47493,7 +47493,7 @@ SELECT ALL 44 / + 53 AS col0 FROM tab0 AS 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 "sum\(\(\- \(\- 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 "sum\(\(\- \(\- 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 + SUM ( - - col1 ) AS col0, + COUNT ( * ) AS col0 FROM tab1 AS cor0 query III rowsort @@ -53478,7 +53478,7 @@ SELECT ALL + 18 * col2 + - - 89 + - col0 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) 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\(\-60\) 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 ( - 60 ) col0, + COUNT ( * ) AS col0 FROM tab1 query I rowsort label-8832 @@ -57134,7 +57134,7 @@ SELECT DISTINCT + ( + 79 ) / ( - - COUNT ( * ) ) / + MAX ( ALL + col0 ) FROM tab # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 1638 -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\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(\-26\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, - 26 * - COUNT ( * ) * + + 21 AS col0 FROM tab1 cor0 WHERE NOT col2 * + col0 IS NULL query I rowsort label-9430 diff --git a/data/sqlite/random/aggregates/slt_good_87.slt b/data/sqlite/random/aggregates/slt_good_87.slt index 0fbae24..219f75a 100644 --- a/data/sqlite/random/aggregates/slt_good_87.slt +++ b/data/sqlite/random/aggregates/slt_good_87.slt @@ -4289,7 +4289,7 @@ SELECT DISTINCT - + SUM ( - + col1 ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 65 -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\(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\(\*\) )?AS col1" at position 0 and "Int64\(65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, + 65 AS col1 FROM tab0 AS cor0 query III rowsort @@ -14506,7 +14506,7 @@ SELECT ALL + - col0 / + 21 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\(\*\)\) 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\(\*\)\) 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 + - COUNT ( * ) AS col2, + COUNT ( * ) AS col2 FROM tab2 AS cor0 # Datafusion - Types were automatically converted from: @@ -16059,7 +16059,7 @@ SELECT ALL COUNT ( * ) AS col0 FROM tab1, tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-30\)\) 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\(\-30\)\) 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 + ( - - 30 ) AS col1, COUNT ( * ) AS col1 FROM tab1 query I rowsort label-2617 @@ -17058,7 +17058,7 @@ SELECT DISTINCT - 73 AS col0 FROM tab0 WHERE NOT - col2 / + col0 + col0 IN ( - ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -71 -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\(\-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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(\-71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, - 71 AS col2 FROM tab0 query I rowsort @@ -18164,7 +18164,7 @@ SELECT DISTINCT * FROM tab0 WHERE ( col1 * - col2 = 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\(\*\) \* 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\(\*\) )?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 ( * ) col1, - COUNT ( * ) AS col1 FROM tab0 query I rowsort label-2966 @@ -18586,7 +18586,7 @@ SELECT + + col1 * - + 9 + + col0 AS 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 "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 "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 + COUNT ( * ) col2, COUNT ( * ) AS col2 FROM tab0 AS cor0 query I rowsort label-3035 @@ -18915,7 +18915,7 @@ SELECT ALL + col0, + col0 * + - col1 * - col1 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 "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 "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 COUNT ( * ) AS col2, COUNT ( * ) col2 FROM tab2 AS cor0 query I rowsort @@ -21100,7 +21100,7 @@ NULL # 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 "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\(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 DISTINCT 51 AS col2, COUNT ( * ) AS col2 FROM tab2 query I rowsort label-3453 @@ -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 Int32\)\)\) 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 @@ -26128,7 +26128,7 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 IN ( - + col0 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -8313 -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 "\(\- min\(DISTINCT \(\- cor0\.col2\)\)\) \* Int64\(\-84\) \- \(\- 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 "\(\- min\(DISTINCT \(\- cor0\.col2\)\)\) \* Int64\(\-84\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, - MIN ( DISTINCT ( + - col2 ) ) * - 84 - - COUNT ( * ) AS col2 FROM tab0 cor0 # Datafusion - Datafusion expected results: @@ -26639,7 +26639,7 @@ SELECT + + ( MIN ( ALL + + col1 ) ) AS col0, + COUNT ( * ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-40\)\) 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\(\-40\)\) 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 - - 40 col0, COUNT ( * ) col0 FROM tab2 AS cor0 query I rowsort @@ -27636,7 +27636,7 @@ SELECT ALL * FROM tab2 WHERE NOT + 11 <= NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 76 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, 76 AS col2 FROM tab1 query I rowsort @@ -30294,7 +30294,7 @@ SELECT SUM ( DISTINCT - - col2 ) AS 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\(\*\)\)\) 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\(\*\)\)\) 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 ( * ) ) col1, COUNT ( * ) AS col1 FROM tab0 AS cor0 query I rowsort label-4955 @@ -31248,7 +31248,7 @@ SELECT ALL + - 24 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - -7611 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col2" at position 0 and "\(\- count\(cor0\.col0\)\) \* Int64\(\-94\) \* \(\- Int64\(27\)\) \+ 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\(31\) AS col2" at position 0 and "\(\- count\(cor0\.col0\)\) \* Int64\(\-94\) \* \(\- Int64\(27\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 31 AS col2, - COUNT ( + col0 ) * + - 94 * - + 27 + COUNT ( * ) AS col2 FROM tab0 AS cor0 query I rowsort label-5114 @@ -32955,7 +32955,7 @@ SELECT + 97 / COUNT ( * ) FROM tab2 # 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\(tab2\.col1\) 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 "min\(tab2\.col1\) 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 MIN ( col1 ) col1, COUNT ( * ) AS col1 FROM tab2 query I rowsort label-5383 @@ -33940,7 +33940,7 @@ SELECT * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN 8 AND - - col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 153 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \* count\(Int64\(1\)\) AS count\(\*\) 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\(51\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 51 * COUNT ( * ) col0, 24 AS col0 FROM tab0 query I rowsort @@ -35658,7 +35658,7 @@ SELECT ALL - col1 FROM tab2 AS cor0 WHERE NOT + 84 * - 89 = - col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -65 -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\(\-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\(\*\) )?AS col2" at position 0 and "Int64\(\-65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col2, - 65 AS col2 FROM tab0 query I rowsort label-5831 @@ -41596,7 +41596,7 @@ SELECT + 31 * + + col2 + - 28 + - + 21 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 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\(\*\)\) 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 ( * ) AS col1, + COUNT ( * ) AS col1 FROM tab2 AS cor0 query I rowsort @@ -43969,7 +43969,7 @@ SELECT DISTINCT - ( 93 ) AS col1, - col2 * - + col1 * col1 AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2993 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \* Int64\(41\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(cor0\.col1\) \* 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\(41\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(cor0\.col1\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 73 * + 41 AS col2, - COUNT ( * ) * + + COUNT ( ALL + col1 ) * + COUNT ( * ) AS col2 FROM tab1 AS cor0 query I rowsort label-7196 @@ -52048,7 +52048,7 @@ SELECT ALL COUNT ( DISTINCT - + 31 ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -57 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-57\) AS col2" at position 0 and "Int64\(32\) \* 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\) AS col2" at position 0 and "Int64\(32\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 57 AS col2, 32 * COUNT ( * ) col2 FROM tab1 query II rowsort diff --git a/data/sqlite/random/aggregates/slt_good_88.slt b/data/sqlite/random/aggregates/slt_good_88.slt index 133c5cb..2742571 100644 --- a/data/sqlite/random/aggregates/slt_good_88.slt +++ b/data/sqlite/random/aggregates/slt_good_88.slt @@ -5072,7 +5072,7 @@ SELECT - 21 col2 FROM tab0 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 "min\(Int64\(9\)\) 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\(Int64\(9\)\) 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 ( 9 ) AS col0, + COUNT ( * ) AS col0 FROM tab2 AS cor0 query I rowsort @@ -17994,7 +17994,7 @@ SELECT DISTINCT + COUNT ( * ) * 83 + - ( + SUM ( ALL + col2 ) ) * + 98 col0 FROM # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 96 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 ALL COUNT ( * ) AS col2, + MAX ( ( + col2 ) ) AS col2 FROM tab1 AS cor0 query I rowsort @@ -20493,7 +20493,7 @@ SELECT ALL + col0 col1, col2 - - + 83 AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 57 -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\) AS col2" at position 1 have the same name\. Consider aliasing \("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\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, + ( + 57 ) AS col2 FROM tab2 query I rowsort @@ -25503,7 +25503,7 @@ SELECT * FROM tab1 WHERE NOT + - 19 IS NOT NULL # 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 "count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(\-10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col2, - 10 AS col2 FROM tab1 query III 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 Int32\)\) 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 @@ -25928,7 +25928,7 @@ SELECT * FROM tab2 cor0 WHERE NOT - 62 BETWEEN NULL AND NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -12 # Datafusion - Expected - 3 -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\(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\(\-12\) 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 - 12 col1, COUNT ( * ) AS col1 FROM tab0 AS cor0 query I rowsort label-4271 @@ -26071,7 +26071,7 @@ SELECT ALL - col1 AS col1 FROM tab1 WHERE NOT + col0 <= - 50 + + col1 # 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 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\(\*\) )?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 ( * ) col0, COUNT ( * ) AS col0 FROM tab1 AS cor0 query I rowsort @@ -27456,7 +27456,7 @@ SELECT 43 + - col2, col0 + + 51 col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3081 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-54\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(19\) AS col2" at position 0 and "Int64\(51\) \+ 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\(\-54\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(19\) AS col2" at position 0 and "Int64\(51\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) + + - 54 * COUNT ( * ) * + 19 AS col2, 51 + + COUNT ( * ) AS col2 FROM tab1 query III rowsort @@ -27560,7 +27560,7 @@ SELECT + col1 AS col0, 92 AS col1 FROM tab0 # Datafusion - Expected - 3 # 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 col0" at position 1 and "count\(DISTINCT \(\- \(\- tab1\.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\(\*\) )?AS col0" at position 1 and "count\(DISTINCT \(\- \(\- tab1\.col1\)\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, COUNT ( * ) col0, COUNT ( DISTINCT - - col1 ) col0 FROM tab1 query I rowsort @@ -32752,7 +32752,7 @@ SELECT 44 / + col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 270 -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\(\-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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(\-90\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col0, - 90 * - COUNT ( * ) col0 FROM tab2 query I rowsort label-5366 @@ -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 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\. SELECT DISTINCT - - CAST ( NULL AS INTEGER ) - - + 51 AS col0, COUNT ( * ) AS col0 FROM tab0 AS cor0 query I rowsort @@ -36308,7 +36308,7 @@ SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 WHERE + col1 IS NOT NULL # 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 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\(\-89\)\) 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 - - 89 AS col2, + COUNT ( * ) AS col2 FROM tab1 AS cor0 query I rowsort @@ -37249,7 +37249,7 @@ SELECT + 49 + - MAX ( col1 ) col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \+ 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 "Int64\(8\) \+ 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 DISTINCT + 8 + 65 AS col2, COUNT ( * ) col2 FROM tab1 query I rowsort label-6118 @@ -48483,7 +48483,7 @@ SELECT - col2 + - - col2 * - - 43 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \+ \(\- count\(DISTINCT Int64\(94\)\)\) 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\(83\) \+ \(\- count\(DISTINCT Int64\(94\)\)\) 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 ( + 83 ) + - + COUNT ( DISTINCT + + 94 ) AS col1, COUNT ( * ) col1 FROM tab1 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_89.slt b/data/sqlite/random/aggregates/slt_good_89.slt index 09b987d..c4a1811 100644 --- a/data/sqlite/random/aggregates/slt_good_89.slt +++ b/data/sqlite/random/aggregates/slt_good_89.slt @@ -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 Int32\) \* 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 @@ -8704,7 +8704,7 @@ SELECT ALL - 74 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab2 AS cor0 query II rowsort label-1423 @@ -10140,7 +10140,7 @@ SELECT 91 / + + col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 76 -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\(\-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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "\(\- Int64\(\-76\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col0, - ( - 76 ) col0 FROM tab1 AS cor0 query I rowsort @@ -12135,7 +12135,7 @@ SELECT ALL * FROM tab1 AS cor0 WHERE ( ( 73 ) ) NOT BETWEEN - col2 * 60 AND + 92 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 29 -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\(cor0\.col2\) \+ 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "count\(cor0\.col2\) \+ Int64\(26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, + COUNT ( + + col2 ) + + 26 AS col1 FROM tab2 AS cor0 query I rowsort label-1988 @@ -12792,7 +12792,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) 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\(54\) 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 54 AS col2, COUNT ( * ) AS col2 FROM tab0 query I rowsort @@ -16074,7 +16074,7 @@ SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <= - col0 # 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 "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\(\-68\) 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 + - 68 AS col2, + COUNT ( * ) AS col2 FROM tab2 AS cor0 query I rowsort @@ -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 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\. 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 @@ -19259,7 +19259,7 @@ NULL # 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 "\(\- Int64\(\-84\)\) 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\(\-84\)\) 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 - - 84 AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0 query II 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 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\. SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) col2, - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0 query I rowsort label-3229 @@ -21290,7 +21290,7 @@ SELECT + - 89 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 "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\(\*\) )?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 ( * ) AS col1, + ( + ( - COUNT ( * ) ) ) col1 FROM tab2 AS cor0 query I rowsort label-3485 @@ -21594,7 +21594,7 @@ SELECT col0 / - + col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -4512 -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\(48\) \* 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\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(48\) \* Int64\(\-94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col2, + ( + 48 ) * - 94 AS col2 FROM tab1 AS cor0 query II rowsort label-3536 @@ -34150,7 +34150,7 @@ SELECT DISTINCT - MIN ( 5 ) FROM tab0 # 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 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\(39\) 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 + 39 AS col1, + ( COUNT ( * ) ) col1 FROM tab1 query II rowsort @@ -35092,7 +35092,7 @@ SELECT - CAST ( MIN ( DISTINCT - 53 ) AS INTEGER ) FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) 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\(24\) 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 + 24 AS col2, COUNT ( * ) col2 FROM tab1 AS cor0 query III rowsort @@ -45915,7 +45915,7 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 - - 69 / + - col0 <> NULL # 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 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\(\*\) )?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 ( * ) AS col0, + COUNT ( * ) col0 FROM tab1 AS cor0 query I rowsort label-7508 @@ -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 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\. SELECT ALL - - CAST ( NULL AS INTEGER ) / ( - - COUNT ( ALL + - col1 ) ) col0, COUNT ( * ) AS col0 FROM tab2 AS cor0 query I rowsort label-7927 @@ -49747,7 +49747,7 @@ SELECT - 70 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) 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\(62\) 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 + 62 AS col0, + COUNT ( * ) AS col0 FROM tab2 query I rowsort label-8144 @@ -59309,7 +59309,7 @@ SELECT DISTINCT + 31 * - - ( + 64 ) AS col2 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 "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\(\*\) )?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 ( * ) AS col1, + COUNT ( * ) col1 FROM tab0 AS cor0 # Datafusion - Types were automatically converted from: diff --git a/data/sqlite/random/aggregates/slt_good_9.slt b/data/sqlite/random/aggregates/slt_good_9.slt index 7f6006b..54c8de8 100644 --- a/data/sqlite/random/aggregates/slt_good_9.slt +++ b/data/sqlite/random/aggregates/slt_good_9.slt @@ -2230,7 +2230,7 @@ SELECT - ( - 81 ) AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -21 -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 "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 "count\(Int64\(1\)\) AS count\(\*\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(\-21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) / COUNT ( * ) AS col0, - 21 AS col0 FROM tab2 query I rowsort @@ -6199,7 +6199,7 @@ SELECT + col1 AS col2, + col2 + col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) 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\(85\) 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 85 AS col2, COUNT ( * ) AS col2 FROM tab2 AS cor0 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 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\. SELECT ALL 73 + - 62 / + CAST ( NULL AS INTEGER ) AS col2, + COUNT ( * ) AS col2 FROM tab0 query I rowsort label-2202 @@ -14987,7 +14987,7 @@ SELECT ALL + + COUNT ( * ) FROM tab2 WHERE NOT NULL IS NULL # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(\-57\) / Int64\(\-91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col0, ( + - 57 ) / - 91 AS col0 FROM tab2 query I rowsort label-2444 @@ -27785,7 +27785,7 @@ SELECT DISTINCT + SUM ( + - ( + col1 ) ) AS col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -83 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- 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 "\(\- 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 - + 83 AS col2, + COUNT ( * ) AS col2 FROM tab2 AS cor0 query II rowsort @@ -38331,7 +38331,7 @@ SELECT + MAX ( + 96 ) AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - -46 -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 "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 "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(\-46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) * + COUNT ( * ) AS col2, - 46 AS col2 FROM tab0 query I rowsort @@ -53813,7 +53813,7 @@ SELECT + col0 * - - col1 AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) 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\(\-61\) 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 - 61 AS col1, COUNT ( * ) AS col1 FROM tab1 query II rowsort @@ -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 Int32\) 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 @@ -59922,7 +59922,7 @@ SELECT + COUNT ( DISTINCT - + ( + + 10 ) ) * + COUNT ( * ) AS col0 FROM tab1 cor # Datafusion - Datafusion expected results: # Datafusion - Expected - -747 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(83\)\)\) \* 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\(Int64\(83\)\)\) \* 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 - SUM ( ALL 83 ) * + COUNT ( * ) AS col1, COUNT ( * ) col1 FROM tab1 AS cor0 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..1b471a1 100644 --- a/data/sqlite/random/aggregates/slt_good_90.slt +++ b/data/sqlite/random/aggregates/slt_good_90.slt @@ -1763,7 +1763,7 @@ SELECT + 30 + + + COUNT ( * ) 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 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\(\*\)\) 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 ( * ) AS col0, COUNT ( * ) AS col0 FROM tab1 AS cor0 query I rowsort @@ -5408,7 +5408,7 @@ SELECT ( - col0 ) + - col1 AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -12 -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\(\-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\(\-12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col1, - 12 AS col1 FROM tab2 query I rowsort label-897 @@ -8545,7 +8545,7 @@ SELECT 29 AS col1, COUNT ( * ) * + MAX ( ALL - col0 ) AS col1 FROM tab0 # 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 "\(\- Int64\(\-84\)\) 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\(\-84\)\) 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 - - 84 AS col0, COUNT ( * ) AS col0 FROM tab0 AS cor0 query II rowsort @@ -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 Int32\)" 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 @@ -9464,7 +9464,7 @@ SELECT - 61 * + col0 FROM tab2 # 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 "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- min\(DISTINCT 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\(\*\) )?AS col1" at position 0 and "\(\- min\(DISTINCT Int64\(\-88\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, - MIN ( DISTINCT + - 88 ) AS col1 FROM tab1 query III rowsort @@ -14235,7 +14235,7 @@ SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - 94 AND 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\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 DISTINCT + COUNT ( * ) AS col0, - CAST ( NULL AS FLOAT8 ) AS col0 FROM tab2 AS cor0 query I rowsort @@ -17668,7 +17668,7 @@ SELECT * FROM tab0 WHERE NOT NULL > ( - 74 ) # Datafusion - Expected - 0 # Datafusion - Expected - 0 # Datafusion - Expected - -27 -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\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("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\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col2, + COUNT ( * ) AS col2, - 27 FROM tab2 WHERE NOT NULL IS NULL query II rowsort @@ -17709,7 +17709,7 @@ SELECT + col1, col0 + + col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) 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\(71\) 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 71 AS col1, + COUNT ( * ) AS col1 FROM tab2 AS cor0 query I rowsort @@ -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 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\. SELECT COUNT ( CAST ( NULL AS INTEGER ) ) col0, COUNT ( * ) AS col0 FROM tab1 query II rowsort @@ -24314,7 +24314,7 @@ SELECT ALL - col0 - - col0 * col1 * - - 21 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 7203 -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\(90\) \* 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\(\*\) )?AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(90\) \* Int64\(80\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, COUNT ( * ) + 90 * + 80 AS col2 FROM tab0 query I rowsort @@ -28400,7 +28400,7 @@ SELECT + col1 - + - col2 * 84 + ( + 1 ) / 46 AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) / Int64\(33\) \+ \(\- \(\- 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\(36\) / Int64\(33\) \+ \(\- \(\- 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 36 / + 33 + - - COUNT ( * ) col0, COUNT ( * ) AS col0 FROM tab0 AS cor0 query I rowsort label-4672 @@ -30594,7 +30594,7 @@ SELECT ALL - col2 * - - col0 col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3654 -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\(42\) \* Int64\(\-29\) \* \(\- 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\(42\) \* Int64\(\-29\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) col1, ( 42 ) * - 29 * - COUNT ( * ) col1 FROM tab2 query I rowsort label-5030 @@ -31041,7 +31041,7 @@ SELECT 72 * col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 84 -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\(57\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(\-10\)\) \* 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\(57\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(\-10\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( + COUNT ( * ) ) AS col1, 57 + - COUNT ( * ) + - - 10 * + COUNT ( * ) AS col1 FROM tab0 query III rowsort @@ -35670,7 +35670,7 @@ SELECT - MIN ( ALL + col2 ) * - 55 * + COUNT ( * ) AS col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -15 -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\(\-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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(\-15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, - 15 AS col2 FROM tab2 query III rowsort @@ -37238,7 +37238,7 @@ SELECT + + 65 / + + col1 AS col1 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\(\*\)\) 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\(\*\)\) 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 ( * ) AS col2, COUNT ( * ) AS col2 FROM tab2 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 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\. SELECT DISTINCT + 97 * + + SUM ( - - CAST ( + 61 AS INTEGER ) ) col0, SUM ( DISTINCT - ( 68 ) ) * COUNT ( * ) AS col0 FROM tab2 query III rowsort @@ -45100,7 +45100,7 @@ SELECT * FROM tab1 AS cor0 WHERE col0 * 53 > + col1 # 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 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\(\*\) )?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 ( * ) AS col0, COUNT ( * ) AS col0 FROM tab2 cor0 query I rowsort label-7420 @@ -45282,7 +45282,7 @@ SELECT ALL + 36 AS col0 FROM tab0, tab1 AS cor0 # 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 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\(\-31\) 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 + ( - 31 ) AS col2, + COUNT ( * ) AS col2 FROM tab0 query I rowsort @@ -48148,7 +48148,7 @@ SELECT ALL * FROM tab2 WHERE - - col0 NOT BETWEEN + col2 * - col2 * - col0 * + ( # 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 "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\(\*\) )?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 ( * ) AS col1, COUNT ( * ) col1 FROM tab1 WHERE NOT NULL < + + col0 query I rowsort @@ -53122,7 +53122,7 @@ SELECT + col0, + col2 FROM tab2 AS cor0 WHERE NOT NULL >= ( 92 ) # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab0 AS cor0 query I rowsort @@ -59160,7 +59160,7 @@ SELECT - 17 * - 4 AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -19 -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\(\-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\(\*\) )?AS col1" at position 0 and "Int64\(\-19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, - 19 col1 FROM tab0 AS cor0 query I rowsort label-9733 diff --git a/data/sqlite/random/aggregates/slt_good_91.slt b/data/sqlite/random/aggregates/slt_good_91.slt index 95838bd..a51e52f 100644 --- a/data/sqlite/random/aggregates/slt_good_91.slt +++ b/data/sqlite/random/aggregates/slt_good_91.slt @@ -11989,7 +11989,7 @@ SELECT 8 + col0 * - CAST ( - col2 AS INTEGER ) + - + 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\(Int64\(1\)\) AS count\(\*\) \+ Int64\(45\) / Int64\(\-96\) 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\(45\) / Int64\(\-96\) 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 ( * ) + + 45 / - 96 AS col0, COUNT ( * ) col0 FROM tab0 query I rowsort @@ -24332,7 +24332,7 @@ SELECT ALL + col2 AS col2, + col1 FROM tab0 # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col2, + COUNT ( * ) AS col2 FROM tab0 query I rowsort @@ -24839,7 +24839,7 @@ SELECT ALL ( col0 ) * 35 * + 1 + - col1, + 76 * - 9 * + 64 - - + col0 * - - col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 255 -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 "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 "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) (AS count\(\*\) )?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 COUNT ( * ) * + + COUNT ( * ) AS col0, 85 * COUNT ( * ) AS col0 FROM tab0 query I rowsort label-4061 @@ -40524,7 +40524,7 @@ SELECT + + COUNT ( + 34 ) * - - 45 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 61 -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\(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\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col2, 61 AS col2 FROM tab2 AS cor0 query I rowsort label-6658 @@ -46350,7 +46350,7 @@ SELECT ALL * FROM tab2 WHERE NOT + 92 * ( + + 81 ) <= + col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -92 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-92\)\) 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 "min\(Int64\(\-92\)\) 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 MIN ( + - 92 ) AS col2, COUNT ( * ) AS col2 FROM tab2 query I rowsort label-7610 @@ -57513,7 +57513,7 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col0 * - - col1 AND NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - 0 -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 "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\(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 COUNT ( * ) + 81 AS col1, + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_92.slt b/data/sqlite/random/aggregates/slt_good_92.slt index f8c2996..7c03369 100644 --- a/data/sqlite/random/aggregates/slt_good_92.slt +++ b/data/sqlite/random/aggregates/slt_good_92.slt @@ -28616,7 +28616,7 @@ SELECT + 92 AS col1, col1 AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 199 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(tab0\.col0\) 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 "sum\(tab0\.col0\) 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 SUM ( + col0 ) AS col2, COUNT ( * ) AS col2 FROM tab0 query II 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 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\. SELECT DISTINCT MAX ( CAST ( NULL AS INTEGER ) ) AS col2, COUNT ( * ) col2 FROM tab0 query I rowsort @@ -38208,7 +38208,7 @@ SELECT ALL + 47 / 84 * + + 92 + + COUNT ( * ) / + COUNT ( * ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # 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\(\*\)\) \- Int64\(\-11\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- \(\- count\(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 "count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(\-11\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "\(\- \(\- count\(tab1\.col0\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) - - 11 * COUNT ( * ) AS col1, - ( - COUNT ( col0 ) ) AS col1 FROM tab1 query I rowsort @@ -39897,7 +39897,7 @@ SELECT + col2, - ( + col0 ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -1639 -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\(23\) \* Int64\(\-75\) \+ 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(23\) \* Int64\(\-75\) \+ Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col0, 23 * - 75 + 86 AS col0 FROM tab1 query II rowsort @@ -49501,7 +49501,7 @@ NULL # 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 "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 "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, + COUNT ( * ) AS col2 FROM tab2 query II rowsort @@ -52380,7 +52380,7 @@ SELECT * FROM tab1 WHERE NOT - + col1 + - col1 + col2 * col2 * col2 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) 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\(47\) 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 47 AS col2, COUNT ( * ) col2 FROM tab0 query III rowsort @@ -58573,7 +58573,7 @@ SELECT + + col0 AS col2, 48 * - 51 AS col0 FROM tab0 AS cor0 # 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 "count\(DISTINCT Int64\(15\)\) 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 Int64\(15\)\) 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 ( DISTINCT + + 15 ) AS col1, COUNT ( * ) AS col1 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..94d8de8 100644 --- a/data/sqlite/random/aggregates/slt_good_93.slt +++ b/data/sqlite/random/aggregates/slt_good_93.slt @@ -6221,7 +6221,7 @@ SELECT + + col1 * - 12 * + ( 12 ) * - 73 AS col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -58 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) 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\) 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 + ( ( - 58 ) ) AS col1, COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE + col1 <= - - col1 * + + col0 - - col0 query I rowsort label-1011 @@ -6556,7 +6556,7 @@ SELECT DISTINCT + - 63 AS col1, col0 AS col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -72 -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\) AS col2" at position 1 have the same name\. Consider aliasing \("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\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, - 72 AS col2 FROM tab0 cor0 query I rowsort @@ -8152,7 +8152,7 @@ SELECT - 56 + 10 * 69 / - col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 121 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(tab2\.col2\) 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\(tab2\.col2\) 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 + col2 ) AS col1, + COUNT ( * ) AS col1 FROM tab2 query I rowsort @@ -19905,7 +19905,7 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 61 IS NOT NULL # 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\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 COUNT ( * ) AS col2, 85 AS col2 FROM tab1 AS cor0 query I rowsort label-3282 @@ -29173,7 +29173,7 @@ SELECT 3 / - col0 AS col1 FROM tab0 # 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 "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(65\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(11\) / Int64\(15\) \* \(\- Int64\(21\)\) \+ \(\- 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 "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(65\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(11\) / Int64\(15\) \* \(\- Int64\(21\)\) \+ \(\- Int64\(26\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) * - + 65 + COUNT ( * ) AS col1, + 11 / + 15 * - + 21 + - + 26 AS col1 FROM tab1 WHERE NULL IS NOT NULL query I rowsort label-4788 @@ -35454,7 +35454,7 @@ SELECT - COUNT ( * ), 93 AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -410 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- Int64\(\-10\)\)\) \* Int64\(\-41\) 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\(\(\- Int64\(\-10\)\)\) \* Int64\(\-41\) 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 ( - + ( + - 10 ) ) * - 41 AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0 query I rowsort @@ -37252,7 +37252,7 @@ SELECT DISTINCT - - 10 + - 72 AS col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 64 -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\)\) AS col1" at position 1 have the same name\. Consider aliasing \("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\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, ( - - 64 ) AS col1 FROM tab2 query II rowsort @@ -46483,7 +46483,7 @@ SELECT 89 AS col1, MIN ( 15 ) / - COUNT ( * ) AS col2, - - 86 - - - 66 AS col1 F # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col2" at position 0 and "Int64\(74\) \+ 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\(47\) AS col2" at position 0 and "Int64\(74\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 47 AS col2, 74 + COUNT ( * ) AS col2 FROM tab0 cor0 WHERE NULL IS NOT NULL query I rowsort label-7622 @@ -49377,7 +49377,7 @@ SELECT DISTINCT + + 30 + + col0 AS col1 FROM tab0 cor0 # 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 "count\(Int64\(1\)\) AS count\(\*\) 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\(\*\) )?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 + + COUNT ( * ) col0, - COUNT ( * ) * + + 7 col0 FROM tab1 AS cor0 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_94.slt b/data/sqlite/random/aggregates/slt_good_94.slt index a3d483d..1ec2080 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 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\. SELECT ALL + - CAST ( NULL AS INTEGER ) / COUNT ( * ) * + 34 AS col2, + COUNT ( * ) col2 FROM tab0 cor0 query III rowsort @@ -3544,7 +3544,7 @@ SELECT ALL 71 * - 12 AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 82 -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\(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 "Int64\(82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, 82 AS col1 FROM tab2 query III rowsort label-574 @@ -5193,7 +5193,7 @@ SELECT * FROM tab0 WHERE + 50 <= NULL # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL query I rowsort label-856 @@ -5790,7 +5790,7 @@ SELECT 47 AS col0, col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 COUNT ( * ) AS col0, - 2 AS col0 FROM tab2 query I rowsort label-953 @@ -9876,7 +9876,7 @@ SELECT ALL - col1 AS col1 FROM tab1 AS cor0 WHERE NOT + 14 * col0 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 "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 DISTINCT + + 13 AS col1, COUNT ( * ) AS col1 FROM tab2 AS cor0 query III rowsort @@ -10043,7 +10043,7 @@ SELECT * FROM tab1 WHERE - ( - + col0 ) / - col2 * + + 50 * - col0 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # 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 "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\(\*\) )?AS col1" at position 0 and "Int64\(8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col1, + 8 col1 FROM tab0 query I 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 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\. SELECT DISTINCT + 89 * CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) AS col1 FROM tab1 query III rowsort label-1917 @@ -12947,7 +12947,7 @@ SELECT 78 / + 13 FROM tab2, tab0 AS cor0 # Datafusion - Datafusion expected results: # 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 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\(48\) 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 48 AS col1, COUNT ( * ) AS col1 FROM tab0 query I rowsort label-2126 @@ -34090,7 +34090,7 @@ SELECT ALL - - col1 + col2 + - col1 AS col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) 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\(55\) 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 + + 55 AS col1, + COUNT ( * ) AS col1 FROM tab1 AS cor0 query I rowsort @@ -35708,7 +35708,7 @@ SELECT ALL 81 * - COUNT ( * ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 29 -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\(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\(\*\) )?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 ( * ) AS col2, 29 AS col2 FROM tab1 query I rowsort @@ -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 Int32\) \* 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 @@ -38819,7 +38819,7 @@ SELECT DISTINCT col0 AS col2 FROM tab2 AS cor0 WHERE CAST ( col0 AS INTEGER ) IS # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab0 query I rowsort @@ -39160,7 +39160,7 @@ SELECT DISTINCT - col0 + + + 67 * 4 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 "\(\- avg\(tab0\.col2\)\) AS col1" at position 0 and "min\(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 "\(\- avg\(tab0\.col2\)\) AS col1" at position 0 and "min\(Int64\(80\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - AVG ( col2 ) AS col1, MIN ( 80 ) + + + COUNT ( * ) AS col1 FROM tab0 WHERE + - 11 = + col2 / + - col0 query II rowsort label-6423 @@ -43981,7 +43981,7 @@ SELECT + 48 * 72 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) AS col1" at position 0 and "Int64\(\-4\) \+ Int64\(63\) \+ count\(Int64\(84\)\) \+ 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\(\-70\) AS col1" at position 0 and "Int64\(\-4\) \+ Int64\(63\) \+ count\(Int64\(84\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 70 AS col1, - 4 + + 63 + COUNT ( 84 ) + + + COUNT ( * ) AS col1 FROM tab2 AS cor0 query III rowsort @@ -49626,7 +49626,7 @@ SELECT DISTINCT col0 AS col2, - col1 * col0 FROM tab0 cor0 # 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 "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "sum\(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\(\*\) )?AS col2" at position 0 and "sum\(Int64\(22\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) col2, SUM ( 22 ) AS col2 FROM tab1 AS cor0 query II rowsort @@ -50157,7 +50157,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 5610 -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\(\*\)\) \* \(\- Int64\(55\)\) \* 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(55\)\) \* Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col1, - COUNT ( * ) * - + 55 * 34 AS col1 FROM tab0 AS cor0 query I rowsort label-8230 @@ -53541,7 +53541,7 @@ NULL # 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 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\(\*\) )?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 ( * ) AS col0, COUNT ( * ) AS col0 FROM tab0 query I rowsort label-8787 @@ -55908,7 +55908,7 @@ SELECT + - col1 * ( - + 72 ) AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 195 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\(\- Int64\(11\)\)\)\) AS col0" at position 0 and "Int64\(65\) \* 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\(11\)\)\)\) AS col0" at position 0 and "Int64\(65\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( - + 11 ) AS col0, 65 * COUNT ( * ) AS col0 FROM tab1 AS cor0 query I rowsort @@ -58617,7 +58617,7 @@ SELECT * FROM tab2 AS cor0 WHERE NOT + 75 / - col0 <= + + col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 "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 DISTINCT + 8 AS col1, COUNT ( * ) AS col1 FROM tab2 cor0 query II rowsort label-9611 diff --git a/data/sqlite/random/aggregates/slt_good_95.slt b/data/sqlite/random/aggregates/slt_good_95.slt index 48fa855..e274a87 100644 --- a/data/sqlite/random/aggregates/slt_good_95.slt +++ b/data/sqlite/random/aggregates/slt_good_95.slt @@ -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 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\. SELECT + COUNT ( * ) + + CAST ( NULL AS INTEGER ) col0, COUNT ( * ) / + + COUNT ( * ) col0 FROM tab0 query II rowsort label-1447 @@ -9758,7 +9758,7 @@ SELECT ALL - col0 + ( + 42 ) FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -13 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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\(\-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 + - 13 AS col2, + COUNT ( * ) col2 FROM tab2 AS cor0 query I rowsort label-1601 @@ -14167,7 +14167,7 @@ SELECT DISTINCT - MIN ( ALL + col0 ) AS col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ 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 "Int64\(39\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(17\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 39 AS col0, + COUNT ( * ) + + 17 + COUNT ( * ) AS col0 FROM tab2 cor0 query I rowsort label-2332 @@ -15100,7 +15100,7 @@ SELECT - 87 * + - col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 95 -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\) AS col0" at position 1 have the same name\. Consider aliasing \("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\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, 95 AS col0 FROM tab0 AS cor0 query I rowsort label-2484 @@ -18409,7 +18409,7 @@ SELECT ALL 69 col1, - col0 FROM tab2 # 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 "count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col0, 6 AS col0 FROM tab1 query II rowsort @@ -23302,7 +23302,7 @@ SELECT COUNT ( * ) * + 77 AS col1 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\(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 "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 COUNT ( * ) AS col2, + COUNT ( * ) col2 FROM tab2 query I rowsort @@ -25261,7 +25261,7 @@ SELECT DISTINCT * FROM tab2 WHERE NOT + col1 * col2 IS NULL # 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 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\(\*\) )?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 ( * ) col0, - COUNT ( * ) AS col0 FROM tab1 AS cor0 query II rowsort @@ -28898,7 +28898,7 @@ SELECT + 49 * - col2 + + - 71 + + col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-54\) \+ Int64\(84\) 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\(\-54\) \+ Int64\(84\) 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 - 54 + 84 AS col0, COUNT ( * ) col0 FROM tab1 query I rowsort @@ -31148,7 +31148,7 @@ SELECT DISTINCT - col0 + + + 78 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 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\(\*\) )?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 ( * ) col0, - COUNT ( * ) col0 FROM tab0 AS cor0 query II rowsort @@ -56316,7 +56316,7 @@ SELECT 66 * - col2 * col0 + 14 * col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -45 # Datafusion - Expected - 156 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(DISTINCT cor0\.col1\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* 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\(DISTINCT cor0\.col1\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - MIN ( DISTINCT + col1 ) + COUNT ( * ) + + COUNT ( * ) AS col2, + COUNT ( * ) * + 52 AS col2 FROM tab2 AS cor0 # Datafusion - Types were automatically converted from: diff --git a/data/sqlite/random/aggregates/slt_good_96.slt b/data/sqlite/random/aggregates/slt_good_96.slt index 2230b25..570698f 100644 --- a/data/sqlite/random/aggregates/slt_good_96.slt +++ b/data/sqlite/random/aggregates/slt_good_96.slt @@ -2166,7 +2166,7 @@ SELECT col1 * 28 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(70\)\) 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\(70\)\) 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 - + 70 AS col1, + COUNT ( * ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 ) query I rowsort label-350 @@ -10724,7 +10724,7 @@ SELECT DISTINCT - 11 * + - COUNT ( * ) / - 77 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4752 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \* Int64\(\-99\) 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\(48\) \* Int64\(\-99\) 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 48 * - 99 AS col0, COUNT ( * ) AS col0 FROM tab2 query I rowsort label-1764 @@ -17765,7 +17765,7 @@ SELECT DISTINCT + col0 col0, col0 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -77 # Datafusion - Expected - 114 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) \- sum\(Int64\(69\)\) / Int64\(29\) AS col0" at position 0 and "Int64\(38\) \* 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\(\-70\) \- sum\(Int64\(69\)\) / Int64\(29\) AS col0" at position 0 and "Int64\(38\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 70 - SUM ( ALL + + 69 ) / + 29 AS col0, 38 * + + COUNT ( * ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL query I rowsort label-2926 @@ -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 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\. SELECT ALL - CAST ( - SUM ( ALL - 7 ) AS INTEGER ) AS col0, COUNT ( * ) col0 FROM tab1 query III rowsort @@ -26661,7 +26661,7 @@ SELECT 95 FROM tab2 AS cor0 WHERE col2 * + col2 * - + col0 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -31 # Datafusion - Expected - 8 -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 "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\(\-34\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?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 - 34 + + COUNT ( * ) col2, 8 AS col2 FROM tab0 AS cor0 query II rowsort @@ -28319,7 +28319,7 @@ SELECT ALL - col1 - + 36 col2 FROM tab2 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\) \+ 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\(cor0\.col1\) \+ 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 DISTINCT + COUNT ( + + col1 ) + + COUNT ( * ) col0, COUNT ( * ) AS col0 FROM tab2 AS cor0 query I rowsort label-4684 @@ -40282,7 +40282,7 @@ SELECT - COUNT ( + - col0 ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -201 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(67\)\) 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\(67\)\) 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 ( * ) ) * - + 67 AS col0, COUNT ( * ) AS col0 FROM tab1 AS cor0 query I rowsort @@ -42697,7 +42697,7 @@ SELECT DISTINCT 49 * 77 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - -61 -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\(\-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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(\-61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, - 61 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 query III rowsort @@ -56977,7 +56977,7 @@ SELECT ALL col1 * - 97 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 "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col1, - COUNT ( * ) AS col1 FROM tab0 query I rowsort label-9416 diff --git a/data/sqlite/random/aggregates/slt_good_97.slt b/data/sqlite/random/aggregates/slt_good_97.slt index 11eb04f..4c244f2 100644 --- a/data/sqlite/random/aggregates/slt_good_97.slt +++ b/data/sqlite/random/aggregates/slt_good_97.slt @@ -91,7 +91,7 @@ SELECT + ( + MIN ( DISTINCT + - col1 ) ) col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -46 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT \(\- tab2\.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 "max\(DISTINCT \(\- tab2\.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 DISTINCT MAX ( DISTINCT - col0 ) AS col0, + COUNT ( * ) col0 FROM tab2 query I rowsort label-10 @@ -15426,7 +15426,7 @@ SELECT MIN ( DISTINCT + 68 ) AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 204 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(cor0\.col1\) \* Int64\(68\) / count\(DISTINCT cor0\.col1\) \* 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 "count\(cor0\.col1\) \* Int64\(68\) / count\(DISTINCT cor0\.col1\) \* 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 COUNT ( col1 ) * 68 / COUNT ( DISTINCT col1 ) * + COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab2 AS cor0 query III 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 Int32\)\) 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 @@ -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 Int32\) 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 @@ -31258,7 +31258,7 @@ SELECT DISTINCT - - 35 + - + 15, 55 AS col1 FROM tab2 AS cor0 WHERE NOT + col1 < # Datafusion - Datafusion expected results: # Datafusion - Expected - -17 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-17\) 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\(\-17\) 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 - 17 AS col1, COUNT ( * ) col1 FROM tab1 AS cor0 query I rowsort label-5110 @@ -44097,7 +44097,7 @@ SELECT * FROM tab1 WHERE NOT - - col0 >= NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) 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\(16\) 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 16 AS col1, COUNT ( * ) AS col1 FROM tab2 query I rowsort @@ -49222,7 +49222,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # 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 "Int64\(\-7\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- min\(DISTINCT \(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(\-7\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- min\(DISTINCT \(\- cor0\.col2\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) col0, - 7 + + - COUNT ( * ) + + - MIN ( DISTINCT + - col2 ) AS col0 FROM tab0 AS cor0 query I rowsort @@ -50719,7 +50719,7 @@ SELECT DISTINCT + 24, + col1 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) 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\(76\) 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 ( 76 ) AS col2, + COUNT ( * ) col2 FROM tab0 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..f73e6d6 100644 --- a/data/sqlite/random/aggregates/slt_good_98.slt +++ b/data/sqlite/random/aggregates/slt_good_98.slt @@ -2353,7 +2353,7 @@ SELECT * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL >= 13 # Datafusion - Datafusion expected results: # Datafusion - Expected - -222 # Datafusion - Expected - -252 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \* \(\- count\(DISTINCT Int64\(\-51\)\)\) \* Int64\(6\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ 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\) \* \(\- count\(DISTINCT Int64\(\-51\)\)\) \* Int64\(6\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-85\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 37 * + - COUNT ( DISTINCT - 51 ) * ( + 6 ) AS col0, + COUNT ( * ) + - 85 * + COUNT ( * ) AS col0 FROM tab2 query I rowsort @@ -7713,7 +7713,7 @@ SELECT ALL - col2 + + col2 - 21 AS col0 FROM tab0 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 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\(\*\)\) 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 ( * ) AS col1, COUNT ( * ) AS col1 FROM tab0 query II rowsort @@ -7729,7 +7729,7 @@ SELECT ALL 1 - + + 21 AS col1, col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - 3 -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\(\*\) AS col0" at position 1 have the 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\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 35 AS col0, COUNT ( * ) AS col0 FROM tab2 query III rowsort @@ -8562,7 +8562,7 @@ SELECT + 39, 32 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -162 -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\(\*\) \* \(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(54\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col1, + COUNT ( * ) * - + 54 AS col1 FROM tab2 query III rowsort @@ -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 Int32\)" 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 @@ -20431,7 +20431,7 @@ SELECT DISTINCT col1 AS col2, + col1 - - + col0 AS col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) 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\(40\) 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 + 40 col0, COUNT ( * ) AS col0 FROM tab0 AS cor0 query I rowsort @@ -22280,7 +22280,7 @@ SELECT - + COUNT ( + + col0 ) AS col2 FROM tab2 AS cor0 WHERE + 80 NOT BETWEEN 7 # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) 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\(61\) 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 61 AS col1, + COUNT ( * ) AS col1 FROM tab2 AS cor0 query I rowsort label-3664 @@ -23047,7 +23047,7 @@ SELECT + col0 / - col0 AS col1 FROM tab1 WHERE NULL IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 2997 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \* \(\- min\(\(\- tab0\.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\(37\) \* \(\- min\(\(\- tab0\.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 37 * + - MIN ( + - col1 ) AS col0, COUNT ( * ) AS col0 FROM tab0 query III rowsort @@ -27510,7 +27510,7 @@ SELECT * FROM tab2 AS cor0 WHERE col2 + col0 - + - ( - col0 ) + - 14 + + - 89 - # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 223 -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 "\(\- 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 "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) (AS count\(\*\) )?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 + COUNT ( * ) * + COUNT ( * ) AS col1, - SUM ( ALL - - ( + ( - col2 ) ) ) AS col1 FROM tab1 AS cor0 query I rowsort @@ -34735,7 +34735,7 @@ SELECT ALL + col1 + + 9 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 36 -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 "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 "count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(36\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) + + COUNT ( * ) AS col0, + 36 AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: @@ -41984,7 +41984,7 @@ SELECT + col0 - + + 9 - + col1 AS col2 FROM tab2 AS cor0 # 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 "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\(\-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 DISTINCT + ( - 96 ) col1, + COUNT ( * ) AS col1 FROM tab2 AS cor0 query I rowsort label-6903 @@ -42162,7 +42162,7 @@ SELECT COUNT ( * ) AS col0, 99 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) 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\(49\) 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 49 AS col0, + COUNT ( * ) col0 FROM tab1 query I rowsort label-6934 @@ -44201,7 +44201,7 @@ SELECT ALL 80 AS col2 FROM tab0 WHERE 8 * 58 * - 32 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -199 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- tab0\.col0\)\) 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\(\(\- tab0\.col0\)\) 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 ( - col0 ) AS col1, COUNT ( * ) AS col1 FROM tab0 query I rowsort @@ -45967,7 +45967,7 @@ SELECT DISTINCT - SUM ( DISTINCT 15 ) AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - -201 -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\(66\) \* \(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(66\) \* \(\- 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 - COUNT ( * ) AS col2, 66 * - COUNT ( * ) - COUNT ( * ) AS col2 FROM tab0 AS cor0 query II rowsort @@ -55240,7 +55240,7 @@ SELECT DISTINCT COUNT ( * ) * - MIN ( - col1 ) + COUNT ( * ) AS col0 FROM tab1 A # 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 "sum\(cor0\.col1\) 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\) 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 ( + col1 ) AS col1, COUNT ( * ) AS col1 FROM tab1 AS cor0 query I rowsort @@ -57750,7 +57750,7 @@ SELECT ALL - col2 + col0 / + col0, - col0 AS col1 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) 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 "Int64\(89\) 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 + + 89 AS col1, COUNT ( * ) + + + COUNT ( * ) AS col1 FROM tab1 AS cor0 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..1838026 100644 --- a/data/sqlite/random/aggregates/slt_good_99.slt +++ b/data/sqlite/random/aggregates/slt_good_99.slt @@ -8530,7 +8530,7 @@ SELECT 73 + - col0 + + col0 + - col2 FROM tab1 AS cor0 # 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\(Int64\(1\)\) AS count\(\*\) / count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) AS count\(\*\) / count\(Int64\(1\)\) (AS count\(\*\) )?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 COUNT ( * ) / + COUNT ( * ) AS col1, 61 col1 FROM tab2 query III 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 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\. SELECT - CAST ( NULL AS INTEGER ) col2, + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 query I rowsort label-2419 @@ -39439,7 +39439,7 @@ SELECT + MAX ( ALL + col0 ) AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 49 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 + + COUNT ( * ) AS col1, 49 AS col1 FROM tab0 AS cor0 query I rowsort @@ -40307,7 +40307,7 @@ SELECT - MIN ( + col2 ) AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 940 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \* \(\- Int64\(\-94\)\) 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\(10\) \* \(\- Int64\(\-94\)\) 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 10 * - - 94 AS col1, COUNT ( * ) AS col1 FROM tab0 AS cor0 query III rowsort label-6623 @@ -42288,7 +42288,7 @@ SELECT DISTINCT + + ( - + COUNT ( * ) ) FROM tab2 AS cor0 WHERE + col2 BETWEEN + # Datafusion - Datafusion expected results: # Datafusion - Expected - -137 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \+ \(\- sum\(tab0\.col0\)\) 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\) \+ \(\- sum\(tab0\.col0\)\) 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 + - ( + + SUM ( + col0 ) ) AS col2, + COUNT ( * ) AS col2 FROM tab0 query I rowsort @@ -47258,7 +47258,7 @@ SELECT - 89 AS col0, col0 * - col0 * + 63 AS col1, + CAST ( NULL AS INTEGER ) AS # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 62 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 + COUNT ( * ) AS col0, + 62 AS col0 FROM tab2 AS cor0 query I rowsort label-7755 @@ -50079,7 +50079,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 "max\(DISTINCT Int64\(98\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(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 "max\(DISTINCT Int64\(98\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "count\(tab1\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + MAX ( DISTINCT + ( 98 ) ) + + + COUNT ( * ) AS col1, COUNT ( col2 ) AS col1 FROM tab1 WHERE ( NOT NULL BETWEEN col1 + 8 AND NULL ) query III rowsort @@ -53834,7 +53834,7 @@ SELECT DISTINCT col1 + - - 45 + + col0 FROM tab1 AS cor0 # 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\(\*\) 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\(\*\) )?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 ( * ) AS col0, + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 query I rowsort label-8836 @@ -56264,7 +56264,7 @@ SELECT ALL + 40 - + col0 + + + col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - 4485 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(55\)\) \- \(\- Int64\(31\)\) \- count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(69\) \* 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\)\) \- \(\- Int64\(31\)\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(69\) \* Int64\(65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + 55 - - + 31 - COUNT ( * ) AS col1, 69 * + 65 AS col1 FROM tab1 cor0 query III rowsort diff --git a/data/sqlite/random/expr/slt_good_0.slt b/data/sqlite/random/expr/slt_good_0.slt index 894108f..a3d3750 100644 --- a/data/sqlite/random/expr/slt_good_0.slt +++ b/data/sqlite/random/expr/slt_good_0.slt @@ -1039,7 +1039,7 @@ SELECT ( 90 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) 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\(94\) 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 ( 94 ) AS col0, + COUNT ( * ) col0 query I rowsort label-193 @@ -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 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\. 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 @@ -5606,7 +5606,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -6389 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) \* Int64\(69\) \+ Int64\(96\) \+ count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(\-94\) \* Int64\(69\) \+ Int64\(96\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?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 - 94 * 69 + + + 96 + + COUNT ( * ) AS col2, 59 AS col2 query I rowsort @@ -5934,7 +5934,7 @@ SELECT DISTINCT + + 54 + - 64 / + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- Int64\(\-57\)\)\) \+ \(\- Int64\(\-35\)\) / Int64\(\-22\) 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\(\(\- Int64\(\-57\)\)\) \+ \(\- Int64\(\-35\)\) / Int64\(\-22\) 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 + + SUM ( - - 57 ) + - - 35 / - 22 AS col0, + COUNT ( * ) AS col0 query I rowsort label-1131 @@ -5960,7 +5960,7 @@ NULL # 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 "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(28\) \* Int64\(0\) \- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(28\) \* Int64\(0\) \- Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col0, 28 * + + 0 - 39 col0 query I rowsort label-1136 @@ -7451,7 +7451,7 @@ SELECT DISTINCT - + 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - 100 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(19\) \+ \(\- count\(Int64\(62\)\)\) / \(\- Int64\(34\) \* 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\(99\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(19\) \+ \(\- count\(Int64\(62\)\)\) / \(\- Int64\(34\) \* Int64\(90\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 99 + COUNT ( * ) AS col2, 19 + - + COUNT ( 62 ) / - ( 34 * 90 ) col2 query II rowsort @@ -16854,7 +16854,7 @@ SELECT ALL + 0 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 "\(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 ( COUNT ( * ) ) AS col2, - COUNT ( * ) * + + 74 AS col2 query I rowsort label-3224 @@ -16945,7 +16945,7 @@ SELECT DISTINCT - COUNT ( * ) * - 48 + + - 27 * + 17 * 49 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \* count\(Int64\(1\)\) AS count\(\*\) 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\(10\) \* count\(Int64\(1\)\) (AS count\(\*\) )?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 10 * COUNT ( * ) col0, 45 AS col0 query I rowsort @@ -18278,7 +18278,7 @@ SELECT - COALESCE ( + + 23, + 56 ) 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 "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CASE Int64\(53\) WHEN Int64\(\-73\) \* Int64\(\-16\) \+ Int64\(81\) \+ Int64\(35\) \* Int64\(\-17\) THEN NULL WHEN Int64\(87\) THEN NULL WHEN \(\- nullif\(\(\- CASE nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-94\)\) WHEN Int64\(19\) THEN nullif\(Int64\(62\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) END\), Int64\(\-77\) \+ Int64\(\-71\) \* Int64\(51\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(64\) / Int64\(29\) \+ Int64\(39\) ELSE Int64\(92\) / Int64\(84\) 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 Int64\(53\) WHEN Int64\(\-73\) \* Int64\(\-16\) \+ Int64\(81\) \+ Int64\(35\) \* Int64\(\-17\) THEN NULL WHEN Int64\(87\) THEN NULL WHEN \(\- nullif\(\(\- CASE nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-94\)\) WHEN Int64\(19\) THEN nullif\(Int64\(62\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) END\), Int64\(\-77\) \+ Int64\(\-71\) \* Int64\(51\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(64\) / Int64\(29\) \+ Int64\(39\) ELSE Int64\(92\) / Int64\(84\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col0, CASE + 53 WHEN - 73 * + - 16 + + + 81 + + + 35 * - 17 THEN NULL WHEN 87 THEN NULL WHEN - NULLIF ( - ( + CASE NULLIF ( - COUNT ( * ), - 94 ) WHEN + 19 THEN NULLIF ( + 62, - COUNT ( * ) ) END ), - 77 + - 71 * + 51 ) * - COUNT ( * ) THEN + 64 / 29 + + 39 ELSE 92 / 84 END AS col0 query I rowsort label-3497 @@ -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 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\. 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 @@ -19556,7 +19556,7 @@ SELECT ALL ( - 80 ) - + 21 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 153 # Datafusion - Expected - 232 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \+ Int64\(55\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-8\) \* 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\(98\) \+ Int64\(55\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-8\) \* Int64\(\-29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 98 + 55 * + COUNT ( * ) AS col2, + COUNT ( * ) * - 8 * - 29 col2 query I rowsort @@ -21628,7 +21628,7 @@ NULL # 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 "min\(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 "min\(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 + + MIN ( + 34 ) AS col2, COUNT ( * ) AS col2 query I rowsort @@ -24000,7 +24000,7 @@ SELECT - 62 * NULLIF ( - - 36, - 89 * + 2 / - + 38 - COUNT ( * ) + + - 29 / - + # 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 "Int64\(\-43\) \+ Int64\(74\) 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\(\-43\) \+ Int64\(74\) 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 - 43 + 74 AS col2, COUNT ( * ) AS col2 query I rowsort label-4592 @@ -26677,7 +26677,7 @@ SELECT + + 19 + - 76 / + NULLIF ( + 4, + 16 ) - + 14 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col0" at position 0 and "Int64\(\-86\) \+ count\(Int64\(1\)\) AS count\(\*\) \* 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\(96\) AS col0" at position 0 and "Int64\(\-86\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(20\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 96 AS col0, - 86 + + COUNT ( * ) * 20 / + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: @@ -29658,7 +29658,7 @@ SELECT 83 * + 55 AS col1 # 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\(\-4\) \+ Int64\(59\) 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\(\-4\) \+ Int64\(59\) 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 + - 4 + + 59 col2, COUNT ( * ) col2 query I rowsort label-5678 @@ -32068,7 +32068,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col2" at position 0 and "Int64\(\-9\) \+ 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\(4\) AS col2" at position 0 and "Int64\(\-9\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 4 col2, - 9 + + COUNT ( * ) AS col2 query I rowsort @@ -36300,7 +36300,7 @@ SELECT + ( + NULLIF ( 96, - SUM ( ALL + - 42 ) ) ) * - 62 # Datafusion - Datafusion expected results: # Datafusion - Expected - -31 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) \* count\(Int64\(1\)\) AS count\(\*\) 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\(\-31\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 31 * COUNT ( * ) AS col1, 92 AS col1 query I rowsort label-6952 @@ -39781,7 +39781,7 @@ SELECT - NULLIF ( - + 36, - 54 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col2" at position 0 and "\(\- sum\(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\(6\) AS col2" at position 0 and "\(\- sum\(Int64\(\-72\)\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 6 AS col2, - SUM ( - 72 ) + + + COUNT ( * ) AS col2 query II rowsort @@ -42807,7 +42807,7 @@ SELECT ALL 25 * - 10 + - 11 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5117 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \* Int64\(36\) \+ Int64\(77\) \* Int64\(52\) \+ \(\- Int64\(0\)\) \- Int64\(87\) \+ 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 "Int64\(35\) \* Int64\(36\) \+ Int64\(77\) \* Int64\(52\) \+ \(\- Int64\(0\)\) \- Int64\(87\) \+ 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 + 35 * + 36 + + + 77 * + 52 + - + 0 - + 87 + - 60 AS col2, COUNT ( * ) col2 query I rowsort @@ -43057,7 +43057,7 @@ SELECT COUNT ( * ) + + 5 * - + 36 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1649 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \* Int64\(97\) AS col2" at position 0 and "Int64\(39\) / 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\) \* Int64\(97\) AS col2" at position 0 and "Int64\(39\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 17 * + 97 AS col2, 39 / + COUNT ( * ) AS col2 query I rowsort @@ -45655,7 +45655,7 @@ SELECT + COUNT ( * ) * - 9 * + NULLIF ( + 36, + ( 1 ) + 2 * 81 ) + 73 # Datafusion - Datafusion expected results: # Datafusion - Expected - -41 # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-41\)\) \* count\(Int64\(1\)\) AS count\(\*\) 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 "sum\(Int64\(\-41\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(\-46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + SUM ( - 41 ) * COUNT ( * ) AS col0, - 46 col0 query I rowsort label-8739 @@ -49986,7 +49986,7 @@ SELECT 82, 59 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(41\)\) 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 "min\(Int64\(41\)\) 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 + MIN ( + 41 ) AS col2, COUNT ( * ) AS col2 query I rowsort @@ -51109,7 +51109,7 @@ SELECT 66 * 24, 31 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4981 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \+ Int64\(5\) \+ Int64\(81\) \* Int64\(\-62\) \- count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(37\) \+ Int64\(5\) \+ Int64\(81\) \* Int64\(\-62\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(\-81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 37 + + 5 + 81 * - 62 - COUNT ( * ) AS col0, - 81 AS col0 query I rowsort label-9782 diff --git a/data/sqlite/random/expr/slt_good_1.slt b/data/sqlite/random/expr/slt_good_1.slt index 245ddcd..9886887 100644 --- a/data/sqlite/random/expr/slt_good_1.slt +++ b/data/sqlite/random/expr/slt_good_1.slt @@ -548,7 +548,7 @@ SELECT + 10 * + + CAST ( + 27 AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -83 -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\(\-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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 COUNT ( * ) AS col0, - 83 AS col0 query I rowsort @@ -690,7 +690,7 @@ SELECT DISTINCT + 14 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 "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 "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 COUNT ( * ) AS col2, - COUNT ( * ) col2 query I rowsort @@ -1169,7 +1169,7 @@ SELECT ALL MAX ( ALL + 49 ) AS col2, ( - - ( + 44 ) ) # 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\(84\) 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\(84\) 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 84 col1, COUNT ( * ) AS col1 query I rowsort label-222 @@ -2759,7 +2759,7 @@ SELECT - 33 * 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - 85 -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\(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\(73\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 73 + COUNT ( * ) AS col0, 85 AS col0 query I rowsort @@ -22936,7 +22936,7 @@ SELECT ALL + 27 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 91 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col2, + 91 AS col2 query I rowsort @@ -23469,7 +23469,7 @@ SELECT ALL - 42 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 "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\(\-92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col2, - 92 col2 query I rowsort @@ -24860,7 +24860,7 @@ SELECT ALL 58 * - - COUNT ( * ) 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 "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\(\*\) )?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 ( * ) AS col0, - COUNT ( * ) AS col0 query I rowsort label-4874 @@ -29335,7 +29335,7 @@ SELECT + SUM ( DISTINCT + 65 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -20 # Datafusion - Expected - 1 -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\(\*\) AS col0" at position 1 have the 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\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 20 AS col0, COUNT ( * ) AS col0 query I rowsort @@ -30606,7 +30606,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # 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 "\(\- sum\(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 "\(\- sum\(Int64\(38\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) col0, - SUM ( + 38 ) AS col0 query I rowsort @@ -33662,7 +33662,7 @@ SELECT DISTINCT - 29 + + 19 * - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) 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\(11\) 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 11 AS col0, COUNT ( * ) AS col0 query I rowsort label-6593 @@ -34575,7 +34575,7 @@ SELECT ALL 10 AS col0 # Datafusion - Expected - 32 # Datafusion - Expected - 69 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(66\) \- count\(Int64\(9\)\) 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\(32\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(66\) \- count\(Int64\(9\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 32 * + COUNT ( * ) AS col2, 69, 66 - COUNT ( 9 ) AS col2 query I rowsort label-6772 @@ -46387,7 +46387,7 @@ SELECT ALL - - COUNT ( * ) * + + 68 AS col0 # 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 "count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, + 37 AS col1 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 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\. SELECT ALL - CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col1, 80 AS col1 query I rowsort @@ -47159,7 +47159,7 @@ SELECT ( + - 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 "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\(\*\) )?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 ( * ) ) col1, + COUNT ( * ) AS col1 query I rowsort @@ -47735,7 +47735,7 @@ SELECT 47 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 96 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, 96 AS col1 query I rowsort label-9339 @@ -48101,7 +48101,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - 63 -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 "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\(\-6\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 6 / COUNT ( * ) col0, 63 AS col0 query I 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 Int32\) \* CAST\(NULL AS Int32\) 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..69f6ee2 100644 --- a/data/sqlite/random/expr/slt_good_10.slt +++ b/data/sqlite/random/expr/slt_good_10.slt @@ -1715,7 +1715,7 @@ SELECT - + MIN ( + 39 ) * - COUNT ( * ) + + COUNT ( * ) / ( - 1 ) / 53 * + ( + 4 # 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 "count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(17\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, 17 AS col2 query I rowsort @@ -3809,7 +3809,7 @@ SELECT DISTINCT + 55 + + 99 + - 28 / - 53 * + - 82 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) / Int64\(64\) \+ count\(Int64\(1\)\) AS count\(\*\) 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\(\-91\) / Int64\(64\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 91 / + 64 + + ( COUNT ( * ) ) col0, + 30 AS col0 query II rowsort @@ -4016,7 +4016,7 @@ SELECT - COUNT ( * ) - + ( - - 87 ) + + + ( 37 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 63 -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\(63\), \(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "coalesce\(Int64\(63\), \(\- Int64\(\-10\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, + COALESCE ( 63, - - 10 ) AS col2 query I rowsort label-753 @@ -6791,7 +6791,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 86 -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\(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\(\*\) )?AS col2" at position 0 and "Int64\(86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col2, 86 AS col2 query II rowsort label-1286 @@ -7451,7 +7451,7 @@ SELECT 63 * + COALESCE ( 29, 56, 8 + + 0 ) - - 38 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) 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\(86\) 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 + 86 AS col0, + COUNT ( * ) AS col0 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 Int32\) 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 @@ -11491,7 +11491,7 @@ SELECT ( ( + + 37 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) 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\(21\) 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 21 AS col1, + COUNT ( * ) AS col1 query I rowsort label-2176 @@ -14837,7 +14837,7 @@ SELECT - 39 * - MAX ( 53 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -6707 -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\(\-28\) \+ Int64\(36\) \+ \(\- coalesce\(\(\- nullif\(Int64\(\-79\), Int64\(80\)\)\), Int64\(78\) \* \(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(\-28\) \+ Int64\(36\) \+ \(\- coalesce\(\(\- nullif\(Int64\(\-79\), Int64\(80\)\)\), Int64\(78\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \* Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( + COUNT ( * ) ) AS col0, - 28 + + 36 + - COALESCE ( - NULLIF ( + - 79, 80 ), + 78 * - COUNT ( * ) ) * 85 AS col0 query II rowsort label-2811 @@ -17127,7 +17127,7 @@ SELECT + 8 * 81 - + 23 * - 96 + 45 + COUNT ( * ) - + 67 / 1 + - 80 * + - 67 AS c # 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 "count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col2, 39 col2 query I rowsort label-3248 @@ -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 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\. SELECT ALL CAST ( 87 AS INTEGER ) * CAST ( 13 AS INTEGER ) AS col1, 59 * 65 * COUNT ( * ) AS col1 query I rowsort label-6820 @@ -40624,7 +40624,7 @@ SELECT 60 AS col0, + CAST ( 35 AS INTEGER ) * + 49 # 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 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\(\-80\) 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 - 80 AS col0, COUNT ( * ) AS col0 query I rowsort label-7717 @@ -40922,7 +40922,7 @@ SELECT DISTINCT - 5, COUNT ( * ) + - - COUNT ( ALL 53 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -203040 # Datafusion - Expected - -987 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(96\) \* Int64\(47\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(21\) \* 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\(45\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(96\) \* Int64\(47\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(21\) \* Int64\(\-47\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 45 * - COUNT ( * ) * + 96 * + 47 AS col0, COUNT ( * ) * + 21 * - 47 / + + COUNT ( * ) AS col0 query I rowsort label-7774 @@ -43291,7 +43291,7 @@ SELECT - 11 + - - 82 * + 54 + + 74 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) \+ \(\- nullif\(Int64\(48\), Int64\(16\) \+ Int64\(\-32\) \* \(\- Int64\(\-43\)\) \+ Int64\(41\) / Int64\(\-34\)\)\) \+ 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 "Int64\(54\) \+ \(\- nullif\(Int64\(48\), Int64\(16\) \+ Int64\(\-32\) \* \(\- Int64\(\-43\)\) \+ Int64\(41\) / Int64\(\-34\)\)\) \+ 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 54 + - NULLIF ( + 48, + + 16 + - 32 * - - 43 + + 41 / + ( - 34 ) ) + + 51 AS col0, + ( + COUNT ( * ) ) AS col0 query I rowsort label-8226 @@ -43725,7 +43725,7 @@ SELECT + 83 + 11 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 206 -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\) \+ Int64\(\-3\) \* \(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(\-70\) \+ Int64\(\-3\) \* \(\- Int64\(92\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, - 70 + + - 3 * - + 92 AS col0 query I rowsort label-8311 @@ -47969,7 +47969,7 @@ SELECT DISTINCT + 36 * + - 21 * - 3 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 Float64\) AS col1" at position 0 and "Int64\(37\) \+ 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 Float64\) AS col1" at position 0 and "Int64\(37\) \+ 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 FLOAT8 ) col1, 37 + + COUNT ( * ) col1 query I rowsort @@ -49369,7 +49369,7 @@ SELECT 94 + 40 AS col0 # Datafusion - Expected - 77 # Datafusion - Expected - 15 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \- Int64\(68\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 and "coalesce\(Int64\(78\), \(\- Int64\(28\)\), \(\- 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 "Int64\(83\) \- Int64\(68\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 and "coalesce\(Int64\(78\), \(\- Int64\(28\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 62 + + + 15, 83 - + + 68 / COUNT ( * ) AS col2, + COALESCE ( 78, - + ( + 28 ), - + COUNT ( * ) ) col2 query I rowsort label-9386 @@ -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 Int32\) 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 @@ -52097,7 +52097,7 @@ SELECT ALL + 70 AS col2, ( 26 ) * + COUNT ( - CAST ( NULL AS INTEGER ) ) / - MIN # 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 "Int64\(45\) / 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(45\) / Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( + COUNT ( * ) ) AS col0, 45 / 83 AS col0 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_100.slt b/data/sqlite/random/expr/slt_good_100.slt index 5cd9697..39f5ad1 100644 --- a/data/sqlite/random/expr/slt_good_100.slt +++ b/data/sqlite/random/expr/slt_good_100.slt @@ -1028,7 +1028,7 @@ SELECT ALL - ( + 78 ) AS col0 # 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\(94\)\) \- count\(Int64\(1\)\) AS count\(\*\) \* \(\- coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-59\)\)\) \* 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 "\(\- Int64\(94\)\) \- count\(Int64\(1\)\) AS count\(\*\) \* \(\- coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-59\)\)\) \* 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 ALL - + 94 - + COUNT ( * ) * - COALESCE ( + ( - COUNT ( * ) ), - 59 ) * 8 AS col1, + ( + COUNT ( * ) ) col1 query II rowsort @@ -4063,7 +4063,7 @@ SELECT DISTINCT - ( 86 ) AS col0 # 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\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(\-31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( COUNT ( * ) ) AS col0, - 31 AS col0 query I rowsort label-772 @@ -4126,7 +4126,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col2" at position 0 and "Int64\(\-17\) \+ 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\) AS col2" at position 0 and "Int64\(\-17\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 62 AS col2, - 17 + + + COUNT ( * ) col2 query I rowsort @@ -4926,7 +4926,7 @@ SELECT ALL - ( - 52 ) AS col0 # Datafusion - Expected - -99 # Datafusion - Expected - 1 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 "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 ( - 99 ) col2, COUNT ( * ) AS col2, 81 AS col1 query I rowsort label-936 @@ -4937,7 +4937,7 @@ SELECT DISTINCT - MAX ( + - 4 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 156 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \* Int64\(3\) 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\(52\) \* Int64\(3\) 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 52 * 3 col1, COUNT ( * ) AS col1 query I rowsort label-938 @@ -6616,7 +6616,7 @@ SELECT ALL 21 + - 7 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) 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\(74\) 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 74 AS col2, COUNT ( * ) col2 query I rowsort label-1254 @@ -10012,7 +10012,7 @@ SELECT - 3 / - 75 * + + 12 AS col2 # 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 "nullif\(Int64\(2\), Int64\(31\) \* Int64\(\-41\)\) 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\(2\), Int64\(31\) \* Int64\(\-41\)\) 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 NULLIF ( 2, 31 * - 41 ) col0, COUNT ( * ) AS col0 query I rowsort label-1895 @@ -11802,7 +11802,7 @@ SELECT COUNT ( DISTINCT - + 30 ) + + 26 + + ( ( + 42 ) ) / 34 * 71 # 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\(48\) 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\(48\) 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 48 AS col2, COUNT ( * ) AS col2 query I rowsort label-2238 @@ -12709,7 +12709,7 @@ SELECT + 21 AS col0, 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) 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\(33\) 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 + 33 AS col0, COUNT ( * ) col0 query I rowsort label-2411 @@ -13112,7 +13112,7 @@ SELECT DISTINCT 34, + CAST ( - 28 AS INTEGER ) AS col0 # 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 col2" at position 0 and "Int64\(45\) \+ \(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(45\) \+ \(\- Int64\(35\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col2, 45 + - ( + 35 ) AS col2 query I rowsort @@ -14460,7 +14460,7 @@ SELECT DISTINCT - 5 * - 92 # Datafusion - Datafusion expected results: # Datafusion - Expected - -94 # Datafusion - Expected - -5475 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-73\) \* \(\- 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\(\-94\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(\-73\) \* \(\- Int64\(\-75\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 94 / COUNT ( * ) AS col2, - 73 * - ( - 75 ) AS col2 query II rowsort label-2742 @@ -16164,7 +16164,7 @@ SELECT + COUNT ( ( - + 80 ) ) * + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -38 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) 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\(\-38\) 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 - 38 AS col1, + COUNT ( * ) col1 query I rowsort @@ -20145,7 +20145,7 @@ SELECT DISTINCT MAX ( ALL 94 ) * ( - - 41 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) 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\(95\) 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 + 95 AS col1, COUNT ( * ) col1 query I rowsort @@ -20825,7 +20825,7 @@ SELECT DISTINCT ( 53 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) 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\(\-50\) 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 - 50 col0, + COUNT ( * ) AS col0 query I rowsort label-3954 @@ -22997,7 +22997,7 @@ NULL # 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\(\-5\) \+ Int64\(65\) \* count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(\-5\) \+ Int64\(65\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(\-51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 5 + + 65 * COUNT ( * ) AS col0, - 51 col0 query II rowsort @@ -28504,7 +28504,7 @@ SELECT - - 51 + + - 28 * + - ( - 81 ) * + + COUNT ( - CAST ( NULL AS INTEGER ) ) # 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 "max\(Int64\(\-30\)\) 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 "max\(Int64\(\-30\)\) 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 + MAX ( - 30 ) AS col0, COUNT ( * ) col0 query I rowsort @@ -31373,7 +31373,7 @@ SELECT ALL - 41 * 98 * 86 / + - ( - COUNT ( * ) ) + COALESCE ( 66, - 47 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1961 -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\(53\) \* \(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(53\) \* \(\- Int64\(\-37\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col0, 53 * - ( - 37 ) AS col0 query I rowsort label-5959 @@ -33488,7 +33488,7 @@ SELECT - 19 + - 32 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(\-9\), Int64\(77\) / Int64\(99\)\)\) 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\(\-9\), Int64\(77\) / Int64\(99\)\)\) 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 ( - 9, 77 / + + 99 ) AS col0, COUNT ( * ) AS col0 query II rowsort @@ -33805,7 +33805,7 @@ SELECT - 53 col2, 50 # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col2" at position 0 and "Int64\(\-46\) \* 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\(19\) AS col2" at position 0 and "Int64\(\-46\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 19 AS col2, - 46 * + COUNT ( * ) AS col2 query I rowsort label-6419 @@ -34210,7 +34210,7 @@ SELECT ALL COALESCE ( - 84, 29 * + COUNT ( * ) * - - 72 / COUNT ( DISTINCT 24 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - -35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) 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 "Int64\(16\) 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 16 AS col1, - 35 * COUNT ( * ) AS col1 query II rowsort @@ -39692,7 +39692,7 @@ SELECT + 29 AS col2, 55 # 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 "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 "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 5 AS col2, COUNT ( * ) col2 query I rowsort @@ -40502,7 +40502,7 @@ SELECT 97 * + - 88 - - 40 - - 69 + + ( - + 92 ) * - 3 + + - 52 AS col0, - COUNT # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - -2200 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-50\)\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "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\(\-50\)\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(25\) \* Int64\(\-88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( - 50 ) / + COUNT ( * ) AS col0, 25 * + - 88 AS col0 query I rowsort @@ -41393,7 +41393,7 @@ SELECT ( - 62 ), + 9 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -33 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-33\)\) 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\(Int64\(\-33\)\) 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 + MIN ( - 33 ) AS col0, + COUNT ( * ) AS col0 query II rowsort @@ -41803,7 +41803,7 @@ SELECT 14 * - 20 * + COUNT ( * ) - + 0 + + 7 - COUNT ( * ) - - 9 * COUNT ( 64 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 "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 - 62 AS col1, COUNT ( * ) AS col1 query I rowsort label-7938 @@ -46723,7 +46723,7 @@ SELECT ALL - 74 * + 63 + - 4 AS col1 # Datafusion - Expected - 1 # Datafusion - Expected - -800 # Datafusion - Expected - -4 -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\(\-25\) \* \(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(\-25\) \* \(\- Int64\(\-32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, - 25 * ( - - 32 ) AS col0, + - 4 query I rowsort label-8879 @@ -47787,7 +47787,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -24 # Datafusion - Expected - -59850 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) AS col1" at position 0 and "Int64\(38\) \* \(\- Int64\(\-45\)\) \* 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 "Int64\(\-24\) AS col1" at position 0 and "Int64\(38\) \* \(\- Int64\(\-45\)\) \* Int64\(\-35\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( + - 24 ) AS col1, + 38 * - - 45 * - 35 * COUNT ( * ) AS col1 query I rowsort label-9082 @@ -49143,7 +49143,7 @@ SELECT ALL 98 / - + 81 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 "Int64\(91\) / \(\- \(\- Int64\(88\)\)\) \* 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\(91\) / \(\- \(\- Int64\(88\)\)\) \* 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 91 / - ( - + 88 ) * + COUNT ( * ) AS col0, - COUNT ( * ) AS col0 query I rowsort @@ -51875,7 +51875,7 @@ SELECT + COUNT ( DISTINCT - 40 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -5096 -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\(\-98\) \* 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\(\-98\) \* Int64\(52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) col0, - 98 * 52 AS col0 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_101.slt b/data/sqlite/random/expr/slt_good_101.slt index 95d78bc..aa5cfe9 100644 --- a/data/sqlite/random/expr/slt_good_101.slt +++ b/data/sqlite/random/expr/slt_good_101.slt @@ -1280,7 +1280,7 @@ SELECT + 9, 35 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 91 -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\(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 "Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col0, + 91 AS col0 query I rowsort label-240 @@ -3646,7 +3646,7 @@ SELECT ALL - MAX ( ALL - - 61 ) # 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 "Int64\(\-97\) 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\) 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 - 97 AS col2, COUNT ( * ) AS col2 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 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\. SELECT - + CAST ( COUNT ( * ) AS INTEGER ) + - 73 + 48 AS col2, - 85 * + COUNT ( * ) AS col2 query I rowsort label-1173 @@ -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 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\. 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 @@ -11067,7 +11067,7 @@ SELECT COUNT ( * ) + - 81 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\(79\) \- Int64\(65\) \+ Int64\(\-64\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-82\) \* Int64\(\-34\) \+ Int64\(60\) \+ \(\- CAST\(NULL AS Float64\)\) 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\(79\) \- Int64\(65\) \+ Int64\(\-64\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-82\) \* Int64\(\-34\) \+ Int64\(60\) \+ \(\- CAST\(NULL AS Float64\)\) 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 79 - + + 65 + - 64 + - COUNT ( * ) + - 82 * + - 34 + 60 + - CAST ( NULL AS FLOAT8 ) AS col0, COUNT ( * ) AS col0 query II rowsort label-2106 @@ -12564,7 +12564,7 @@ SELECT ALL + 96 - + 26 + + 33 * - 28 * - NULLIF ( - 14, + - 99 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -760 -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\(\-19\) \* \(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(\-19\) \* \(\- Int64\(\-40\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col2, - 19 * - - 40 AS col2 query II rowsort @@ -17443,7 +17443,7 @@ SELECT - - 74 + + ( + 98 ) + + 22 # 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 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\(49\) 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 + 49 col2, COUNT ( * ) AS col2 query I rowsort @@ -18485,7 +18485,7 @@ SELECT + 32 * - SUM ( DISTINCT + + 68 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \+ 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 "Int64\(48\) \+ 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 48 + COUNT ( * ) AS col2, 3 AS col2 # Datafusion - Datafusion expected results: @@ -23127,7 +23127,7 @@ SELECT CAST ( 0 AS INTEGER ) * + 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 55 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, + 55 AS col2 query I rowsort @@ -30875,7 +30875,7 @@ SELECT ALL + 17 / - 96 col1 # 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 "count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-39\) 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\(\-39\) 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 ( * ) ) / - 39 AS col1, + COUNT ( * ) AS col1 query I rowsort @@ -31733,7 +31733,7 @@ SELECT DISTINCT - COUNT ( * ) * 67 - NULLIF ( - 64, MIN ( + ( + + 95 ) ) ) AS co # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -80 -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\(80\)\), \(\- max\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "coalesce\(\(\- Int64\(80\)\), \(\- max\(Int64\(0\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col1, COALESCE ( - + 80, - MAX ( - 0 ) ) col1 query II rowsort label-6032 @@ -31992,7 +31992,7 @@ SELECT + 52 / - 72 * + ( + COALESCE ( + 80, + + 31 * + NULLIF ( 29, - + COUNT ( # 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 "\(\- Int64\(\-76\)\) \- 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 "\(\- Int64\(\-76\)\) \- 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 - - 76 - - 21 AS col0, + COUNT ( * ) AS col0 query I rowsort label-6081 @@ -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 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\. SELECT DISTINCT - 84 / - + CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col0, ( - ( + 66 ) ) - - 91 * + + 59 AS col0 query I rowsort label-6407 @@ -36591,7 +36591,7 @@ SELECT DISTINCT ( - COALESCE ( + + 62, + COUNT ( * ), + 55 ) ) * 14 # 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 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\(43\) 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 43 AS col2, COUNT ( * ) col2 query I rowsort label-6960 @@ -36875,7 +36875,7 @@ SELECT - 89 + 87 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-33\)\) 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\(\-33\)\) 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 - - 33 col1, + COUNT ( * ) AS col1 query I rowsort label-7015 @@ -36898,7 +36898,7 @@ SELECT ALL - - 77 AS col1, 48 * - COUNT ( * ) AS col1 # Datafusion - Expected - -39 # Datafusion - Expected - 29 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) AS col0" at position 0 and "Int64\(29\) \* 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\(\-39\) AS col0" at position 0 and "Int64\(29\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 39 AS col0, 29 * + ( COUNT ( * ) ) AS col0, 10 query I rowsort label-7019 @@ -37700,7 +37700,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) 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\(69\) 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 69 AS col1, COUNT ( * ) col1 query I rowsort label-7170 @@ -38434,7 +38434,7 @@ SELECT - COUNT ( * ) + + + 68 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -46 -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\(\-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\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-47\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, + COUNT ( * ) + + - 47 AS col0 query I rowsort label-7311 @@ -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 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\. SELECT SUM ( DISTINCT 13 ) + - - CAST ( NULL AS INTEGER ) * + 66 + + 97 AS col1, COUNT ( * ) AS col1 query I rowsort @@ -43262,7 +43262,7 @@ SELECT ALL NULLIF ( + ( + 87 ), - - CAST ( NULL AS INTEGER ) / - 73 - + ( - 64 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -57 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) \+ 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\(\-58\) \+ 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 - 58 + + 1 AS col0, COUNT ( * ) AS col0 query I rowsort @@ -45258,7 +45258,7 @@ SELECT ALL + COUNT ( * ) * + - 95 # Datafusion - Datafusion expected results: # Datafusion - Expected - -63 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) 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\(\-63\) 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 - 63 AS col0, COUNT ( * ) AS col0 query I rowsort @@ -46797,7 +46797,7 @@ SELECT + NULLIF ( 29, + - 87 / + COUNT ( * ) ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 65 -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\(65\) / 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 "Int64\(65\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col0, + 65 / + COUNT ( * ) AS col0 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_102.slt b/data/sqlite/random/expr/slt_good_102.slt index b9cf5db..d7b94ae 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 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\. 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 @@ -1781,7 +1781,7 @@ SELECT ALL + + ( - - 58 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 129 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(15\) \+ \(\- \(\- Int64\(94\)\)\) \+ Int64\(10\) \- Int64\(\-40\) \* count\(Int64\(6\)\) 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\(15\) \+ \(\- \(\- Int64\(94\)\)\) \+ Int64\(10\) \- Int64\(\-40\) \* count\(Int64\(6\)\) 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 ( * ) * 15 + - ( - + 94 ) + 10 - + ( - 40 ) * + COUNT ( + 6 ) AS col1, COUNT ( * ) AS col1 query I rowsort label-331 @@ -1978,7 +1978,7 @@ NULL # 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\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(5\) / 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\(0\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(5\) / Int64\(\-64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 0 / + COUNT ( * ) AS col1, 5 / - 64 AS col1 query I rowsort label-369 @@ -2625,7 +2625,7 @@ SELECT ALL ( 24 ) * 30 + - - 33 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -71497 -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\(28\)\), Int64\(29\) \+ \(\- \(\- min\(\(\- Int64\(\-81\)\)\)\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(27\)\) \* Int64\(\-26\) \* Int64\(\-93\) \+ Int64\(\-88\) \+ Int64\(\-65\) \* Int64\(\-57\) \* \(\- 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 "coalesce\(\(\- Int64\(28\)\), Int64\(29\) \+ \(\- \(\- min\(\(\- Int64\(\-81\)\)\)\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(27\)\) \* Int64\(\-26\) \* Int64\(\-93\) \+ Int64\(\-88\) \+ Int64\(\-65\) \* Int64\(\-57\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, COALESCE ( - + 28, + 29 + - - MIN ( - - 81 ), - + COUNT ( * ) + + 27 ) * - 26 * - 93 + + - 88 + - 65 * - 57 * ( - + COUNT ( * ) ) AS col0 query I rowsort @@ -3702,7 +3702,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 320 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-40\)\) \* Int64\(8\) / count\(Int64\(1\)\) AS count\(\*\) 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 "\(\- Int64\(\-40\)\) \* Int64\(8\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 40 * + ( + 8 ) / + COUNT ( * ) col2, 72 AS col2 query I rowsort label-696 @@ -10130,7 +10130,7 @@ SELECT DISTINCT + 44 + + 54, COUNT ( * ) + + 53 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -19 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) 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\(\-19\) 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 - 19 col2, COUNT ( * ) AS col2 query I rowsort @@ -14039,7 +14039,7 @@ SELECT DISTINCT 12 * + 67 * + + 51 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -87 # Datafusion - Expected - -143 -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 "Int64\(\-66\) \+ Int64\(\-1\) \* 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\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(\-66\) \+ Int64\(\-1\) \* Int64\(77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( + 87 ) * COUNT ( * ) col0, - 66 + - 1 * 77 AS col0 query I rowsort @@ -14136,7 +14136,7 @@ SELECT + 4 * + 35 - - 30 + + 36 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -74 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(80\) \* Int64\(1\) \+ Int64\(11\)\) / min\(DISTINCT Int64\(\-34\)\) \+ Int64\(\-74\) 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\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(80\) \* Int64\(1\) \+ Int64\(11\)\) / min\(DISTINCT Int64\(\-34\)\) \+ Int64\(\-74\) 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 NULLIF ( + - COUNT ( * ), 80 * 1 + + 11 ) / MIN ( DISTINCT - 34 ) + - 74 AS col0, + COUNT ( * ) col0 query I rowsort label-2673 @@ -16560,7 +16560,7 @@ SELECT + 10 * + 89 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - -40 -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\(\-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\(47\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(\-40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 47 * COUNT ( * ) AS col2, - 40 AS col2 query I rowsort label-3135 @@ -16975,7 +16975,7 @@ SELECT ALL - 72 + - - 81 AS col2, - 23 / + + 99 + 93 # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col0, 89 AS col0 query II rowsort @@ -18963,7 +18963,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 765 -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\(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\(\*\) )?AS col0" at position 0 and "Int64\(\-85\) \* \(\- Int64\(9\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col0, - 85 * - + 9 AS col0 query I rowsort label-3592 @@ -26857,7 +26857,7 @@ SELECT DISTINCT + CAST ( - + 3 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 50 -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\(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\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col2, + 50 AS col2 query I rowsort label-5092 @@ -28084,7 +28084,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 82 -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\(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 "Int64\(82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, 82 col1 query I rowsort label-5326 @@ -30358,7 +30358,7 @@ SELECT - MAX ( ALL COALESCE ( - 17, 10 ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -102816 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) \* \(\- Int64\(63\)\) \* Int64\(\-48\) AS col2" at position 0 and "Int64\(78\) \* 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\(\-34\) \* \(\- Int64\(63\)\) \* Int64\(\-48\) AS col2" at position 0 and "Int64\(78\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 34 * - + 63 * - 48 AS col2, 78 * + + COUNT ( * ) AS col2 query I rowsort @@ -31240,7 +31240,7 @@ SELECT 35 + + + 43 AS col2 # 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 "\(\- Int64\(60\)\) 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\(60\)\) 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 - + 60 AS col0, + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: @@ -38374,7 +38374,7 @@ SELECT 28 * + 24 + - 23 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col2" at position 0 and "Int64\(\-4\) \+ 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\(82\) AS col2" at position 0 and "Int64\(\-4\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 82 AS col2, - 4 + COUNT ( * ) AS col2 query I rowsort label-7276 @@ -40140,7 +40140,7 @@ SELECT ALL 51 * - 49 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 93 -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\(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\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) col2, 93 AS col2 query II rowsort label-7608 @@ -41411,7 +41411,7 @@ SELECT + - 77 + - 28 # 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 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\(\*\)\)\) 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 ( * ) AS col2, COUNT ( * ) AS col2 query I rowsort label-7849 @@ -42767,7 +42767,7 @@ SELECT + 69 + - + 21 * - NULLIF ( 35, - 83 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 134 -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\(85\) \+ 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(85\) \+ Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, 85 + + 49 AS col1 # Datafusion - Types were automatically converted from: @@ -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 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\. 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 @@ -47066,7 +47066,7 @@ SELECT 69, - 60 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) 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\(68\) 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 + 68 AS col1, COUNT ( * ) AS col1 query I rowsort @@ -48382,7 +48382,7 @@ SELECT DISTINCT MIN ( 10 ) / - - ( 65 ) # 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\(18\) / Int64\(61\) 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\(18\) / Int64\(61\) 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 + 18 / + 61 AS col1, COUNT ( * ) AS col1 query I rowsort label-9180 diff --git a/data/sqlite/random/expr/slt_good_103.slt b/data/sqlite/random/expr/slt_good_103.slt index 83b1ee2..d317536 100644 --- a/data/sqlite/random/expr/slt_good_103.slt +++ b/data/sqlite/random/expr/slt_good_103.slt @@ -71,7 +71,7 @@ SELECT - 38 + + ( + + 37 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col2" at position 0 and "Int64\(55\) \* 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\(55\) AS col2" at position 0 and "Int64\(55\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 55 AS col2, 55 * + ( + COUNT ( * ) ) AS col2 query I rowsort label-7 @@ -4514,7 +4514,7 @@ SELECT ( 6 ) - + - COUNT ( * ) # 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 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\(23\) 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 23 AS col2, + COUNT ( * ) AS col2 query I rowsort @@ -5484,7 +5484,7 @@ SELECT ALL + - 45 + 23 + - 6 col1 # 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 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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 COUNT ( * ) col2, + 10 AS col2 query I rowsort label-1034 @@ -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 Int32\) / 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 Int32\) \* 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 @@ -10974,7 +10974,7 @@ SELECT + COALESCE ( + COUNT ( * ), - 46 ) 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 "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\(\-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 ALL - 1 AS col0, + COUNT ( * ) AS col0 query I rowsort @@ -12598,7 +12598,7 @@ SELECT ALL ( + 6 ) * + 59 AS col2 # 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\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, 85 AS col1 query II rowsort label-2392 @@ -12903,7 +12903,7 @@ SELECT 0 * + 19 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -3761 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) / Int64\(26\) AS col1" at position 0 and "Int64\(66\) \* \(\- Int64\(57\)\) \+ 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\(36\) / Int64\(26\) AS col1" at position 0 and "Int64\(66\) \* \(\- Int64\(57\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( + 36 ) / + 26 AS col1, + 66 * - + 57 + + COUNT ( * ) AS col1 # Datafusion - Types were automatically converted from: @@ -12975,7 +12975,7 @@ SELECT ALL - 27 * + 77 + + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 119808 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \+ Int64\(\-26\) \* Int64\(48\) \* \(\- coalesce\(Int64\(96\), Int64\(62\) \+ Int64\(92\)\)\) 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\(0\) \+ Int64\(\-26\) \* Int64\(48\) \* \(\- coalesce\(Int64\(96\), Int64\(62\) \+ Int64\(92\)\)\) 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 - 0 + - 26 * + 48 * - + COALESCE ( 96, ( 62 ) + 92 ) AS col2, ( COUNT ( * ) ) AS col2 query I rowsort @@ -13029,7 +13029,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -33 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) 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\(\-33\) 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 - 33 AS col2, COUNT ( * ) col2 query I rowsort label-2474 @@ -13619,7 +13619,7 @@ SELECT DISTINCT NULLIF ( + NULLIF ( 90, + + 89 ), - COUNT ( * ) ) + COUNT ( + ( # Datafusion - Datafusion expected results: # Datafusion - Expected - -89 # Datafusion - Expected - 1323 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \+ \(\- \(\- Int64\(\-92\)\)\) AS col1" at position 0 and "Int64\(21\) \* 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\(3\) \+ \(\- \(\- Int64\(\-92\)\)\) AS col1" at position 0 and "Int64\(21\) \* Int64\(63\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 3 + - - ( + - 92 ) AS col1, + 21 * 63 * + COUNT ( * ) AS col1 query I rowsort label-2587 @@ -17201,7 +17201,7 @@ SELECT - COALESCE ( + - 25, + - COUNT ( * ) + + 18, + - 72 * + 48 - - 48, 60 ) / # 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\) \+ count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-26\) 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\(\-49\) \+ count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-26\) 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 - 49 + + COUNT ( * ) / + - 26 AS col0, COUNT ( * ) AS col0 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 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\. 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 @@ -23619,7 +23619,7 @@ SELECT NULLIF ( + + 74, + 0 * + 39 - - 57 / + - 98 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 79 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 + COUNT ( * ) AS col2, 79 col2 query II rowsort @@ -25873,7 +25873,7 @@ SELECT ALL - NULLIF ( 23, 67 ) / + 91 + - - 35 - + 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) \+ \(\- Int64\(4\)\) \- \(\- sum\(DISTINCT Int64\(65\)\)\) \* Int64\(2\) \- Int64\(49\) \- Int64\(46\) 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\(59\) \+ \(\- Int64\(4\)\) \- \(\- sum\(DISTINCT Int64\(65\)\)\) \* Int64\(2\) \- Int64\(49\) \- Int64\(46\) 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 59 + - + 4 - - SUM ( DISTINCT 65 ) * + 2 - 49 - + 46 AS col1, COUNT ( * ) AS col1 query II rowsort label-4914 @@ -27542,7 +27542,7 @@ SELECT ALL 65 + 31 + + NULLIF ( - 15, - 59 / - 67 + - 44 + + - 61 / 72 + + - 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(79\)\) \- 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\(96\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "count\(Int64\(79\)\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 96 + + COUNT ( * ) AS col1, COUNT ( + + 79 ) - + COUNT ( * ) AS col1 query I rowsort label-5231 @@ -27656,7 +27656,7 @@ SELECT 31 + 36 # Datafusion - Datafusion expected results: # Datafusion - Expected - -18 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(18\)\) \* count\(Int64\(1\)\) AS count\(\*\) 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 "\(\- Int64\(18\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - ( + 18 ) * + COUNT ( * ) AS col2, 74 AS col2 query I rowsort label-5253 @@ -30507,7 +30507,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 23 -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\(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\(\*\) )?AS col0" at position 0 and "Int64\(23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) col0, ( 23 ) AS col0 query I rowsort @@ -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 Int32\) 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 @@ -33779,7 +33779,7 @@ SELECT ALL - 71 * - + COUNT ( * ) * - 28 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) / \(\- Int64\(10\)\) AS col0" at position 0 and "Int64\(\-20\) / 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\(58\) / \(\- Int64\(10\)\) AS col0" at position 0 and "Int64\(\-20\) / Int64\(\-67\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 58 / - + 10 col0, - 20 / - 67 * COUNT ( * ) AS col0 query I rowsort @@ -34463,7 +34463,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - -98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) \- Int64\(\-55\) \+ count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(\-33\) \- Int64\(\-55\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(\-98\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 33 - + - 55 + COUNT ( * ) AS col1, - 98 AS col1 query I rowsort label-6547 @@ -35232,7 +35232,7 @@ SELECT ALL 69 + - MIN ( + + 71 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -4575 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \+ Int64\(62\) \+ Int64\(42\) \+ Int64\(\-51\) \* Int64\(92\) 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\(13\) \+ Int64\(62\) \+ Int64\(42\) \+ Int64\(\-51\) \* Int64\(92\) 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 13 + + 62 + ( 42 ) + ( + - 51 ) * + 92 AS col0, COUNT ( * ) col0 query II rowsort label-6692 @@ -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 Int32\) 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 @@ -40415,7 +40415,7 @@ SELECT 15 + + 43 # 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 "max\(Int64\(0\)\) / Int64\(\-76\) 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\(Int64\(0\)\) / Int64\(\-76\) 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 MAX ( ALL 0 ) / - 76 AS col1, COUNT ( * ) AS col1 # Datafusion - Types were automatically converted from: @@ -41772,7 +41772,7 @@ SELECT + + 29 / - 89 + - 22 + + MAX ( + - 65 ) AS col1 # Datafusion - Expected - 1 # Datafusion - Expected - 46 # Datafusion - Expected - -70 -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\(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\(\*\) )?AS col0" at position 0 and "Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, + 46 col0, + - 70 AS col2 query I rowsort label-7941 @@ -44267,7 +44267,7 @@ SELECT 62 * - CAST ( - 1 AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 98 -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\(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 "Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, 98 AS col2 query I rowsort @@ -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 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\. SELECT DISTINCT + 47 + + - CAST ( NULL AS INTEGER ) + 48 + - 27 col0, - 99 + COUNT ( * ) AS col0 query I rowsort label-8571 @@ -45184,7 +45184,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 16 -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\(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\(\*\) )?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 ( * ) AS col1, + 16 AS col1 query I rowsort @@ -47106,7 +47106,7 @@ SELECT 49 * + 7 + 28 + 94 * + 74 + - - 23 AS col1, 23 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 55 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, 55 AS col2 query I rowsort @@ -50644,7 +50644,7 @@ SELECT + 35 * + + 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - 1 -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\(\*\) AS col0" at position 1 have the 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\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 98 col0, COUNT ( * ) AS col0 query I rowsort @@ -51133,7 +51133,7 @@ SELECT DISTINCT + ( 71 ) * + + MIN ( 97 ) AS col1 # 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\(\-7\) \+ Int64\(25\) 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\) \+ Int64\(25\) 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 + + 25 AS col1, COUNT ( * ) AS col1 query I rowsort @@ -51267,13 +51267,13 @@ SELECT DISTINCT COUNT ( * ) + - COUNT ( - 75 ) * + 68 + - - ( - CAST ( + - ( - 3 # 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 "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\(\*\) )?AS col1" at position 0 and "Int64\(\-1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COUNT ( * ) AS col1, - 1 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-21\)\) AS col2" at position 0 and "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 "\(\- Int64\(\-21\)\) AS col2" at position 0 and "Int64\(\-37\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - 21 AS col2, - 37 * COUNT ( * ) AS col2 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_104.slt b/data/sqlite/random/expr/slt_good_104.slt index 9e2c394..90d7099 100644 --- a/data/sqlite/random/expr/slt_good_104.slt +++ b/data/sqlite/random/expr/slt_good_104.slt @@ -1050,7 +1050,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 96 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col2, + 96 col2 query I rowsort @@ -2552,7 +2552,7 @@ SELECT 7 + - - ( COUNT ( * ) ) # Datafusion - Expected - 92 # 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 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) 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 ALL + 16 + 76 AS col0, - COUNT ( * ) AS col1, + + COUNT ( * ) AS col1 query I rowsort @@ -4088,7 +4088,7 @@ SELECT DISTINCT 34 + 28 - + 13 / 16 * - 79 # Datafusion - Expected - 1 # Datafusion - Expected - 48 # Datafusion - Expected - 23 -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\(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\(\*\) )?AS col0" at position 0 and "Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col0, 48 AS col0, + 23 AS col2 query I rowsort @@ -4599,7 +4599,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -94 # Datafusion - Expected - 10 -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\) \+ 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 "Int64\(9\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 94 col0, + 9 + COUNT ( * ) AS col0 query II rowsort @@ -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 Int32\)\)\) 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: @@ -9910,7 +9910,7 @@ SELECT MAX ( + 76 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 5428 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) \* Int64\(92\) 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\(59\) \* Int64\(92\) 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 59 * 92 AS col2, COUNT ( * ) AS col2 query I rowsort @@ -10226,7 +10226,7 @@ SELECT DISTINCT + MAX ( - 98 ) AS col0 # 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 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) col1, + 92 AS col1 query I rowsort label-1934 @@ -10521,7 +10521,7 @@ SELECT ( - COUNT ( * ) ) + + 32 + + 75 / 77 # 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 "Int64\(97\) 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\(97\) 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 97 AS col0, COUNT ( * ) AS col0 query I rowsort label-1990 @@ -11412,7 +11412,7 @@ SELECT - CAST ( - 34 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) 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\(58\) 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 58 AS col0, COUNT ( * ) AS col0 query I rowsort label-2159 @@ -12035,7 +12035,7 @@ SELECT ALL - ( + ( - 30 ) ) + + + 41 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(50\) \+ 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\(\-96\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(50\) \+ Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 96 + + + COUNT ( * ) AS col2, 50 + 26 AS col2 query I rowsort label-2279 @@ -12829,7 +12829,7 @@ SELECT ALL 92 + - - 23 * - CAST ( - 43 AS INTEGER ) + 61 + - 83 * + + 82 * + 48 # 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 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\(\-42\) 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 - 42 AS col2, COUNT ( * ) AS col2 query I rowsort label-2430 @@ -14313,7 +14313,7 @@ SELECT 1 / + ( - 85 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) \+ Int64\(69\) \+ 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\(4\) \+ Int64\(69\) \+ 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 DISTINCT + 4 + 69 + + + COUNT ( * ) AS col0, + COUNT ( * ) AS col0 query I rowsort label-2712 @@ -17842,7 +17842,7 @@ SELECT - - 76 * 21 * 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - 1607 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(82\), \(\- Int64\(4\)\)\) AS col1" at position 0 and "Int64\(41\) \* Int64\(37\) \+ 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 "nullif\(Int64\(82\), \(\- Int64\(4\)\)\) AS col1" at position 0 and "Int64\(41\) \* Int64\(37\) \+ Int64\(89\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + NULLIF ( 82, - + 4 ) AS col1, 41 * + 37 + 89 + + + COUNT ( * ) AS col1 query I rowsort label-3389 @@ -19097,7 +19097,7 @@ SELECT ALL + 25 + - 55 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 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\(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 ALL 51 AS col0, + COUNT ( * ) AS col0 query I rowsort @@ -19889,7 +19889,7 @@ SELECT ALL 6 / 95 col2, MIN ( + COALESCE ( + 47, - 43 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "nullif\(Int64\(41\), CAST\(NULL AS Float64\) \+ 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\(12\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "nullif\(Int64\(41\), CAST\(NULL AS Float64\) \+ Int64\(92\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 12 * + + COUNT ( * ) AS col0, NULLIF ( + 41, CAST ( NULL AS FLOAT8 ) + 92 ) AS col0 query I rowsort label-3781 @@ -20874,7 +20874,7 @@ SELECT ALL - 31 + + 54 # Datafusion - Datafusion expected results: # Datafusion - Expected - -36 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \+ Int64\(\-67\) \+ 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 "Int64\(30\) \+ Int64\(\-67\) \+ 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 30 + - 67 + COUNT ( * ) AS col1, - COUNT ( * ) AS col1 query II rowsort @@ -25714,7 +25714,7 @@ SELECT + COUNT ( * ) / - + COUNT ( * ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3385 # Datafusion - Expected - 5806 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) \* min\(Int64\(94\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- sum\(Int64\(\-70\)\)\) \* Int64\(84\) \+ \(\- count\(Int64\(85\)\)\) \+ 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\(36\) \* min\(Int64\(94\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "\(\- sum\(Int64\(\-70\)\)\) \* Int64\(84\) \+ \(\- count\(Int64\(85\)\)\) \+ Int64\(\-73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 36 * + MIN ( ALL + 94 ) + COUNT ( * ) AS col0, ( - ( + SUM ( - 70 ) ) ) * + + 84 + - + COUNT ( ALL + 85 ) + - 73 AS col0 query I rowsort @@ -28651,7 +28651,7 @@ SELECT ALL - - SUM ( 1 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 127 -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 "min\(\(\- Int64\(\-28\)\)\) \+ \(\- nullif\(Int64\(\-99\), Int64\(9\) \* Int64\(\-49\) \* \(\- Int64\(12\)\) \- 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 "min\(\(\- Int64\(\-28\)\)\) \+ \(\- nullif\(Int64\(\-99\), Int64\(9\) \* Int64\(\-49\) \* \(\- Int64\(12\)\) \- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, MIN ( - - 28 ) + - NULLIF ( - 99, + 9 * - 49 * - ( + 12 ) - + + COUNT ( * ) ) AS col2 query I rowsort label-5449 @@ -32374,7 +32374,7 @@ SELECT 7 * - 61 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -3300 -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\(\-44\) \* 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\(\*\) )?AS col2" at position 0 and "Int64\(\-44\) \* Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, - 44 * 75 AS col2 query II rowsort @@ -32680,7 +32680,7 @@ SELECT ALL - 46, - 79 * + 97 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 190 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \+ Int64\(46\) \+ Int64\(87\) 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\(57\) \+ Int64\(46\) \+ Int64\(87\) 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 57 + 46 + + 87 AS col1, COUNT ( * ) AS col1 query I rowsort label-6218 @@ -37800,7 +37800,7 @@ SELECT - - 70 * + 52 + - 59 * + + CAST ( + 71 AS INTEGER ) + - 61 AS col2 # 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\(48\) 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\(48\) 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 48 AS col1, + COUNT ( * ) AS col1 query I rowsort label-7188 @@ -38770,7 +38770,7 @@ SELECT 27 * + MIN ( DISTINCT - 9 ) * + 97 * + + COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1769 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) \* Int64\(\-52\) \+ count\(Int64\(1\)\) AS count\(\*\) 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\(\-34\) \* Int64\(\-52\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(60\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 34 * - 52 + + + COUNT ( * ) AS col2, 60 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 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\. 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 @@ -39847,7 +39847,7 @@ SELECT + COUNT ( * ) / - 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - -44 # Datafusion - Expected - -144 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) \+ Int64\(49\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-80\) \+ Int64\(\-1\) \- 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\(\-94\) \+ Int64\(49\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(\-80\) \+ Int64\(\-1\) \- Int64\(63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 94 + + 49 + COUNT ( * ) AS col1, - 80 + + - 1 - 63 AS col1 query I rowsort @@ -44960,7 +44960,7 @@ SELECT DISTINCT - + 82 + + - 91 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \* count\(Int64\(1\)\) AS count\(\*\) 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\(81\) \* count\(Int64\(1\)\) (AS count\(\*\) )?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 + 81 * COUNT ( * ) AS col1, 19 AS col1 query II rowsort @@ -47360,7 +47360,7 @@ SELECT ALL CAST ( 0 AS INTEGER ) / + - NULLIF ( + 7, 39 ) AS col1 # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col0, + 53 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 Int32\) \+ 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 @@ -51324,7 +51324,7 @@ SELECT ALL NULLIF ( - 38, + + SUM ( DISTINCT + - 78 ) ) + - 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) 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\(86\) 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 86 AS col1, + COUNT ( * ) col1 query I rowsort label-9769 @@ -52108,7 +52108,7 @@ SELECT ALL - - 72 + 78 # 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 "Int64\(\-30\) 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\(\-30\) 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 - 30 AS col1, COUNT ( * ) AS col1 query I rowsort label-9920 diff --git a/data/sqlite/random/expr/slt_good_105.slt b/data/sqlite/random/expr/slt_good_105.slt index b4c634c..e9e39ca 100644 --- a/data/sqlite/random/expr/slt_good_105.slt +++ b/data/sqlite/random/expr/slt_good_105.slt @@ -1023,7 +1023,7 @@ SELECT - 21 AS col2, - 57 * 94 * 5 + - 20 + + - 34 * COALESCE ( + 65, 56, - 97 - # 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\(41\) / Int64\(\-90\) AS col1" at position 0 and "Int64\(27\) \+ 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\(41\) / Int64\(\-90\) AS col1" at position 0 and "Int64\(27\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 41 / ( + - 90 ) AS col1, + 27 + + + COUNT ( * ) AS col1 query I rowsort label-186 @@ -6799,7 +6799,7 @@ SELECT ( + - 21 ) + + 73 # Datafusion - Datafusion expected results: # Datafusion - Expected - -21 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 "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 - 21 AS col0, COUNT ( * ) AS col0 query II rowsort @@ -8897,7 +8897,7 @@ SELECT DISTINCT + MIN ( + 80 ) + - 17 + 85 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5076 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) \- Int64\(74\) \+ Int64\(95\) \* Int64\(54\) 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\(20\) \- Int64\(74\) \+ Int64\(95\) \* Int64\(54\) 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 + 20 - 74 + 95 * 54 AS col1, COUNT ( * ) AS col1 query II rowsort label-1688 @@ -8959,7 +8959,7 @@ SELECT - 31 * + + SUM ( DISTINCT 51 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -63 -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\(\-50\) \+ \(\- \(\- 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\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(\-50\) \+ \(\- \(\- Int64\(\-13\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) col2, - 50 + - - ( + - 13 ) AS col2 query I rowsort label-1700 @@ -9486,7 +9486,7 @@ SELECT DISTINCT 37 + - CAST ( + - 56 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -30912 -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\(96\) \* Int64\(46\) \* 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\(\*\) )?AS col2" at position 0 and "Int64\(96\) \* Int64\(46\) \* Int64\(\-7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col2, 96 * + 46 * + - 7 AS col2 query I rowsort label-1800 @@ -10204,7 +10204,7 @@ SELECT 68 * + SUM ( - 46 ) + + - 26 + + + 96 + - 66 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-62\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "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\(\-62\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 62 + + COUNT ( * ) AS col0, 55 AS col0 query I rowsort @@ -14710,7 +14710,7 @@ SELECT ALL - 3 * - 6 - - + 0 AS col0, 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2358 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \* Int64\(\-33\) \+ Int64\(51\) 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\(73\) \* Int64\(\-33\) \+ Int64\(51\) 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 73 * - 33 + + 51 AS col1, + COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: @@ -17100,7 +17100,7 @@ SELECT ALL 22 * + 13 * 93 * + 13 + + ( + 56 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 52650 -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 Int64\(\-31\) WHEN coalesce\(Int64\(\-39\), Int64\(18\) \+ Int64\(\-71\)\) THEN NULL ELSE Int64\(25\) END\) \* Int64\(\-27\) \* 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "\(\- CASE Int64\(\-31\) WHEN coalesce\(Int64\(\-39\), Int64\(18\) \+ Int64\(\-71\)\) THEN NULL ELSE Int64\(25\) END\) \* Int64\(\-27\) \* Int64\(78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col0, + ( - CASE + - 31 WHEN + COALESCE ( - 39, + + 18 + - 71 ) THEN NULL ELSE 25 END ) * - 27 * + 78 AS col0 query I rowsort @@ -17168,7 +17168,7 @@ SELECT - 41 * + 79 AS col2 # 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\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 + COUNT ( * ) AS col0, 85 AS col0 query I rowsort @@ -23676,7 +23676,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -2383 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) \+ Int64\(\-25\) \* Int64\(93\) 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\) \+ Int64\(\-25\) \* Int64\(93\) 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 ( - 58 ) + - 25 * + 93 AS col1, + COUNT ( * ) col1 query I rowsort @@ -26577,7 +26577,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1710 -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\(\-19\) \* 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(\-19\) \* Int64\(\-90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, - 19 * - 90 AS col1 query II rowsort @@ -32047,7 +32047,7 @@ SELECT ALL + NULLIF ( - - 36, - COUNT ( * ) + - COUNT ( * ) * + 62 + + 37 ) AS c # Datafusion - Datafusion expected results: # Datafusion - Expected - 3599 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) \* Int64\(61\) 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\(59\) \* Int64\(61\) 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 ( 59 ) * + + 61 AS col0, COUNT ( * ) AS col0 query I rowsort @@ -35743,7 +35743,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 4158 -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\(63\) \* 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(63\) \* Int64\(66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col2, 63 * + 66 AS col2 query I rowsort label-6789 @@ -36054,7 +36054,7 @@ SELECT ALL - COALESCE ( - NULLIF ( - ( + 86 ), + 34 + - 55 ), 19 * + + 48 - 4, - # Datafusion - Datafusion expected results: # Datafusion - Expected - 65 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-65\)\) 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\(\-65\)\) 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 - - 65 AS col0, COUNT ( * ) AS col0 query II rowsort label-6848 @@ -43760,7 +43760,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -36 -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 "\(\- nullif\(Int64\(36\), avg\(\(\- \(\- 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\(\*\) )?AS col0" at position 0 and "\(\- nullif\(Int64\(36\), avg\(\(\- \(\- Int64\(79\)\)\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col0, + ( + - NULLIF ( 36, AVG ( ALL - - ( 79 ) ) ) ) AS col0 query II rowsort label-8311 @@ -44750,7 +44750,7 @@ SELECT ALL + - 6 / CAST ( - 47 AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -104398 # 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\(\*\) \+ Int64\(\-40\) \* Int64\(45\) \* Int64\(58\) 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\(\*\) \+ Int64\(\-40\) \* Int64\(45\) \* Int64\(58\) 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 ( * ) + - 40 * 45 * 58 col0, COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: @@ -52220,7 +52220,7 @@ SELECT DISTINCT 88 + 80 # 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 "Int64\(4\) \- 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\(\*\) )?AS col2" at position 0 and "Int64\(4\) \- Int64\(\-80\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, 4 - + - 80 AS col2 query I rowsort @@ -52565,7 +52565,7 @@ SELECT - MIN ( DISTINCT - 49 ) * + 51, - 71 AS col1 # 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 "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "nullif\(Int64\(28\), 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\(\*\) )?AS col0" at position 0 and "nullif\(Int64\(28\), Int64\(23\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col0, NULLIF ( 28, + 23 ) AS col0 query I rowsort label-9986 diff --git a/data/sqlite/random/expr/slt_good_106.slt b/data/sqlite/random/expr/slt_good_106.slt index c184f38..d8f288a 100644 --- a/data/sqlite/random/expr/slt_good_106.slt +++ b/data/sqlite/random/expr/slt_good_106.slt @@ -5819,7 +5819,7 @@ SELECT 86 - 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) 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\(36\) 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 36 AS col1, + COUNT ( * ) col1 query I rowsort @@ -6480,7 +6480,7 @@ SELECT DISTINCT + 35 * - + 73 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -30 # Datafusion - Expected - 188 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(31\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(99\) \+ 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\(31\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(99\) \+ Int64\(89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - ( + 31 ) + + COUNT ( * ) AS col2, 99 + 89 AS col2 query II rowsort @@ -6728,7 +6728,7 @@ SELECT ALL 82 AS col2, 7 * + 8 + - - 16 # Datafusion - Datafusion expected results: # Datafusion - Expected - -150 # Datafusion - Expected - -217 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-91\) \+ Int64\(\-59\) AS col1" at position 0 and "Int64\(7\) \* Int64\(\-31\) \* 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\(\-91\) \+ Int64\(\-59\) AS col1" at position 0 and "Int64\(7\) \* Int64\(\-31\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) * + - 91 + - 59 AS col1, 7 * - 31 * + COUNT ( * ) AS col1 query I rowsort @@ -8552,7 +8552,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT Int64\(32\)\) 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 "min\(DISTINCT Int64\(32\)\) 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 + MIN ( DISTINCT + 32 ) AS col2, COUNT ( * ) AS col2 query I rowsort label-1627 @@ -13997,7 +13997,7 @@ SELECT ALL + SUM ( + 55 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - -25459 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col0" at position 0 and "Int64\(\-67\) \* \(\- Int64\(38\)\) \* Int64\(\-10\) \+ 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\) AS col0" at position 0 and "Int64\(\-67\) \* \(\- Int64\(38\)\) \* Int64\(\-10\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 61 AS col0, - 67 * - ( + 38 ) * - 10 + + COUNT ( * ) AS col0 query II rowsort label-2671 @@ -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 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\. SELECT ALL 52 + - + MAX ( DISTINCT 6 ) AS col1, CAST ( - 51 AS INTEGER ) * - 14 * - 63 + COUNT ( * ) col1 query I rowsort @@ -27832,7 +27832,7 @@ SELECT - 93 + NULLIF ( + + 52, - - 75 + + + 9 + + 33 + + COUNT ( * ) * - 68 ) + # Datafusion - Expected - -53 # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \+ \(\- Int64\(86\)\) 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\(33\) \+ \(\- Int64\(86\)\) 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 + 33 + - + 86 AS col1, COUNT ( * ) col1, 93 * CASE + 98 WHEN + NULLIF ( - ( - + 20 ), + - 83 ) * + 79 THEN + + 80 + + + 18 + + - 86 WHEN + - 65 * + 63 + COUNT ( * ) * - + 34 THEN 89 * - COUNT ( * ) + - + 12 END + - 61 # Datafusion - Types were automatically converted from: @@ -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 Int32\)\)\) 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 @@ -30102,7 +30102,7 @@ SELECT - MIN ( DISTINCT 83 ) * - 97 + 74 # 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 "\(\- min\(Int64\(38\)\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "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 "\(\- min\(Int64\(38\)\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "Int64\(94\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - MIN ( + 38 ) + - - COUNT ( * ) AS col1, 94 - COUNT ( * ) AS col1 query II rowsort @@ -32801,7 +32801,7 @@ SELECT + 54 * - - 73 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 700 -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\(\-20\) \* 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(\-20\) \* Int64\(\-35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) col1, - 20 * - 35 AS col1 query I rowsort @@ -35079,7 +35079,7 @@ SELECT + 15 / + 94 # 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\(84\) 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\(84\) 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 + 84 AS col1, COUNT ( * ) AS col1 query I rowsort label-6678 @@ -36217,7 +36217,7 @@ SELECT ALL 18 + - 38 * - 19 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 "\(\- Int64\(16\)\) 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\(16\)\) 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 - + 16 AS col0, COUNT ( * ) col0 query I rowsort label-6892 @@ -38935,7 +38935,7 @@ SELECT + 36 - 11 + + ( + 23 ) AS col2 # Datafusion - Expected - -20 # Datafusion - Expected - 54 # Datafusion - Expected - 109 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \+ Int64\(\-26\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(53\) \+ 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\(\-26\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(53\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 6 + + - 26 AS col0, COUNT ( * ) * + 53 + + + COUNT ( * ) AS col0, - - CASE - + 28 WHEN + 70 * - 92 THEN 87 ELSE + 21 END + SUM ( ALL 88 ) query I rowsort @@ -45567,7 +45567,7 @@ SELECT ALL - 18 + 97 AS col2, SUM ( ALL - 69 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) \+ Int64\(\-2\) 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\(89\) \+ Int64\(\-2\) 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 ALL 89 + - 2 col2, 21 / COUNT ( * ) col2 query I rowsort label-8676 @@ -50872,7 +50872,7 @@ SELECT ALL MIN ( 29 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 76 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col2, 76 AS col2 query I rowsort label-9689 diff --git a/data/sqlite/random/expr/slt_good_107.slt b/data/sqlite/random/expr/slt_good_107.slt index 8c9a012..c835679 100644 --- a/data/sqlite/random/expr/slt_good_107.slt +++ b/data/sqlite/random/expr/slt_good_107.slt @@ -289,7 +289,7 @@ SELECT DISTINCT - 55 + + 29 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3316 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-6\) \+ Int64\(7\) \+ Int64\(39\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* nullif\(Int64\(\-81\), Int64\(37\) \- Int64\(87\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-17\) \- Int64\(\-12\)\) \+ Int64\(80\) \+ Int64\(76\) 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\(\-6\) \+ Int64\(7\) \+ Int64\(39\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* nullif\(Int64\(\-81\), Int64\(37\) \- Int64\(87\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-17\) \- Int64\(\-12\)\) \+ Int64\(80\) \+ Int64\(76\) 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 + - 6 + 7 + + + 39 * - COUNT ( * ) * NULLIF ( - 81, 37 - + + 87 * - COUNT ( * ) * - 17 - - 12 ) + 80 + + 76 AS col2, + COUNT ( * ) AS col2 query I rowsort label-49 @@ -4017,7 +4017,7 @@ SELECT ALL + COUNT ( * ) * - - 75 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 "Int64\(97\) 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\) 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 97 col2, COUNT ( * ) col2 query I rowsort @@ -6489,7 +6489,7 @@ SELECT 7 / - 28 - + MAX ( ALL + + 45 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1285 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* Int64\(34\) \+ Int64\(89\) \* Int64\(\-45\) 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\(80\) \* Int64\(34\) \+ Int64\(89\) \* Int64\(\-45\) 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 80 * + + ( 34 ) + + 89 * - 45 col0, + COUNT ( * ) AS col0 query I rowsort @@ -6739,7 +6739,7 @@ SELECT - 29 * COUNT ( * ) col1, COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - -3555 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col2" at position 0 and "Int64\(45\) \* Int64\(\-79\) / 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\) AS col2" at position 0 and "Int64\(45\) \* Int64\(\-79\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 73 col2, 45 * - 79 / COUNT ( * ) col2 query I rowsort @@ -10286,7 +10286,7 @@ SELECT + 69 - + - 66 AS col1, 63 # 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\(75\) \+ \(\- Int64\(\-28\)\) 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\(75\) \+ \(\- Int64\(\-28\)\) 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 + 75 + - - 28 AS col2, COUNT ( * ) AS col2 query I rowsort @@ -10605,7 +10605,7 @@ SELECT + 65 * - 28, - 17 * 6 - - 3 / + + 79 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -52 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) \+ 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 "Int64\(\-47\) \+ 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 - 47 + - 5 AS col2, + COUNT ( * ) AS col2 query II rowsort label-2017 @@ -10720,7 +10720,7 @@ SELECT COUNT ( * ) + - - COUNT ( ALL - - 87 ) col2, 45 * + + 24 + + 85 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -63 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) 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\(\-63\) 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 - 63 AS col2, COUNT ( * ) AS col2 query I rowsort @@ -14801,7 +14801,7 @@ SELECT 57 * + 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 448 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(16\) \* Int64\(28\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col2, 16 * + 28 AS col2 query II rowsort label-2814 @@ -16259,13 +16259,13 @@ 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 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\. SELECT + - 10 * 88 AS col0, 11 + + CAST ( NULL AS INTEGER ) + + 43 - + 86 * + 93 * - 46 * + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -11 # Datafusion - Expected - 1 -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\(\*\) AS col1" at position 1 have the 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\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 11 col1, + COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: @@ -17664,7 +17664,7 @@ SELECT + 39 - - 41 * 98 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - 173 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \+ \(\- Int64\(\-28\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(76\) \- \(\- 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\(47\) \+ \(\- Int64\(\-28\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(76\) \- \(\- Int64\(97\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 47 + - - 28 * COUNT ( * ) AS col1, 76 - - ( 97 ) col1 query I rowsort @@ -23338,7 +23338,7 @@ SELECT + 32 + + 57 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 "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\(\*\) )?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 ( * ) AS col1, - COUNT ( * ) AS col1 query I rowsort label-4433 @@ -26346,7 +26346,7 @@ SELECT MIN ( + 17 ) AS col0, - 16 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -1440 -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\(15\) \* 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\(15\) \* Int64\(\-96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) col0, 15 * - 96 AS col0 query II rowsort @@ -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 Int32\)\) 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 @@ -38135,7 +38135,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 "Int64\(\-60\) 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\(\-60\) 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 - 60 col0, COUNT ( * ) AS col0 query I rowsort @@ -38434,7 +38434,7 @@ SELECT + 23 / + 32, - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col0" at position 0 and "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\(18\) AS col0" at position 0 and "Int64\(62\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 18 AS col0, + 62 * + + COUNT ( * ) AS col0 query I rowsort @@ -40113,7 +40113,7 @@ SELECT ALL + COUNT ( * ) + - + 78 + - ( + 51 ) + 61 * - 76, - 4 AS col2 # 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 "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\(43\) 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 + + 43 AS col0, COUNT ( * ) AS col0 # Datafusion - Types were automatically converted from: @@ -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 Int32\) \* 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 @@ -42860,7 +42860,7 @@ SELECT ALL - 77 * + COUNT ( * ), + 31 * + - 82 * 0 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1465 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) \+ max\(DISTINCT Int64\(90\)\) \* Int64\(17\) \+ Int64\(3\) / Int64\(74\) \+ Int64\(\-67\) 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 "Int64\(2\) \+ max\(DISTINCT Int64\(90\)\) \* Int64\(17\) \+ Int64\(3\) / Int64\(74\) \+ Int64\(\-67\) 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 ALL + 2 + + MAX ( DISTINCT + 90 ) * 17 + + 3 / + + 74 + - 67 col1, + CAST ( NULL AS FLOAT8 ) * COUNT ( * ) AS col1 query I rowsort label-8145 @@ -46445,7 +46445,7 @@ SELECT + 64 AS col0, - 15 # Datafusion - Datafusion expected results: # Datafusion - Expected - -67 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-67\) 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\(\-67\) 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 - 67 AS col0, + ( + ( + COUNT ( * ) ) ) AS col0 # Datafusion - Types were automatically converted from: @@ -47194,7 +47194,7 @@ SELECT DISTINCT + 68 * - + 81 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(46\)\) / Int64\(1\) \- count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "sum\(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\(46\)\) / Int64\(1\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "sum\(Int64\(66\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 46 / + 1 - COUNT ( * ) AS col2, SUM ( + + 66 ) AS col2 query I rowsort label-8978 @@ -50083,7 +50083,7 @@ SELECT DISTINCT + 42 - + 61 + 54 - 45 - 66 / + 21 # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, COUNT ( * ) AS col0 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_108.slt b/data/sqlite/random/expr/slt_good_108.slt index 22c38aa..a6f0473 100644 --- a/data/sqlite/random/expr/slt_good_108.slt +++ b/data/sqlite/random/expr/slt_good_108.slt @@ -156,7 +156,7 @@ SELECT 18 / - 51 + + - 38 / - 61, + 56 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -34 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) AS col2" at position 0 and "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\(\-34\) AS col2" at position 0 and "Int64\(92\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 34 AS col2, 92 * + + COUNT ( * ) AS col2 query I rowsort label-23 @@ -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 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\. SELECT + CAST ( NULL AS INTEGER ) col2, 38 / COUNT ( * ) AS col2 query I rowsort label-270 @@ -2968,7 +2968,7 @@ SELECT + 29 + + + ( 81 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) / count\(Int64\(1\)\) AS count\(\*\) 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\(46\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(\-91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 46 / COUNT ( * ) col0, - 91 AS col0 query II rowsort @@ -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 Int32\)\) 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 @@ -5308,7 +5308,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 111 -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\(74\) \+ \(\- Int64\(\-82\)\) \- 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\(\*\) )?AS col2" at position 0 and "Int64\(74\) \+ \(\- Int64\(\-82\)\) \- Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) col2, 74 + - - 82 - + 45 AS col2 query I rowsort label-1009 @@ -8780,7 +8780,7 @@ SELECT + 93 + COALESCE ( + 96, + - 84 * + COUNT ( * ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -78 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) 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\(\-78\) 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 - 78 AS col0, + COUNT ( * ) / COUNT ( * ) col0 query I rowsort @@ -12633,7 +12633,7 @@ SELECT ALL - 22 + + 30 * + 33 * + 86 * - 5 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2490 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \* 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 "Int64\(30\) \* 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 30 * + - 83 AS col2, COUNT ( * ) AS col2 query I rowsort label-2402 @@ -15471,7 +15471,7 @@ SELECT DISTINCT - 39 * - 96, 49 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) 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\(21\) 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 + + 21 AS col1, COUNT ( * ) AS col1 query II rowsort @@ -28157,7 +28157,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -29 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) \+ count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(\-30\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?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 ( - 30 ) + + COUNT ( * ) AS col0, + 58 AS col0 query I rowsort label-5365 @@ -29862,7 +29862,7 @@ SELECT DISTINCT - ( + 5 ) * - COALESCE ( - - COUNT ( * ), - 67 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 55 -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\) AS col0" at position 1 have the same name\. Consider aliasing \("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\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) col0, 55 AS col0 query II rowsort label-5689 @@ -33893,7 +33893,7 @@ SELECT + + 17 * - + 14 + + COALESCE ( + COUNT ( * ), - 97 ) * - ( 77 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 48 -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\(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\(\*\) )?AS col0" at position 0 and "Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col0, + 48 AS col0 query I rowsort label-6456 @@ -35909,7 +35909,7 @@ SELECT 66 - 14 * + 66 # Datafusion - Expected - -46 # Datafusion - Expected - 55 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) AS col0" at position 0 and "Int64\(54\) \+ 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 "Int64\(54\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 46 AS col0, 54 + + COUNT ( * ) AS col0, - 68 - - + 54 query I rowsort label-6846 @@ -37469,7 +37469,7 @@ SELECT ALL - 93 + - COUNT ( DISTINCT CAST ( 51 AS INTEGER ) ) # Datafusion - Expected - 1433 # Datafusion - Expected - 16 # Datafusion - Expected - 2692 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col0" at position 1 and "Int64\(73\) \+ Int64\(27\) \* Int64\(97\) \* 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\(16\) AS col0" at position 1 and "Int64\(73\) \+ Int64\(27\) \* Int64\(97\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 39 + - ( - + 17 ) * 82, + 16 AS col0, 73 + + 27 * + 97 * COUNT ( * ) AS col0 query I rowsort label-7140 @@ -38676,7 +38676,7 @@ SELECT ALL - COUNT ( * ) - - + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - -88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(79\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(79\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(88\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * + 79 + + + COUNT ( * ) AS col2, + 88 * - COUNT ( * ) AS col2 query I rowsort @@ -39392,7 +39392,7 @@ SELECT - - COUNT ( ALL - 80 ) # 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\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(86\) \+ 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\(\*\) )?AS col1" at position 0 and "Int64\(86\) \+ Int64\(8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, 86 + + + 8 AS col1 query I rowsort label-7503 @@ -40570,7 +40570,7 @@ SELECT DISTINCT 61 * - 89, COUNT ( * ) AS col2 # 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 "\(\- max\(DISTINCT Int64\(48\)\)\) 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\(DISTINCT Int64\(48\)\)\) 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 ( DISTINCT 48 ) col2, + ( COUNT ( * ) ) * + COUNT ( * ) AS col2 query I rowsort @@ -41695,7 +41695,7 @@ SELECT DISTINCT - - SUM ( + 72 ) * - - 91 * 24 + SUM ( DISTINCT 5 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -19 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) 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\(\-19\) 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 - 19 AS col1, + COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: @@ -44877,7 +44877,7 @@ SELECT - 19 * - 5, - 65 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 "CASE Int64\(65\) WHEN Int64\(\-79\) \+ Int64\(61\) THEN count\(Int64\(1\)\) AS count\(\*\) END \* CASE Int64\(5\) WHEN Int64\(37\) THEN Int64\(2\) END \+ 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "CASE Int64\(65\) WHEN Int64\(\-79\) \+ Int64\(61\) THEN count\(Int64\(1\)\) AS count\(\*\) END \* CASE Int64\(5\) WHEN Int64\(37\) THEN Int64\(2\) END \+ Int64\(57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( + COUNT ( * ) ) col2, + CASE 65 WHEN - 79 + 61 THEN COUNT ( * ) END * CASE + 5 WHEN + 37 THEN + 2 END + + 57 col2 query I rowsort @@ -50254,7 +50254,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -156 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) \- Int64\(79\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ 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\(\-78\) \- Int64\(79\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 78 - 79 + COUNT ( * ) AS col1, + COUNT ( * ) + - 52 AS col1 query II rowsort label-9577 @@ -50388,7 +50388,7 @@ SELECT + MAX ( - 9 ) * + + 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) / Int64\(\-82\) / count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* 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\(\-99\) / Int64\(\-82\) / count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 99 / + - 82 / + COUNT ( * ) + + COUNT ( * ) AS col1, COUNT ( * ) * 30 AS col1 query I rowsort label-9602 @@ -51005,7 +51005,7 @@ SELECT ALL - 83 * - 88 - - 87 * + 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* count\(Int64\(1\)\) AS count\(\*\) 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\(80\) \* count\(Int64\(1\)\) (AS count\(\*\) )?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 + 80 * + COUNT ( * ) AS col1, 53 col1 query I rowsort label-9720 diff --git a/data/sqlite/random/expr/slt_good_109.slt b/data/sqlite/random/expr/slt_good_109.slt index 12509b1..d7ad372 100644 --- a/data/sqlite/random/expr/slt_good_109.slt +++ b/data/sqlite/random/expr/slt_good_109.slt @@ -3143,7 +3143,7 @@ SELECT + 88 + + 45 * - 5 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -35 -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\) AS col1" at position 1 have the same name\. Consider aliasing \("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\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col1, - 35 AS col1 query I rowsort label-591 @@ -7207,7 +7207,7 @@ SELECT ALL - COALESCE ( - 91, ( + + 16 ) + + MAX ( + 42 ), - - 12 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col0" at position 0 and "Int64\(10\) \+ 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 "Int64\(96\) AS col0" at position 0 and "Int64\(10\) \+ Int64\(42\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 96 col0, 10 + + 42 + + COUNT ( * ) AS col0 query I rowsort @@ -8609,7 +8609,7 @@ SELECT DISTINCT - COUNT ( - - 57 ) AS col2 # Datafusion - Expected - -61 # Datafusion - Expected - 34 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(34\)\) 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 "min\(Int64\(34\)\) 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 DISTINCT - 61, MIN ( 34 ) AS col2, + COUNT ( * ) AS col2 query I rowsort label-1642 @@ -12329,7 +12329,7 @@ SELECT + 18 * + ( + + 16 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7347 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(\(\- Int64\(79\)\), Int64\(39\)\)\) \* Int64\(93\) AS col0" at position 0 and "Int64\(91\) \+ \(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(61\) THEN Int64\(\-79\) ELSE NULL END\) \+ Int64\(61\) \- Int64\(\-65\) / 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\(79\)\), Int64\(39\)\)\) \* Int64\(93\) AS col0" at position 0 and "Int64\(91\) \+ \(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(61\) THEN Int64\(\-79\) ELSE NULL END\) \+ Int64\(61\) \- Int64\(\-65\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COALESCE ( - + 79, 39 ) * + 93 col0, 91 + - CASE + + COUNT ( * ) WHEN 61 THEN - 79 ELSE NULL END + + + 61 - - 65 / COUNT ( * ) AS col0 query I rowsort @@ -13484,7 +13484,7 @@ SELECT 97 AS col0, + COUNT ( * ) * + 70 # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - -61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) 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 "Int64\(19\) 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 + 19 AS col0, - 61 / + COUNT ( * ) AS col0 query I rowsort @@ -13607,7 +13607,7 @@ SELECT ALL 39 + COUNT ( * ) # 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 "Int64\(40\) 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\(40\) 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 40 AS col0, COUNT ( * ) AS col0 query I rowsort @@ -18150,7 +18150,7 @@ SELECT DISTINCT - SUM ( DISTINCT 6 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -79 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(79\)\) AS col0" at position 0 and "Int64\(82\) \+ 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\(79\)\) AS col0" at position 0 and "Int64\(82\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - ( 79 ) AS col0, 82 + + + COUNT ( * ) col0 query I rowsort @@ -23018,7 +23018,7 @@ SELECT ALL 31 + COUNT ( + 4 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 153 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \+ Int64\(\-26\) \+ Int64\(89\) \- Int64\(\-31\) / \(\- Int64\(\-77\)\) \* count\(Int64\(1\)\) AS count\(\*\) 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\(90\) \+ Int64\(\-26\) \+ Int64\(89\) \- Int64\(\-31\) / \(\- Int64\(\-77\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 90 + - 26 + + 89 - - 31 / - - 77 * COUNT ( * ) AS col1, 63 AS col1 query I rowsort @@ -24177,7 +24177,7 @@ SELECT DISTINCT - 42 / 64 # Datafusion - Expected - 13 # Datafusion - Expected - -57 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(13\)\) AS col2" at position 0 and "Int64\(2\) \- 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 "max\(Int64\(13\)\) AS col2" at position 0 and "Int64\(2\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + MAX ( ALL + 13 ) AS col2, - 57, 2 - + COUNT ( * ) AS col2 query II rowsort @@ -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 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\. 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 @@ -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 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\. SELECT COUNT ( * ) AS col0, CAST ( 47 AS INTEGER ) + + - 15 + - MIN ( DISTINCT + - 1 ) * - - 72 + 35 AS col0 query I rowsort label-5322 @@ -30912,7 +30912,7 @@ SELECT - 20 + + + 96 + - 85 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -38 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 "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 - 38 AS col2, COUNT ( * ) AS col2 query I rowsort label-5897 @@ -32945,7 +32945,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 7 -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\(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\(\*\) )?AS col1" at position 0 and "Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, + 7 AS col1 query I rowsort label-6285 @@ -33773,7 +33773,7 @@ SELECT ( SUM ( DISTINCT + 88 ) ) # Datafusion - Expected - -5763 # Datafusion - Expected - -189 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \* Int64\(\-86\) \- count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-21\) \* 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\(67\) \* Int64\(\-86\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(\-21\) \* Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 67 * - 86 - + COUNT ( * ) AS col1, - 21 * 9 AS col1, CASE + + 64 WHEN COALESCE ( - 9, - + COUNT ( * ) ) THEN + 14 * + - COUNT ( * ) / + COALESCE ( COUNT ( * ), AVG ( ALL + CAST ( NULL AS INTEGER ) ) * - + 35 + - + 6 * - ( + MAX ( DISTINCT + COALESCE ( 3, 34 ) ) ) * + + 98 ) WHEN + + MIN ( + 35 ) * + + MIN ( - CASE + 47 WHEN - - 64 + 6 THEN NULL ELSE + + 73 END ) - 67 + - 20 THEN NULL ELSE NULL END AS col1 query I rowsort @@ -37491,7 +37491,7 @@ SELECT DISTINCT + ( - 38 ), 80 AS col2 # 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 "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(34\) \+ Int64\(14\) / 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\(\*\) )?AS col0" at position 0 and "Int64\(34\) \+ Int64\(14\) / 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 + COUNT ( * ) AS col0, 34 + + 14 / + + COUNT ( * ) * + - COUNT ( * ) col0 query I rowsort label-7154 @@ -37748,7 +37748,7 @@ SELECT DISTINCT 74 * - ( - COUNT ( * ) ) AS col0 # Datafusion - Expected - 0 # 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\(\*\) 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?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 ALL - COUNT ( * ) + + COUNT ( * ) AS col2, + COUNT ( * ) + MAX ( - CASE - 44 WHEN 17 + - 54 * - + 2 + + 16 THEN + 90 WHEN ( 60 ) THEN NULL ELSE NULL END ), + COUNT ( * ) AS col2 query I rowsort @@ -37876,7 +37876,7 @@ SELECT 1 * - 14 * - - ( - COUNT ( * ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -50 -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\(10\) \* 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\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(10\) \* Int64\(\-5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) col0, + 10 * - 5 AS col0 query I rowsort label-7226 @@ -40556,7 +40556,7 @@ SELECT 35 + - + 51 + COUNT ( * ) + - ( + 46 ) * + + 51 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3888 # Datafusion - Expected - 1 -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 "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\(48\) \* Int64\(\-81\) 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 48 * + - 81 AS col2, + COUNT ( * ) AS col2 query I rowsort label-7738 @@ -41449,7 +41449,7 @@ SELECT + SUM ( - + 35 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -44 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) \+ count\(Int64\(1\)\) AS count\(\*\) 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\(\-45\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 45 + COUNT ( * ) AS col2, 33 col2 query I rowsort @@ -43161,7 +43161,7 @@ SELECT DISTINCT - + 33 + - + COUNT ( * ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 12 -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\(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 "Int64\(12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col0, + 12 AS col0 query I rowsort label-8238 @@ -48601,7 +48601,7 @@ SELECT DISTINCT + 76 * 76 + + + 83 + MIN ( + 53 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -403 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \* Int64\(\-40\) \+ Int64\(\-82\) \+ Int64\(7\) \+ Int64\(48\) \* Int64\(4\) 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\(13\) \* Int64\(\-40\) \+ Int64\(\-82\) \+ Int64\(7\) \+ Int64\(48\) \* Int64\(4\) 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 13 * ( - 40 ) + - 82 + + 7 + + 48 * + 4 AS col0, COUNT ( * ) col0 query I rowsort @@ -49243,7 +49243,7 @@ NULL # 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 "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 "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 59 AS col0, + COUNT ( * ) 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..9a284b7 100644 --- a/data/sqlite/random/expr/slt_good_11.slt +++ b/data/sqlite/random/expr/slt_good_11.slt @@ -748,7 +748,7 @@ SELECT ALL 19 * + COUNT ( * ) - - ( - 37 ) + + - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 48 -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\(36\) \- 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 "Int64\(36\) \- Int64\(\-12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col0, + 36 - - 12 AS col0 query I rowsort @@ -1605,7 +1605,7 @@ SELECT + NULLIF ( + - 33, + 54 ) / 15 AS col0 # 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 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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 COUNT ( * ) AS col1, - 74 AS col1 query I rowsort label-300 @@ -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 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\. 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 @@ -17802,7 +17802,7 @@ SELECT DISTINCT + COALESCE ( + + 65, + + 43 ) / - 53 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1288 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \* Int64\(33\) \+ count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(39\) \* Int64\(33\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 39 * 33 + + COUNT ( * ) AS col1, ( + 33 ) AS col1 query I rowsort label-3382 @@ -29726,7 +29726,7 @@ SELECT ALL 87 * + 89 # 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 "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\(\*\) )?AS col2" at position 0 and "Int64\(\-74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col2, ( - 74 ) AS col2 query I rowsort @@ -35397,7 +35397,7 @@ SELECT DISTINCT 97 + - - SUM ( DISTINCT - + 83 ) col1 # Datafusion - Expected - 1 # Datafusion - Expected - -5096 # Datafusion - Expected - -49 -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\(\-98\) \* nullif\(\(\- Int64\(\-52\)\), count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- max\(DISTINCT 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\(\*\) )?AS col2" at position 0 and "Int64\(\-98\) \* nullif\(\(\- Int64\(\-52\)\), count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- max\(DISTINCT Int64\(14\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) col2, - 98 * + NULLIF ( - - 52, COUNT ( * ) * ( - COUNT ( * ) ) + - MAX ( DISTINCT 14 ) ) AS col2, - 49 AS col2 query I rowsort @@ -37883,7 +37883,7 @@ SELECT DISTINCT + COUNT ( * ) + + - 70 + + 64 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) 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\(76\) 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 + 76 col1, + COUNT ( * ) AS col1 query II rowsort @@ -38176,7 +38176,7 @@ SELECT - 96 * 17 col2, 99 + + ( + + 61 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -30 # Datafusion - Expected - -2906 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(30\)\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(97\) \* Int64\(\-30\) \+ Int64\(3\) \+ 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\)\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(97\) \* Int64\(\-30\) \+ Int64\(3\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 30 / COUNT ( * ) AS col2, + 97 * - 30 + + 3 + + + COUNT ( * ) AS col2 query I rowsort label-7255 @@ -40139,7 +40139,7 @@ SELECT - + 33 + + 79 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4200 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) \* Int64\(60\) 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\(70\) \* Int64\(60\) 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 + 70 * + + 60 AS col1, COUNT ( * ) AS col1 query I rowsort label-7627 @@ -45928,7 +45928,7 @@ SELECT 64 + - + COUNT ( * ) # 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 "count\(Int64\(1\)\) AS count\(\*\) \* min\(Int64\(34\)\) 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\(\*\) \* min\(Int64\(34\)\) 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 ( * ) * + MIN ( ALL 34 ) AS col1, + COUNT ( * ) AS col1 query I rowsort label-8733 @@ -46495,7 +46495,7 @@ SELECT - 15 + + 74 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -3060 -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\(\-90\) \* 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(\-90\) \* Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col0, - 90 * 34 AS 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 Int32\) \* \(\- 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 @@ -47887,7 +47887,7 @@ SELECT ALL + - NULLIF ( + + 90, + 89 ) * - COALESCE ( 56, COUNT ( * ) ) * COALES # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) 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\(26\) 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 + 26 AS col2, + COUNT ( * ) AS col2 query II rowsort @@ -49585,7 +49585,7 @@ SELECT ALL - 75 + - 98 + + COALESCE ( + - COUNT ( * ), + + 26 ) + 6, + 5 - - MAX # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 "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 + 88 AS col2, COUNT ( * ) AS col2 query I rowsort label-9433 @@ -50258,7 +50258,7 @@ SELECT ALL - 66 * - + 23 * + - COUNT ( ALL 50 ) + - COUNT ( * ) - - NULLIF ( 28, # 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\(\*\) 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\(\*\) )?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 ( * ) AS col2, + 29 AS col2 query I rowsort @@ -52421,7 +52421,7 @@ SELECT DISTINCT + 74 * - + MIN ( DISTINCT - - 17 ) 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 "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\(\*\) )?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 ( * ) col1, - ( + + COUNT ( * ) ) AS col1 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_110.slt b/data/sqlite/random/expr/slt_good_110.slt index b707531..f31adc6 100644 --- a/data/sqlite/random/expr/slt_good_110.slt +++ b/data/sqlite/random/expr/slt_good_110.slt @@ -540,7 +540,7 @@ SELECT - 93, COUNT ( * ) * - - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - 1 -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\(\*\) AS col0" at position 1 have the 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\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 95 AS col0, COUNT ( * ) AS col0 query I rowsort @@ -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 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\. SELECT - 10 * 94 * - - CAST ( 1 AS INTEGER ) AS col1, + 94 * 76 / + + COUNT ( * ) AS col1 query I rowsort @@ -1443,7 +1443,7 @@ SELECT + COUNT ( * ) - - 6 + 36 # 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 "count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(60\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, 60 AS col2 query II rowsort label-272 @@ -2192,7 +2192,7 @@ SELECT + + 52 + 6 # 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\(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 "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 + 83 AS col2, + COUNT ( * ) col2 query I rowsort label-413 @@ -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 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\. 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 @@ -4197,7 +4197,7 @@ SELECT - + SUM ( + - 25 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-75\)\) \+ Int64\(\-44\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(59\) \+ Int64\(44\) \+ \(\- sum\(DISTINCT 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\(\-75\)\) \+ Int64\(\-44\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(59\) \+ Int64\(44\) \+ \(\- sum\(DISTINCT Int64\(19\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - 75 + - 44 - + COUNT ( * ) AS col0, + 59 + + 44 + - + SUM ( DISTINCT 19 ) AS col0 query I rowsort @@ -5719,7 +5719,7 @@ SELECT ALL - - NULLIF ( - + 41, 83 ) col1 # Datafusion - Expected - 47 # Datafusion - Expected - 2062 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \* Int64\(25\) \- Int64\(88\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 and "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 "Int64\(86\) \* Int64\(25\) \- Int64\(88\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 and "Int64\(53\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + ( + - 47 ), ( 86 ) * + 25 - 88 / + COUNT ( * ) AS col2, + 53 AS col2 query I rowsort label-1075 @@ -7636,7 +7636,7 @@ SELECT ALL + NULLIF ( - 5, + 1 ) / - - 12 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -504 -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\(36\) \* 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\(\*\) )?AS col2" at position 0 and "Int64\(36\) \* Int64\(\-14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col2, 36 * + ( + - 14 ) AS col2 query I rowsort @@ -13857,7 +13857,7 @@ SELECT ALL - 83 * + - COUNT ( * ) + - 58 - - 68 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col1" at position 0 and "coalesce\(Int64\(\-55\), Int64\(7\), Int64\(23\) \- Int64\(30\)\) / Int64\(10\) \+ 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\(33\) AS col1" at position 0 and "coalesce\(Int64\(\-55\), Int64\(7\), Int64\(23\) \- Int64\(30\)\) / Int64\(10\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 33 AS col1, COALESCE ( - 55, 7, 23 - + 30 ) / + + 10 + COUNT ( * ) AS col1 query I rowsort label-2623 @@ -14749,7 +14749,7 @@ SELECT DISTINCT - 19 + 19 + + NULLIF ( - 28, - ( - 41 ) ) col1, 37 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(\(\- nullif\(Int64\(\-6\), \(\- Int64\(65\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\), Int64\(\-48\) \+ Int64\(4\) \* \(\- nullif\(\(\- Int64\(14\)\), Int64\(6\) \+ Int64\(\-90\) \+ \(\- coalesce\(Int64\(\-45\), Int64\(6\)\)\) \* Int64\(78\) \* Int64\(\-12\)\)\) \* Int64\(69\) \* \(\- Int64\(5\)\)\)\) 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\(\(\- nullif\(Int64\(\-6\), \(\- Int64\(65\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\), Int64\(\-48\) \+ Int64\(4\) \* \(\- nullif\(\(\- Int64\(14\)\), Int64\(6\) \+ Int64\(\-90\) \+ \(\- coalesce\(Int64\(\-45\), Int64\(6\)\)\) \* Int64\(78\) \* Int64\(\-12\)\)\) \* Int64\(69\) \* \(\- Int64\(5\)\)\)\) 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 ( - NULLIF ( + - 6, - + 65 / - COUNT ( * ) ), - 48 + ( + 4 ) * - NULLIF ( - + 14, 6 + - 90 + - COALESCE ( - 45, + 6 ) * + 78 * - 12 ) * + 69 * - + 5 ) AS col0, COUNT ( * ) AS col0 query I rowsort label-2791 @@ -15140,7 +15140,7 @@ SELECT ALL 48 - + 47 * - + 53 # 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 "Int64\(\-85\) 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\(\-85\) 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 - 85 AS col0, + COUNT ( * ) col0 query I rowsort @@ -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 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\. SELECT ALL - CAST ( + AVG ( DISTINCT + 24 ) AS INTEGER ) * + 8 - + - COUNT ( * ) AS col2, + COUNT ( * ) AS col2 query I rowsort label-3063 @@ -18444,7 +18444,7 @@ SELECT MAX ( DISTINCT - - 32 ) * - ( + 64 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3270 # Datafusion - Expected - -69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \- Int64\(\-31\) \+ Int64\(48\) \- \(\- Int64\(13\)\) \* Int64\(\-83\) \* Int64\(\-3\) \+ Int64\(\-62\) AS col2" at position 0 and "Int64\(\-70\) \+ 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\(\-31\) \+ Int64\(48\) \- \(\- Int64\(13\)\) \* Int64\(\-83\) \* Int64\(\-3\) \+ Int64\(\-62\) AS col2" at position 0 and "Int64\(\-70\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 16 - - 31 + + + 48 - - + 13 * - 83 * - 3 + - 62 AS col2, - 70 + + COUNT ( * ) AS col2 query I rowsort label-3496 @@ -22479,7 +22479,7 @@ SELECT - 52 * 74 AS col0 # 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 "count\(\(\- Int64\(0\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) 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 "count\(\(\- Int64\(0\)\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(\-89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( - ( + + 0 ) ) + + + COUNT ( * ) AS col1, - 89 col1 query I rowsort @@ -26561,7 +26561,7 @@ SELECT ALL + 72 AS col2, 95 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 "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(4\) / 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\(4\) / Int64\(4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) col1, 4 / + 4 AS col1 query I rowsort label-5048 @@ -27873,7 +27873,7 @@ SELECT ALL 41, + 76 AS col1 # Datafusion - Expected - 9408 # Datafusion - Expected - -14 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \* Int64\(96\) 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 "Int64\(98\) \* Int64\(96\) 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 98 * + 96 AS col1, COUNT ( * ) * - 14, COUNT ( * ) AS col1 query II rowsort label-5300 @@ -30423,7 +30423,7 @@ SELECT DISTINCT 75 - - SUM ( ALL + 23 ) 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\(Int64\(1\)\) AS count\(\*\) 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\(Int64\(1\)\) (AS count\(\*\) )?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 ( * ) col2, + 61 AS col2 query I rowsort @@ -31258,7 +31258,7 @@ SELECT DISTINCT COALESCE ( - - 78, + CAST ( NULL AS INTEGER ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - 4610 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col1" at position 0 and "Int64\(87\) \* Int64\(53\) \- 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\) AS col1" at position 0 and "Int64\(87\) \* Int64\(53\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 58 AS col1, 87 * + 53 - COUNT ( * ) AS col1 query I rowsort label-5939 @@ -32935,7 +32935,7 @@ SELECT DISTINCT 54 AS col2, + NULLIF ( - ( + - 76 ), - 56 + - 84 ) AS col2 # 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 "Int64\(6\) / 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(6\) / Int64\(67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col0, 6 / 67 col0 query I rowsort @@ -37976,7 +37976,7 @@ SELECT ALL - ( + 93 ) + + COALESCE ( + 5, + 90 ) / + 64 # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- nullif\(Int64\(74\), \(\- 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\(\-60\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "\(\- nullif\(Int64\(74\), \(\- Int64\(60\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 60 * + COUNT ( * ) AS col1, - NULLIF ( 74, - ( + + 60 ) ) AS col1 query I rowsort label-7222 @@ -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 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\. SELECT ALL - 78 * - CAST ( NULL AS INTEGER ) * + COALESCE ( - - 23, - CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) AS col0, - COUNT ( * ) AS col0 query I rowsort @@ -41185,7 +41185,7 @@ SELECT 87 * 50 * + + 64 - + - 39 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 23 -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 "max\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "max\(Int64\(23\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col1, MAX ( 23 ) AS col1 query I rowsort label-7829 @@ -43766,7 +43766,7 @@ SELECT 0 + - COUNT ( * ) * + - ( - COUNT ( ALL - - 88 ) ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT 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 "max\(DISTINCT 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 ALL MAX ( DISTINCT + 39 ) col0, COUNT ( * ) AS col0 query I rowsort @@ -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 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\. SELECT COUNT ( * ) + 51 + - - COUNT ( * ) + + NULLIF ( - 48, - + CAST ( + - 21 AS INTEGER ) ) AS col0, + COUNT ( * ) AS col0 query I rowsort label-8326 @@ -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 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\. SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) AS col1, COUNT ( * ) + + + 99 AS col1 query I rowsort @@ -45094,7 +45094,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 62 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, + 62 col1 query I rowsort @@ -45216,7 +45216,7 @@ SELECT - 47 * + - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -19 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-61\)\) \+ Int64\(\-80\) 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\(\-61\)\) \+ Int64\(\-80\) 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 - ( - 61 ) + - 80 AS col2, + COUNT ( * ) col2 query I rowsort label-8600 @@ -51511,7 +51511,7 @@ SELECT ALL - NULLIF ( - 26, - 24 - 19 + + ( CASE + 87 WHEN COUNT ( * ) THEN ( - # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "coalesce\(Int64\(97\), 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\(\-95\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "coalesce\(Int64\(97\), Int64\(52\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 95 * COUNT ( * ) AS col1, + COALESCE ( + 97, 52 ) AS col1 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_111.slt b/data/sqlite/random/expr/slt_good_111.slt index ac34f4c..87f53f0 100644 --- a/data/sqlite/random/expr/slt_good_111.slt +++ b/data/sqlite/random/expr/slt_good_111.slt @@ -202,7 +202,7 @@ SELECT SUM ( 56 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \* count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(7\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 7 * + COUNT ( * ) col1, 30 AS col1 query I rowsort label-32 @@ -998,7 +998,7 @@ SELECT + 80 + + 93 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 3120 -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\(39\) \* 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\(\*\) )?AS col1" at position 0 and "Int64\(39\) \* Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, 39 * 80 AS col1 query I rowsort label-183 @@ -3483,7 +3483,7 @@ SELECT + + 72 + - 52 # Datafusion - Datafusion expected results: # Datafusion - Expected - -33 # Datafusion - Expected - 229 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) AS col0" at position 0 and "Int64\(\-21\) \* \(\- Int64\(8\)\) \- 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 "Int64\(\-33\) AS col0" at position 0 and "Int64\(\-21\) \* \(\- Int64\(8\)\) \- Int64\(\-61\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 33 AS col0, + ( - 21 ) * - + 8 - - 61 * COUNT ( * ) AS col0 query I rowsort @@ -5103,7 +5103,7 @@ SELECT 22, 86 * + 10 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 137 -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\(4\) \* \(\- \(\- Int64\(51\)\)\) \- \(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(4\) \* \(\- \(\- Int64\(51\)\)\) \- \(\- Int64\(\-67\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) col0, ( + 4 ) * - ( - + 51 ) - - - 67 AS col0 query I rowsort label-965 @@ -9261,7 +9261,7 @@ SELECT ( + + 5 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4939 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-99\)\) \* Int64\(49\) \+ \(\- Int64\(\-88\)\) 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\(\-99\)\) \* Int64\(49\) \+ \(\- Int64\(\-88\)\) 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 - - 99 * + 49 + + ( - - 88 ) AS col1, + COUNT ( * ) AS col1 query I rowsort label-1762 @@ -10372,7 +10372,7 @@ SELECT - MIN ( 97 ) + + - 32 + 26 * - NULLIF ( 68, - MAX ( DISTINCT 36 ) ) + + 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -5076 -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\(67\)\) \* Int64\(75\) \+ 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 "\(\- Int64\(67\)\) \* Int64\(75\) \+ Int64\(\-51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, ( - + 67 ) * 75 + - 51 col1 query I rowsort label-1977 @@ -19926,7 +19926,7 @@ SELECT + 71 + - 91 col1 # 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 col2" at position 0 and "\(\- count\(Int64\(\-54\)\)\) \+ 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\(44\) AS col2" at position 0 and "\(\- count\(Int64\(\-54\)\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 44 AS col2, - ( + COUNT ( - 54 ) ) + COUNT ( * ) AS col2 query I rowsort @@ -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 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\. 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 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\. SELECT - 1 * 63 + - 52 * + NULLIF ( + CAST ( NULL AS INTEGER ), + - 53 ) * - 63 + + + 95 - + 71 AS col0, + COUNT ( * ) col0 query II rowsort @@ -23191,7 +23191,7 @@ SELECT DISTINCT - - 48 * + COUNT ( 51 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -226 -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\(\-58\) \+ Int64\(\-92\) \+ Int64\(\-70\) \+ 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\(\-58\) \+ Int64\(\-92\) \+ Int64\(\-70\) \+ Int64\(\-6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col1, - 58 + - 92 + - 70 + - 6 col1 query I rowsort @@ -26143,7 +26143,7 @@ NULL # Datafusion - Expected - 168 # Datafusion - Expected - 108 # Datafusion - Expected - 35568049 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) \* Int64\(5\) \+ \(\- Int64\(\-73\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "min\(Int64\(95\)\) \* \(\- coalesce\(Int64\(80\), Int64\(27\)\)\) \* Int64\(\-78\) \* Int64\(60\) \+ Int64\(49\) 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\(19\) \* Int64\(5\) \+ \(\- Int64\(\-73\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "min\(Int64\(95\)\) \* \(\- coalesce\(Int64\(80\), Int64\(27\)\)\) \* Int64\(\-78\) \* Int64\(60\) \+ Int64\(49\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + 19 * + 5 + - - 73 * + COUNT ( * ) AS col0, 54 + 54 AS col1, MIN ( 95 ) * - COALESCE ( 80, + 27 ) * - 78 * 60 + 49 col0 query I rowsort label-4982 @@ -27565,7 +27565,7 @@ SELECT ALL 20 / - 47 + - 46 AS col0, 92 AS col1 # 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\(\-93\) \+ 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 "Int64\(\-93\) \+ 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 - 93 + - 32 AS col0, + COUNT ( * ) AS col0 query I rowsort label-5250 @@ -28207,7 +28207,7 @@ SELECT - ( + 88 ) * 83 + + 3 * - 85 AS col0 # 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 "Int64\(95\) AS col1" at position 0 and "Int64\(\-52\) \+ Int64\(83\) \- 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\(95\) AS col1" at position 0 and "Int64\(\-52\) \+ Int64\(83\) \- Int64\(88\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 95 col1, - 52 + + + 83 - + + 88 - + COUNT ( * ) AS col1 query I rowsort label-5374 @@ -30232,7 +30232,7 @@ SELECT + ( 94 ) * 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -45 -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\(\-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\(\-45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, - 45 AS col0 query I rowsort label-5755 @@ -30760,7 +30760,7 @@ SELECT - - 94, 80 + + 54 - + NULLIF ( + 81, - NULLIF ( COUNT ( * ), + 87 * 56 ) # 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 "count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, 13 AS col2 query I rowsort @@ -33474,7 +33474,7 @@ SELECT + 14, ( + + 40 ) * - 34 + + 61 + + 14 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 51 -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\(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\(\*\) )?AS col0" at position 0 and "Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, 51 AS col0 query II rowsort label-6377 @@ -35423,7 +35423,7 @@ SELECT 9 + + - 32 # Datafusion - Expected - 999 # 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\(\-77\) \* Int64\(50\) / Int64\(\-4\) \- Int64\(\-47\) \+ Int64\(\-11\) 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 "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-77\) \* Int64\(50\) / Int64\(\-4\) \- Int64\(\-47\) \+ Int64\(\-11\) 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 COUNT ( * ) + - 77 * 50 / - 4 - + - 47 + + - 11 col0, + CAST ( NULL AS FLOAT8 ) + 66 + + + 26 + + - COUNT ( DISTINCT 92 ), + COUNT ( * ) AS col0 query I rowsort label-6745 @@ -36589,7 +36589,7 @@ SELECT 7 + + - 28 / + 13, CAST ( + COUNT ( * ) AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(\(\- Int64\(27\)\), Int64\(51\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-64\)\)\) AS col2" at position 0 and "Int64\(69\) \+ 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\(27\)\), Int64\(51\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-64\)\)\) AS col2" at position 0 and "Int64\(69\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COALESCE ( - + 27, + 51, - COUNT ( * ) * - 64 ) AS col2, + 69 + + + COUNT ( * ) AS col2 query I rowsort label-6965 @@ -37246,7 +37246,7 @@ SELECT 59 * - - 90 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -94 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) 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\(\-94\) 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 - 94 AS col2, COUNT ( * ) AS col2 query I rowsort label-7091 @@ -39662,7 +39662,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 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\(\*\) )?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 ( * ) AS col2, COUNT ( * ) AS col2 query I rowsort label-7548 @@ -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 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\. 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 @@ -49390,7 +49390,7 @@ SELECT 29 + + - 86 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) 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\(20\) 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 20 AS col2, COUNT ( * ) AS col2 query II rowsort label-9398 @@ -49403,7 +49403,7 @@ SELECT DISTINCT COUNT ( - NULLIF ( + - 5, - 70 + CAST ( NULL AS INTEGER ) ) ), 3 # Datafusion - Expected - 1 # 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\(\*\) AS col2" at position 0 and "Int64\(12\) 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\(\*\) )?AS col2" at position 0 and "Int64\(12\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col2, + MAX ( ALL - + CAST ( NULL AS INTEGER ) ), + 12 AS col2 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..249a852 100644 --- a/data/sqlite/random/expr/slt_good_112.slt +++ b/data/sqlite/random/expr/slt_good_112.slt @@ -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 Int32\) 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 @@ -9192,7 +9192,7 @@ SELECT + ( + 91 ) AS col1, 12 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 111 -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\(\-47\), Int64\(25\) \* 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "\(\- coalesce\(Int64\(\-47\), Int64\(25\) \* count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col0, - COALESCE ( - 47, + 25 * COUNT ( * ) ) + + 64 AS col0 query II rowsort label-1740 @@ -9967,7 +9967,7 @@ SELECT + ( - - 27 ) * + 92 + 60 / - 72 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 69 -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\(\(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "max\(\(\- Int64\(\-69\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) col0, + MAX ( - - 69 ) AS col0 query II rowsort @@ -12027,7 +12027,7 @@ SELECT DISTINCT + COUNT ( * ) + + 31 + 4 + - - 41 + + 81 * 92 + + 16 AS col1, ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 46 -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 "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\(\*\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) + + COUNT ( * ) AS col0, + 46 AS col0 query I rowsort label-2277 @@ -15153,7 +15153,7 @@ SELECT ALL + 53 * - ( - - 76 ) + 4 * ( + 43 ) # 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 "Int64\(97\) 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\) 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 97 AS col2, COUNT ( * ) AS col2 query I rowsort label-2876 @@ -15248,7 +15248,7 @@ SELECT 76 + + + 55 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -91 # Datafusion - Expected - 1 -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\(\*\) AS col2" at position 1 have the 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\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 91 AS col2, + COUNT ( * ) col2 query I rowsort @@ -18909,7 +18909,7 @@ SELECT MAX ( + ( 51 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -1960 -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\(\-28\)\) \* \(\- 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\(70\) \* \(\- Int64\(\-28\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, 70 * - - 28 * - COUNT ( * ) AS col2 query I rowsort label-3591 @@ -23125,7 +23125,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 27 -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 "\(\- nullif\(Int64\(\-27\), sum\(Int64\(\-43\)\) \* 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "\(\- nullif\(Int64\(\-27\), sum\(Int64\(\-43\)\) \* Int64\(78\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, - NULLIF ( + - 27, + SUM ( - 43 ) * 78 ) AS col2 query I rowsort label-4396 @@ -23928,7 +23928,7 @@ SELECT + 21 * - 25 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -1200 -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\(\(\- Int64\(\-30\)\)\) \* \(\- 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 "max\(\(\- Int64\(\-30\)\)\) \* \(\- Int64\(40\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col0, MAX ( ALL - - 30 ) * - + 40 AS col0 query I rowsort @@ -24410,7 +24410,7 @@ SELECT ALL ( ( - 54 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -40 # Datafusion - Expected - 101 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) AS col0" at position 0 and "nullif\(Int64\(79\), Int64\(\-81\)\) \+ Int64\(22\) / 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\(\-40\) AS col0" at position 0 and "nullif\(Int64\(79\), Int64\(\-81\)\) \+ Int64\(22\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 40 col0, NULLIF ( + 79, - 81 ) + 22 / + COUNT ( * ) col0 query I rowsort label-4639 @@ -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 Int32\) 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 @@ -28451,7 +28451,7 @@ SELECT ALL 6 * + 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 1 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 90 AS col1, COUNT ( * ) AS col1 query II rowsort @@ -28633,7 +28633,7 @@ SELECT ALL + 70, - 2 * - 68 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 "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(76\) \- \(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(76\) \- \(\- Int64\(\-77\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, + 76 - - - 77 AS col2 query I rowsort @@ -29354,7 +29354,7 @@ SELECT + NULLIF ( - COUNT ( * ), 24 ) / + 86 * - - 77 * 3 col0 # 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 "count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + COUNT ( * ) AS col1, + 3 AS col1 query I rowsort label-5572 @@ -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 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\. 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 @@ -36482,7 +36482,7 @@ SELECT ALL - MIN ( - 51 ) # 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 "\(\- Int64\(\-59\)\) 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\(\-59\)\) 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 - - 59 AS col2, + COUNT ( * ) col2 query I rowsort label-6928 @@ -37798,7 +37798,7 @@ SELECT ALL 96 + - 52 * + NULLIF ( - 73, 93 * + + 55 + + 34 * + + 26 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col0" at position 0 and "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\(26\) AS col0" at position 0 and "Int64\(77\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 26 AS col0, + 77 + COUNT ( * ) col0 query I rowsort label-7179 @@ -37829,7 +37829,7 @@ SELECT ALL + 41 + + - 53 / - - CAST ( 72 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) \* count\(Int64\(1\)\) AS count\(\*\) 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\(\-23\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 23 * + COUNT ( * ) AS col2, 54 AS col2 query I rowsort label-7185 @@ -43084,7 +43084,7 @@ SELECT DISTINCT COUNT ( * ) / + + 91 + + - 53 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) / Int64\(2\) \+ \(\- Int64\(\-8\)\) \+ \(\- Int64\(\-92\)\) / Int64\(\-73\) 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\(8\) / Int64\(2\) \+ \(\- Int64\(\-8\)\) \+ \(\- Int64\(\-92\)\) / Int64\(\-73\) 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 8 / 2 + - - 8 + - - 92 / - 73 AS col2, COUNT ( * ) AS col2 query II rowsort @@ -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 Int32\)\) / 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 @@ -47488,7 +47488,7 @@ SELECT + + 79 * - COUNT ( ALL + + 82 ) + + + 12 + - + 41 * + - ( - - 7 ) * - + C # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -2311 -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\(DISTINCT Int64\(2\)\) \+ Int64\(63\) \* Int64\(\-36\) \+ 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\(\*\) )?AS col2" at position 0 and "sum\(DISTINCT Int64\(2\)\) \+ Int64\(63\) \* Int64\(\-36\) \+ Int64\(\-45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, + SUM ( DISTINCT 2 ) + 63 * + - 36 + - 45 AS col2 query II rowsort label-9026 @@ -48664,7 +48664,7 @@ SELECT - ( - 16 ) * 44 + 88 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 35 -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\) AS col1" at position 1 have the same name\. Consider aliasing \("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\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COUNT ( * ) AS col1, + 35 AS col1 query I rowsort label-9255 diff --git a/data/sqlite/random/expr/slt_good_113.slt b/data/sqlite/random/expr/slt_good_113.slt index d7d8c09..42eb234 100644 --- a/data/sqlite/random/expr/slt_good_113.slt +++ b/data/sqlite/random/expr/slt_good_113.slt @@ -1033,7 +1033,7 @@ SELECT 67 - - 63 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 12 -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\(6\) \* 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(6\) \* Int64\(2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col2, 6 * 2 AS col2 query I rowsort label-187 @@ -6819,7 +6819,7 @@ SELECT - 23 + + + 66 # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col0, + 89 AS col0 # Datafusion - Types were automatically converted from: @@ -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 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\. 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 @@ -9280,7 +9280,7 @@ SELECT 41 / COUNT ( DISTINCT - 43 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) / count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(62\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(87\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 62 / COUNT ( * ) AS col0, 87 AS col0 query II rowsort @@ -14551,7 +14551,7 @@ SELECT + - COUNT ( * ) * - - COUNT ( * ) / + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -2006 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) / Int64\(65\) AS col2" at position 0 and "Int64\(\-59\) \* Int64\(34\) \* 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\) / Int64\(65\) AS col2" at position 0 and "Int64\(\-59\) \* Int64\(34\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 11 / + 65 AS col2, - 59 * + 34 * + + COUNT ( * ) col2 query I rowsort label-2765 @@ -15104,7 +15104,7 @@ SELECT DISTINCT - 0 * - + 91 AS col0 # 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 "count\(Int64\(1\)\) AS count\(\*\) 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\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(28\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) col0, 28 AS col0 query I rowsort label-2871 @@ -15230,7 +15230,7 @@ SELECT - 98 AS col1, NULLIF ( 52, + 8 ) + + - 24 # 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 "Int64\(23\) AS col2" at position 0 and "Int64\(\-3\) \* 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\(23\) AS col2" at position 0 and "Int64\(\-3\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 23 AS col2, - 3 * + COUNT ( * ) AS col2 query II rowsort @@ -17178,7 +17178,7 @@ SELECT + COUNT ( ALL + + 66 ) AS col1 # 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 "Int64\(\-50\) \+ \(\- CASE Int64\(\-48\) WHEN Int64\(65\) \+ Int64\(\-71\) THEN Int64\(3\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(20\) END\) 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 "Int64\(\-50\) \+ \(\- CASE Int64\(\-48\) WHEN Int64\(65\) \+ Int64\(\-71\) THEN Int64\(3\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(20\) END\) 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 - 50 + - + CASE - 48 WHEN + 65 + - 71 THEN 3 * + COUNT ( * ) / 20 END col1, + 17 * COUNT ( * ) AS col1 query I rowsort label-3264 @@ -18928,7 +18928,7 @@ NULL # Datafusion - Expected - 1 # Datafusion - Expected - NULL # Datafusion - Expected - 37 -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\) \+ Int64\(86\) 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 0 and "Int64\(\-49\) \+ Int64\(86\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + COUNT ( * ) AS col0, - CASE - + MIN ( DISTINCT + + 86 ) WHEN - + 68 / + 7 * - 84 + ( + COUNT ( DISTINCT - 94 ) ) THEN + - SUM ( DISTINCT + + CAST ( NULL AS INTEGER ) ) END * 89 + + CAST ( NULL AS INTEGER ) - AVG ( + - CASE 45 WHEN 81 / - - 22 THEN NULL WHEN - + 78 THEN 70 END ) AS col2, + - 49 + + 86 AS col0 query I rowsort label-3597 @@ -19722,7 +19722,7 @@ SELECT ALL - - 7 AS col1, + 64 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -333 # Datafusion - Expected - -369 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \+ Int64\(\-95\) \* Int64\(4\) AS col0" at position 0 and "Int64\(9\) \* \(\- max\(Int64\(41\)\)\) \* 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\(\-95\) \* Int64\(4\) AS col0" at position 0 and "Int64\(9\) \* \(\- max\(Int64\(41\)\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 47 + - 95 * + 4 AS col0, 9 * - MAX ( ALL 41 ) * + COUNT ( * ) AS col0 # Datafusion - Types were automatically converted from: @@ -20212,7 +20212,7 @@ SELECT DISTINCT - + 61 / - 77 + COUNT ( * ) 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 col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- \(\- count\(DISTINCT 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- \(\- count\(DISTINCT Int64\(\-4\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col2, - COUNT ( * ) * - - COUNT ( DISTINCT - 4 ) AS col2 query I rowsort label-3841 @@ -22820,7 +22820,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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) col0, COUNT ( * ) AS col0 query I rowsort @@ -22941,7 +22941,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -220 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) \* Int64\(\-20\) 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\(11\) \* Int64\(\-20\) 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 11 * + - 20 AS col0, COUNT ( * ) AS col0 query II rowsort @@ -23558,7 +23558,7 @@ SELECT ALL + 45 * + - 33 * + - 71 AS col1 # 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 "Int64\(\-29\) 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\(\-29\) 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 - 29 AS col1, COUNT ( * ) AS col1 query I rowsort @@ -24708,7 +24708,7 @@ NULL # Datafusion - Expected - 95 # Datafusion - Expected - -43367 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \+ Int64\(84\) \* count\(Int64\(81\)\) \* Int64\(\-86\) \* Int64\(6\) \- Int64\(51\) 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\(28\) \+ Int64\(84\) \* count\(Int64\(81\)\) \* Int64\(\-86\) \* Int64\(6\) \- Int64\(51\) 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 ALL + 95, 28 + 84 * COUNT ( 81 ) * - 86 * ( + 6 ) - + 51 col1, COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: @@ -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 Int32\)\) \* \(\- 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 @@ -35060,7 +35060,7 @@ SELECT ALL 18 + - - 89 + COUNT ( - + 9 ) + + - 58 + NULLIF ( - 40, 88 ) * - - CO # Datafusion - Datafusion expected results: # Datafusion - Expected - 598 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \* Int64\(9\) \+ Int64\(94\) AS col1" at position 0 and "Int64\(43\) \+ 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\(56\) \* Int64\(9\) \+ Int64\(94\) AS col1" at position 0 and "Int64\(43\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 56 * + 9 + 94 AS col1, 43 + + + COUNT ( * ) AS col1 query I rowsort @@ -41870,7 +41870,7 @@ SELECT + 74 * - 50 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -39 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) \- count\(Int64\(1\)\) AS count\(\*\) 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\(\-38\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 38 - COUNT ( * ) AS col1, + ( + 24 ) AS col1 query I rowsort label-7958 @@ -43340,7 +43340,7 @@ SELECT COALESCE ( + 54, - 38 * - 36 ) + + 62 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 22 -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\(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\(\*\) )?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 ( * ) AS col2, 22 col2 query I rowsort @@ -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 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\. SELECT ALL - 61 - + + CAST ( + COUNT ( * ) AS INTEGER ) / - 79 AS col2, - 6 + - ( - ( + 8 ) ) * + 11 AS col2 query I rowsort label-8504 @@ -47914,7 +47914,7 @@ SELECT ALL + COUNT ( DISTINCT 42 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -9 -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\(\-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\(\*\) )?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 COUNT ( * ) AS col2, - 9 AS col2 query I rowsort @@ -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 Int32\)\) / 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 @@ -51067,7 +51067,7 @@ SELECT ALL + 30 + - 48 AS col2 # Datafusion - Expected - 1 # Datafusion - Expected - 1482 # Datafusion - Expected - -16 -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\(57\) \* 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(57\) \* Int64\(26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( + COUNT ( * ) ) AS col1, + 57 * + + 26 AS col1, - 16 query I rowsort @@ -51289,7 +51289,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 50238 -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\(40\) \* Int64\(\-74\) \* Int64\(\-17\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ sum\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(40\) \* Int64\(\-74\) \* Int64\(\-17\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ sum\(Int64\(\-83\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, 40 * - 74 * - 17 + + + COUNT ( * ) + SUM ( ALL - 83 ) AS col0 query I rowsort label-9749 @@ -52451,7 +52451,7 @@ SELECT ALL - 44 - - - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-90\)\) \- count\(Int64\(1\)\) AS count\(\*\) 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\(\-90\)\) \- count\(Int64\(1\)\) (AS count\(\*\) )?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 - - 90 - + COUNT ( * ) col0, + ( + + 9 ) col0 query II rowsort diff --git a/data/sqlite/random/expr/slt_good_114.slt b/data/sqlite/random/expr/slt_good_114.slt index 20b53cb..0836c42 100644 --- a/data/sqlite/random/expr/slt_good_114.slt +++ b/data/sqlite/random/expr/slt_good_114.slt @@ -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 Int32\) \+ 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 @@ -5165,7 +5165,7 @@ SELECT + 47 * - - CAST ( + COUNT ( * ) AS INTEGER ) / - 74 # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) 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\(27\) 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 27 col0, ( + COUNT ( * ) ) AS col0 query II rowsort label-974 @@ -6572,7 +6572,7 @@ SELECT COUNT ( + + 10 ) AS col1 # 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 col2" at position 0 and "Int64\(\-25\) \+ Int64\(57\) / Int64\(60\) \* 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(\-25\) \+ Int64\(57\) / Int64\(60\) \* Int64\(\-20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, - 25 + 57 / + 60 * - 20 AS col2 query I rowsort @@ -14879,7 +14879,7 @@ SELECT 35 AS col0, 43 * - - 30 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) 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\(74\) 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 + + 74 AS col2, COUNT ( * ) AS col2 query I rowsort @@ -14902,7 +14902,7 @@ SELECT + 39 - - 77 AS col1, - 99 * - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 63 -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\(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 "Int64\(63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col2, + 63 AS col2 query I rowsort label-2831 @@ -17798,7 +17798,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -2640 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \* nullif\(Int64\(\-55\), Int64\(12\) \* Int64\(15\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(22\) \+ Int64\(65\) \- \(\- Int64\(\-30\)\) \+ Int64\(7\) \- Int64\(15\) \* Int64\(\-53\) \* Int64\(20\) \+ Int64\(\-49\) \+ Int64\(60\) \* 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 "Int64\(48\) \* nullif\(Int64\(\-55\), Int64\(12\) \* Int64\(15\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(22\) \+ Int64\(65\) \- \(\- Int64\(\-30\)\) \+ Int64\(7\) \- Int64\(15\) \* Int64\(\-53\) \* Int64\(20\) \+ Int64\(\-49\) \+ Int64\(60\) \* 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 + 48 * + NULLIF ( - 55, + 12 * 15 * + - COUNT ( * ) * 22 + + 65 - - ( - 30 ) + + 7 - 15 * - 53 * 20 + - 49 + 60 * + - 77 ) col0, + COUNT ( * ) AS col0 query I rowsort label-3377 @@ -24131,7 +24131,7 @@ SELECT ALL 86 + + COUNT ( DISTINCT 45 ) + + ( - 86 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -28 # Datafusion - Expected - 1 -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\(\*\) AS col2" at position 1 have the 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\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 28 AS col2, COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: @@ -24910,7 +24910,7 @@ SELECT + 86 + ( - 19 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 93 -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\(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\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, + 93 AS col2 query I rowsort @@ -29187,7 +29187,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 # Datafusion - Expected - -352 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) \+ Int64\(19\) AS col1" at position 0 and "Int64\(\-88\) \* nullif\(Int64\(4\), Int64\(78\)\) \* 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\(\-29\) \+ Int64\(19\) AS col1" at position 0 and "Int64\(\-88\) \* nullif\(Int64\(4\), Int64\(78\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 29 + 19 AS col1, - 88 * NULLIF ( 4, + 78 ) * COUNT ( * ) AS col1 query II rowsort @@ -31841,7 +31841,7 @@ SELECT ALL - NULLIF ( - 11, + - 57 ) - 87 / - COUNT ( * ) AS col2 # Datafusion - Expected - 1 # Datafusion - Expected - -46 # Datafusion - Expected - 48 -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\(48\) 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\(\*\) )?AS col2" at position 0 and "Int64\(48\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, - ( - + 46 ) * + - COUNT ( * ) AS col0, + 48 AS col2 query I rowsort label-6064 @@ -33685,7 +33685,7 @@ SELECT + 30 + - - ( 67 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \- 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 "Int64\(0\) \- 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 ALL 0 - COUNT ( * ) AS col1, - 47 AS col1 query I rowsort label-6416 @@ -40635,7 +40635,7 @@ SELECT ALL + - 96 col0 # 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 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\(\*\) )?AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, 19 col1 query I rowsort label-7739 @@ -47284,7 +47284,7 @@ SELECT 87 / + 50 + + 78 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 "\(\- \(\- 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\(\*\)\)\) 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 ( * ) AS col1, + COUNT ( * ) AS col1 query I rowsort @@ -48777,7 +48777,7 @@ SELECT + 4 - + + CAST ( - + 17 AS INTEGER ) / + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4920 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(82\)\)\) \* Int64\(\-60\) \* count\(Int64\(1\)\) AS count\(\*\) 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\(82\)\)\) \* Int64\(\-60\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( - - ( + + 82 ) ) * - 60 * COUNT ( * ) AS col1, + 3 AS col1 query I rowsort label-9290 @@ -50768,7 +50768,7 @@ SELECT + ( 33 ) AS col2 # 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 "Int64\(67\) / CASE \(\- \(\- min\(Int64\(46\)\)\)\) WHEN \(\- Int64\(55\)\) THEN NULL ELSE Int64\(58\) END \+ Int64\(92\) 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\(67\) / CASE \(\- \(\- min\(Int64\(46\)\)\)\) WHEN \(\- Int64\(55\)\) THEN NULL ELSE Int64\(58\) END \+ Int64\(92\) 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 67 / + CASE - - MIN ( ALL 46 ) WHEN - + 55 THEN NULL ELSE 58 END + 92 AS col0, + COUNT ( * ) AS col0 query II rowsort label-9666 diff --git a/data/sqlite/random/expr/slt_good_115.slt b/data/sqlite/random/expr/slt_good_115.slt index 133313c..064fb5c 100644 --- a/data/sqlite/random/expr/slt_good_115.slt +++ b/data/sqlite/random/expr/slt_good_115.slt @@ -224,7 +224,7 @@ SELECT DISTINCT + MAX ( ALL 88 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 41 -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\) AS col0" at position 1 have the same name\. Consider aliasing \("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\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) col0, 41 AS col0 query I rowsort label-37 @@ -2466,7 +2466,7 @@ SELECT + COUNT ( * ) AS col0, 61 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -32 -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\(0\) \+ \(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(0\) \+ \(\- Int64\(32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, - 0 + - + 32 col1 query II rowsort @@ -6835,7 +6835,7 @@ SELECT SUM ( - - 5 ) + - 0 AS col0 # 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 "coalesce\(\(\- Int64\(64\)\), \(\- coalesce\(Int64\(39\), Int64\(9\) \+ Int64\(88\)\)\)\) 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 "coalesce\(\(\- Int64\(64\)\), \(\- coalesce\(Int64\(39\), Int64\(9\) \+ Int64\(88\)\)\)\) 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 COALESCE ( - + 64, - + COALESCE ( 39, 9 + + 88 ) ) AS col1, COUNT ( * ) + + COUNT ( * ) AS col1 query I rowsort @@ -8486,7 +8486,7 @@ SELECT ALL 78 * 50 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 97 -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\(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\(\*\) )?AS col0" at position 0 and "Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col0, ( 97 ) col0 query I rowsort label-1609 @@ -12597,7 +12597,7 @@ SELECT + MAX ( ALL - - 50 ) AS col2, + 36 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 5312 -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\(\-64\) \* 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\(\*\) )?AS col2" at position 0 and "Int64\(\-64\) \* Int64\(\-83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) col2, - 64 * - 83 AS col2 query II rowsort @@ -16256,7 +16256,7 @@ SELECT DISTINCT NULLIF ( COALESCE ( 5, - 76 ), + 89 ) * + MAX ( DISTINCT - + 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col2" at position 0 and "Int64\(\-26\) \- 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\(13\) AS col2" at position 0 and "Int64\(\-26\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 13 col2, - 26 - + COUNT ( * ) AS col2 query II rowsort @@ -20177,7 +20177,7 @@ SELECT - 75 - + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 69321 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col0" at position 0 and "Int64\(\-20\) \* min\(Int64\(4\)\) \- Int64\(39\) \+ Int64\(\-64\) \* Int64\(35\) \* Int64\(\-31\) \* 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\(63\) AS col0" at position 0 and "Int64\(\-20\) \* min\(Int64\(4\)\) \- Int64\(39\) \+ Int64\(\-64\) \* Int64\(35\) \* Int64\(\-31\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 63 AS col0, - 20 * + MIN ( ALL + 4 ) - 39 + - 64 * 35 * - 31 * ( COUNT ( * ) ) AS col0 query I rowsort label-3845 @@ -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 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\. 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 @@ -20811,7 +20811,7 @@ SELECT - 82 * - 4 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -89 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) \* 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\(\-89\) \* 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 - 89 * + COUNT ( * ) col0, COUNT ( * ) AS col0 query I rowsort @@ -21920,7 +21920,7 @@ SELECT ( - 38 ) - COUNT ( DISTINCT + + 20 ) + 25 + 21 - 77 # 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\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col0, 31 col0 query II rowsort @@ -24039,7 +24039,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1071 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \* Int64\(51\) AS col2" at position 0 and "Int64\(91\) / count\(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\(21\) \* Int64\(51\) AS col2" at position 0 and "Int64\(91\) / count\(Int64\(10\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 21 * 51 AS col2, 91 / + COUNT ( 10 ) + COUNT ( * ) AS col2 query I rowsort @@ -25224,7 +25224,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\(0\)\) AS col1" at position 0 and "\(\- \(\- Int64\(39\)\)\) \* \(\- count\(DISTINCT Int64\(84\)\)\) \* 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\(0\)\) AS col1" at position 0 and "\(\- \(\- Int64\(39\)\)\) \* \(\- count\(DISTINCT Int64\(84\)\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 0 AS col1, - ( - + 39 ) * - COUNT ( DISTINCT 84 ) * COUNT ( * ) AS col1 query I rowsort @@ -25347,7 +25347,7 @@ SELECT - MIN ( ALL - - 18 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(64\) \- Int64\(45\) / 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\(64\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(64\) \- Int64\(45\) / Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 64 * + COUNT ( * ) AS col0, 64 - 45 / + 65 AS col0 query II rowsort label-4824 @@ -26125,7 +26125,7 @@ SELECT ALL + SUM ( - + 87 ) AS col0 # 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 "Int64\(6\) \+ Int64\(18\) AS col1" at position 0 and "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\(6\) \+ Int64\(18\) AS col1" at position 0 and "Int64\(21\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 6 + + 18 AS col1, 21 * COUNT ( * ) AS col1 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 Int32\) \+ 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 @@ -31050,7 +31050,7 @@ SELECT 73 * - ( 95 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) 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\(33\) 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 33 col2, COUNT ( * ) AS col2 query I rowsort label-5914 @@ -32842,7 +32842,7 @@ SELECT + 5 + + 16 + - 69 * COALESCE ( + 27, 52 ) - - - 47 + COALESCE ( 82, + 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col0" at position 0 and "Int64\(45\) \* 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\(75\) AS col0" at position 0 and "Int64\(45\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 75 AS col0, 45 * + COUNT ( * ) AS col0 # Datafusion - Types were automatically converted from: @@ -39062,7 +39062,7 @@ SELECT DISTINCT COUNT ( * ) + + NULLIF ( + 17, - ( 14 ) + - 6 ) - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -86 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) \+ Int64\(4\) 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\(\-90\) \+ Int64\(4\) 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 - 90 + 4 col1, COUNT ( * ) AS col1 query I rowsort label-7438 @@ -41989,7 +41989,7 @@ SELECT ALL MAX ( ALL + + 27 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) 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 "Int64\(62\) 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 62 AS col1, 13 * + COUNT ( * ) col1 query I rowsort @@ -43211,7 +43211,7 @@ SELECT + 58 + + 2 * + 54 * + 62 # 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 "count\(Int64\(1\)\) AS count\(\*\) \* max\(Int64\(4\)\) 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\(\*\) \* max\(Int64\(4\)\) 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 COUNT ( * ) * + + MAX ( ALL + + 4 ) AS col2, COUNT ( * ) AS col2 query I rowsort @@ -44289,7 +44289,7 @@ SELECT COUNT ( ALL - 35 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 38 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, + 38 AS col1 query I rowsort label-8426 @@ -45323,7 +45323,7 @@ SELECT DISTINCT - ( + 4 ) + 79 - + 95 + + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col0" at position 0 and "Int64\(89\) \* 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\(14\) AS col0" at position 0 and "Int64\(89\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 14 AS col0, 89 * + COUNT ( * ) AS col0 query I rowsort label-8624 @@ -45385,7 +45385,7 @@ SELECT - MAX ( + 39 ) * - ( - 87 ) * CAST ( 41 AS INTEGER ) - + + 92 + + + 47 * # 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 "Int64\(\-31\) 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\(\-31\) 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 - 31 AS col0, COUNT ( * ) col0 query II rowsort @@ -45618,7 +45618,7 @@ SELECT + MAX ( - 12 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -94 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) \* count\(Int64\(1\)\) AS count\(\*\) 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\(\-94\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 94 * ( + COUNT ( * ) ) AS col0, 69 AS col0 query I rowsort label-8680 @@ -47274,7 +47274,7 @@ SELECT + 39 + + 69 + 7 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) 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\(32\) 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 32 AS col2, COUNT ( * ) AS col2 query I rowsort label-8993 @@ -47515,7 +47515,7 @@ SELECT ALL 9 * - - 80 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) 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\(89\) 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 89 AS col0, + COUNT ( * ) AS col0 query I rowsort @@ -49076,7 +49076,7 @@ SELECT - 0 / - + 40 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col2" at position 0 and "Int64\(65\) \* 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\) AS col2" at position 0 and "Int64\(65\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + 70 AS col2, 65 * + COUNT ( * ) AS col2 query II rowsort @@ -49408,7 +49408,7 @@ SELECT DISTINCT MIN ( - ( 12 ) ) + + 22 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5312 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(94\)\) \* \(\- Int64\(\-57\)\) \+ Int64\(46\) 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\(94\)\) \* \(\- Int64\(\-57\)\) \+ Int64\(46\) 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 - + 94 * - - 57 + 46 col1, COUNT ( * ) AS col1 query I rowsort @@ -50020,7 +50020,7 @@ SELECT DISTINCT CASE - 34 WHEN + 35 * + COUNT ( * ) + - 95 * 89 THEN NULL ELSE - # Datafusion - Datafusion expected results: # Datafusion - Expected - -81 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) \+ Int64\(1\) AS col1" at position 0 and "Int64\(0\) / 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\(\-82\) \+ Int64\(1\) AS col1" at position 0 and "Int64\(0\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 82 + + 1 AS col1, 0 / + COUNT ( * ) AS col1 query I rowsort @@ -50036,7 +50036,7 @@ SELECT + 99 + - CAST ( - 33 AS INTEGER ) + - + CASE WHEN COUNT ( * ) NOT IN ( 73 # 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\(24\) \- Int64\(\-46\) \- Int64\(\-5\) \* Int64\(\-1\) \+ Int64\(\-65\) 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\(24\) \- Int64\(\-46\) \- Int64\(\-5\) \* Int64\(\-1\) \+ Int64\(\-65\) 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 24 - + - 46 - - 5 * - 1 + + - 65 AS col1, + COUNT ( * ) AS col1 query I rowsort @@ -50453,7 +50453,7 @@ SELECT 53 * MIN ( 70 ) - + + ( MAX ( ALL + - 81 ) ) + + COUNT ( * ) + + ( - 13 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(5\)\) AS col1" at position 0 and "Int64\(61\) \+ 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\(5\)\) AS col1" at position 0 and "Int64\(61\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( + COUNT ( + 5 ) ) AS col1, ( + + 61 ) + COUNT ( * ) AS col1 query I rowsort label-9596 diff --git a/data/sqlite/random/expr/slt_good_116.slt b/data/sqlite/random/expr/slt_good_116.slt index 1a3b003..08f7e53 100644 --- a/data/sqlite/random/expr/slt_good_116.slt +++ b/data/sqlite/random/expr/slt_good_116.slt @@ -1095,7 +1095,7 @@ SELECT - 32 * + - 33 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -3917 -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\(58\) \* Int64\(\-65\) \+ Int64\(\-71\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(4\) \* 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\(\*\) )?AS col2" at position 0 and "Int64\(58\) \* Int64\(\-65\) \+ Int64\(\-71\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(4\) \* Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, + 58 * - 65 + - 71 * COUNT ( * ) - 4 * + 19 AS col2 query I rowsort label-202 @@ -3609,7 +3609,7 @@ SELECT - 98 + 33 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \+ 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 "Int64\(77\) \+ 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 + ( + + 77 ) + + - 83 AS col2, COUNT ( * ) AS col2 query I rowsort label-679 @@ -7966,7 +7966,7 @@ SELECT DISTINCT 87 + - 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) 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\(33\) 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 + 33 AS col0, COUNT ( * ) AS col0 query I rowsort label-1506 @@ -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 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\. 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: @@ -12216,7 +12216,7 @@ NULL # 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 col1" at position 0 and "coalesce\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "coalesce\(Int64\(\-67\), Int64\(\-18\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col1, COALESCE ( + ( - 67 ), - 18 ) AS col1 query I rowsort @@ -14042,7 +14042,7 @@ SELECT DISTINCT + 76 + ( + MAX ( + - 31 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -20 # Datafusion - Expected - -339 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-21\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(24\) \+ Int64\(74\) \+ \(\- Int64\(23\)\) \* Int64\(19\) \* count\(nullif\(\(\- Int64\(46\)\), Int64\(\-14\) \- 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\(\-21\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(24\) \+ Int64\(74\) \+ \(\- Int64\(23\)\) \* Int64\(19\) \* count\(nullif\(\(\- Int64\(46\)\), Int64\(\-14\) \- Int64\(15\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 21 + + COUNT ( * ) AS col0, 24 + + 74 + - + 23 * 19 * COUNT ( + NULLIF ( - + 46, - 14 - + + 15 ) ) AS col0 query I rowsort label-2666 @@ -17213,7 +17213,7 @@ SELECT DISTINCT COUNT ( * ), 80 + + - 82 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-53\)\) 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\(\-53\)\) 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 - - 53 col1, + COUNT ( * ) AS col1 query I rowsort label-3275 @@ -18728,7 +18728,7 @@ SELECT DISTINCT + - MIN ( 31 ) / - ( - 89 ) col1 # 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\(\-27\) / Int64\(68\) 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\(\-27\) / Int64\(68\) 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 - 27 / 68 AS col2, + COUNT ( * ) AS col2 query II rowsort @@ -21859,7 +21859,7 @@ SELECT - 84 * - 98 + - 20 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 "Int64\(68\) \* \(\- max\(CAST\(NULL AS Float64\)\)\) \+ Int64\(50\) \* Int64\(88\) \* \(\- Int64\(0\)\) \* \(\- max\(DISTINCT \(\- Int64\(0\)\)\)\) \+ Int64\(54\) \+ \(\- Int64\(38\)\) AS col0" at position 0 and "Int64\(82\) \- Int64\(21\) \* 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\(68\) \* \(\- max\(CAST\(NULL AS Float64\)\)\) \+ Int64\(50\) \* Int64\(88\) \* \(\- Int64\(0\)\) \* \(\- max\(DISTINCT \(\- Int64\(0\)\)\)\) \+ Int64\(54\) \+ \(\- Int64\(38\)\) AS col0" at position 0 and "Int64\(82\) \- Int64\(21\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 68 * - + MAX ( + CAST ( NULL AS FLOAT8 ) ) + 50 * 88 * - - 0 * - MAX ( DISTINCT - - 0 ) + 54 + - + 38 col0, + 82 - + 21 * + + COUNT ( * ) AS col0 query I rowsort label-4160 @@ -24637,7 +24637,7 @@ SELECT ALL - 49 - + 85 * + - ( COUNT ( * ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) AS col1" at position 0 and "Int64\(51\) \* 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\(\-22\) AS col1" at position 0 and "Int64\(51\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 22 col1, + ( + 51 ) * + COUNT ( * ) AS col1 query I rowsort @@ -25046,7 +25046,7 @@ SELECT ALL + - 77 + COUNT ( * ) * + 94 * 51 col0, ( + 22 ) - ( - - 66 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -106 # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(67\)\) \+ Int64\(\-38\) \* count\(Int64\(1\)\) AS count\(\*\) 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\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(67\)\) \+ Int64\(\-38\) \* count\(Int64\(1\)\) (AS count\(\*\) )?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 ( * ) + - + 67 + - 38 * + COUNT ( * ) AS col0, - 72 AS col0 query I rowsort @@ -27663,7 +27663,7 @@ SELECT DISTINCT 3 + + ( 98 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col2" at position 0 and "Int64\(\-74\) \- 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\) AS col2" at position 0 and "Int64\(\-74\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 73 AS col2, ( - 74 ) - + COUNT ( * ) AS col2 query II rowsort label-5268 @@ -30928,7 +30928,7 @@ SELECT DISTINCT SUM ( + ( - + 91 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - -36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \+ count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(48\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "\(\- Int64\(36\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 48 + COUNT ( * ) AS col0, ( - + 36 ) AS col0 query II rowsort label-5884 @@ -40483,7 +40483,7 @@ SELECT ALL + + 77 / + + COALESCE ( 84, + - CASE + + MAX ( DISTINCT - 11 ) WHEN + # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) / Int64\(87\) \- count\(Int64\(1\)\) AS count\(\*\) 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\(19\) / Int64\(87\) \- count\(Int64\(1\)\) (AS count\(\*\) )?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 + 19 / + 87 - + COUNT ( * ) AS col1, 83 AS col1 query I rowsort label-7702 @@ -46377,7 +46377,7 @@ SELECT SUM ( DISTINCT 67 ) AS col1, - 31 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3136 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \* Int64\(\-98\) 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\(32\) \* Int64\(\-98\) 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 32 * - 98 AS col0, COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: @@ -47898,7 +47898,7 @@ SELECT - + 69 - + - 19 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) 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\(8\) 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 + 8 AS col0, COUNT ( * ) AS col0 query I rowsort label-9113 @@ -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 Int32\) 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 @@ -52144,7 +52144,7 @@ NULL # 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 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(\-73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) col0, - 73 AS col0 query I rowsort label-9928 diff --git a/data/sqlite/random/expr/slt_good_117.slt b/data/sqlite/random/expr/slt_good_117.slt index b9ca472..8b5a8f1 100644 --- a/data/sqlite/random/expr/slt_good_117.slt +++ b/data/sqlite/random/expr/slt_good_117.slt @@ -1508,7 +1508,7 @@ SELECT DISTINCT - 72 * + MIN ( 95 ) # 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 "coalesce\(Int64\(84\), \(\- Int64\(85\)\)\) 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\(84\), \(\- Int64\(85\)\)\) 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 ( + 84, - + 85 ) AS col2, COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: @@ -2215,7 +2215,7 @@ SELECT 64 + - SUM ( - 92 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 2698 -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\) \* 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(38\) \* Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, 38 * 71 AS col2 query I rowsort label-415 @@ -3933,7 +3933,7 @@ SELECT 34 + - 62 AS col1 # Datafusion - Expected - 1 # Datafusion - Expected - 5396 # Datafusion - Expected - 10 -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 "Int64\(10\) AS col1" at position 3 have the same name\. Consider aliasing \("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 "Int64\(10\) AS col1" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 40 * + 32, COUNT ( * ) AS col1, - - 71 * 76 AS col0, 10 AS col1 query II rowsort @@ -8214,7 +8214,7 @@ SELECT + + 96 * + - CASE - 90 WHEN COUNT ( * ) THEN - 34 ELSE - 69 END + + 71 + # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) \+ sum\(\(\- Int64\(\-53\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(70\) 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\(\-85\) \+ sum\(\(\- Int64\(\-53\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(70\) 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 + - 85 + + SUM ( - - 53 ) + + COUNT ( * ) * 70 AS col2, COUNT ( * ) AS col2 query II rowsort @@ -10534,7 +10534,7 @@ SELECT ALL 2 * 76 / + 42 + + 1 / + + 39 col0 # 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 "count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) col2, + 39 col2 query I rowsort label-2007 @@ -11374,7 +11374,7 @@ SELECT - 85 * - 45 + + ( - SUM ( + 54 ) ) + + + NULLIF ( - 68, - SUM ( ALL + + 7 # Datafusion - Expected - 1 # Datafusion - Expected - 46 # Datafusion - Expected - -19 -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\(19\)\) 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 0 and "\(\- Int64\(19\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col0, 46 * - + ( - + COUNT ( * ) ) AS col2, ( - + 19 ) AS col0 query I rowsort label-2164 @@ -11701,7 +11701,7 @@ SELECT MAX ( DISTINCT + 59 ) AS col0 # 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 "count\(Int64\(1\)\) AS count\(\*\) 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\(\*\) )?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 ( * ) AS col2, - 14 AS col2 query I rowsort label-2226 @@ -14433,7 +14433,7 @@ SELECT CAST ( - - 71 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1726 # Datafusion - Expected - -159 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(76\)\) \* Int64\(\-23\) \+ Int64\(32\) \- Int64\(54\) AS col2" at position 0 and "Int64\(84\) \+ Int64\(14\) \+ \(\- Int64\(77\)\) \+ Int64\(84\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- \(\- nullif\(\(\- Int64\(95\)\), count\(Int64\(1\)\) AS count\(\*\) \* Int64\(40\)\)\)\) \- 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\(76\)\) \* Int64\(\-23\) \+ Int64\(32\) \- Int64\(54\) AS col2" at position 0 and "Int64\(84\) \+ Int64\(14\) \+ \(\- Int64\(77\)\) \+ Int64\(84\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- \(\- nullif\(\(\- Int64\(95\)\), count\(Int64\(1\)\) AS count\(\*\) \* Int64\(40\)\)\)\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 76 * - 23 + + + 32 - 54 AS col2, 84 + + 14 + - + 77 + + ( + 84 ) * - COUNT ( * ) + - - NULLIF ( - + 95, + COUNT ( * ) * + 40 ) - COUNT ( * ) AS col2 query I rowsort @@ -16558,7 +16558,7 @@ SELECT - 82 * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -20 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-21\) \+ count\(Int64\(1\)\) AS count\(\*\) 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\(\-21\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 21 + + COUNT ( * ) AS col0, 91 AS col0 query II rowsort label-3149 @@ -17383,7 +17383,7 @@ SELECT - 56 + - 33 + 99 * - 56 - 42 * + 80 AS col2, 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -32 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "\(\- Int64\(32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col2, - ( + 32 ) col2 query II rowsort @@ -19269,7 +19269,7 @@ SELECT COUNT ( * ) AS col1, - 76 * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -678 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) / \(\- Int64\(\-60\)\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(75\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(9\) \* \(\- Int64\(67\)\) 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\(51\) / \(\- Int64\(\-60\)\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(75\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(9\) \* \(\- Int64\(67\)\) 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 + 51 / ( - - 60 ) - + - COUNT ( * ) * + ( 75 ) * - COUNT ( * ) + + 9 * - + 67 col2, + COUNT ( * ) col2 query I rowsort label-3661 @@ -23885,7 +23885,7 @@ SELECT DISTINCT + 43 / + 48 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 68 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(68\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, + 68 AS col2 query II rowsort label-4534 @@ -26776,7 +26776,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 205 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) \- Int64\(\-91\) \- Int64\(53\) \+ Int64\(86\) \- count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(82\) \- Int64\(\-91\) \- Int64\(53\) \+ Int64\(86\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 82 - - 91 - + 53 + 86 - COUNT ( * ) AS col0, 79 AS col0 query I rowsort @@ -29023,7 +29023,7 @@ SELECT ALL + ( - - 88 ) * - 6 # Datafusion - Datafusion expected results: # Datafusion - Expected - -44 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) / Int64\(1\) 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\(\-44\) / Int64\(1\) 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 - 44 / 1 AS col2, + COUNT ( * ) AS col2 query I rowsort label-5513 @@ -34918,7 +34918,7 @@ SELECT ( - 76 ) AS col1, - 54 / - - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -16 -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\(\-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\(\*\) )?AS col2" at position 0 and "Int64\(\-16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, - 16 AS col2 query I rowsort label-6629 @@ -39606,7 +39606,7 @@ SELECT - 77 * + - 82 * + COUNT ( * ) - - 32 # 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 col2" at position 0 and "Int64\(0\) \+ 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(0\) \+ Int64\(\-53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, 0 + - 53 AS col2 # Datafusion - Datafusion expected results: @@ -43329,7 +43329,7 @@ SELECT ALL - 82 - - 0 + 64 AS col1 # 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 "\(\- Int64\(\-90\)\) 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\(\-90\)\) 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 - ( - 90 ) col0, COUNT ( * ) - + COUNT ( * ) AS col0 query I rowsort @@ -44732,7 +44732,7 @@ SELECT + COALESCE ( - COALESCE ( 2, COUNT ( * ) ), - + 65, + COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col0" at position 0 and "Int64\(13\) \* 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\(68\) AS col0" at position 0 and "Int64\(13\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 68 AS col0, 13 * COUNT ( * ) AS col0 query I rowsort label-8492 @@ -45582,7 +45582,7 @@ SELECT - - 30 + - 94 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col2" at position 0 and "max\(Int64\(35\)\) \+ 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\(74\) AS col2" at position 0 and "max\(Int64\(35\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 74 AS col2, MAX ( + 35 ) + COUNT ( * ) AS col2 query I rowsort label-8651 @@ -46463,7 +46463,7 @@ NULL # 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\(42\) / \(\- Int64\(\-99\)\) 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\(42\) / \(\- Int64\(\-99\)\) 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 + 42 / - - 99 AS col0, COUNT ( * ) AS col0 query I rowsort label-8818 @@ -51309,7 +51309,7 @@ SELECT - COALESCE ( - 17, - 40 * - 63, - 63 ) / + + 22 # 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\(\-16\) \+ 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(\-16\) \+ Int64\(6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col0, ( - 16 ) + 6 AS col0 query I rowsort label-9745 @@ -51884,7 +51884,7 @@ NULL # 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 "count\(DISTINCT Int64\(12\)\) \* \(\- Int64\(49\)\) 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 Int64\(12\)\) \* \(\- Int64\(49\)\) 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 ( DISTINCT 12 ) * - + 49 AS col0, + COUNT ( * ) AS col0 # Datafusion - Types were automatically converted from: diff --git a/data/sqlite/random/expr/slt_good_118.slt b/data/sqlite/random/expr/slt_good_118.slt index bdaa3d4..2765940 100644 --- a/data/sqlite/random/expr/slt_good_118.slt +++ b/data/sqlite/random/expr/slt_good_118.slt @@ -3238,7 +3238,7 @@ SELECT + 46 / + + CAST ( + + ( - 59 ) AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - 9457 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col1" at position 0 and "\(\- Int64\(\-99\)\) \+ Int64\(70\) \+ Int64\(\-2\) \* Int64\(54\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(86\) / 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\(38\) AS col1" at position 0 and "\(\- Int64\(\-99\)\) \+ Int64\(70\) \+ Int64\(\-2\) \* Int64\(54\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(86\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 38 AS col1, - ( - 99 ) + 70 + - 2 * 54 * - COUNT ( * ) * + 86 / + COUNT ( * ) AS col1 query I rowsort @@ -8755,7 +8755,7 @@ SELECT ALL - 19 + 62 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- \(\- Int64\(46\)\)\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(19\) \* count\(Int64\(1\)\) AS count\(\*\) 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\(\(\- \(\- Int64\(46\)\)\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(19\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + SUM ( ( - - ( + 46 ) ) ) + - COUNT ( * ) - + 19 * COUNT ( * ) AS col1, 58 AS col1 query I rowsort @@ -10262,7 +10262,7 @@ SELECT ALL + 94 + - NULLIF ( - 97, + 27 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 4307 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) \* nullif\(Int64\(80\), count\(Int64\(1\)\) AS count\(\*\) \+ \(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(80\), Int64\(\-86\)\)\)\) \+ Int64\(\-13\) / count\(Int64\(1\)\) AS count\(\*\) 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\(54\) \* nullif\(Int64\(80\), count\(Int64\(1\)\) AS count\(\*\) \+ \(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(80\), Int64\(\-86\)\)\)\) \+ Int64\(\-13\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( + + 54 ) * + NULLIF ( 80, + + COUNT ( * ) + - COALESCE ( COUNT ( * ), 80, - 86 ) ) + - 13 / COUNT ( * ) col2, 34 col2 query I rowsort label-1953 @@ -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 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\. SELECT ALL CAST ( NULL AS INTEGER ) col0, COUNT ( * ) AS col0 query II rowsort label-2379 @@ -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 Int32\) \+ \(\- 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 @@ -21327,7 +21327,7 @@ SELECT - 45 / + + 8 + MIN ( ALL - 22 ) + 76 * - 79 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col1" at position 0 and "Int64\(16\) \* 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\) AS col1" at position 0 and "Int64\(16\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 60 AS col1, 16 * + + COUNT ( * ) AS col1 query I rowsort label-4062 @@ -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 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\. SELECT CAST ( NULL AS INTEGER ) * + 91 + ( + 87 ) * 63 + COUNT ( * ) col0, 11 + - 24 + + 70 * + 29 AS col0 query II rowsort label-4064 @@ -23221,7 +23221,7 @@ SELECT NULLIF ( + - 21, + 46 + - COUNT ( * ) ) * 76 * 65 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 151 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \+ sum\(DISTINCT Int64\(94\)\) AS col1" at position 0 and "Int64\(33\) \+ 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\(57\) \+ sum\(DISTINCT Int64\(94\)\) AS col1" at position 0 and "Int64\(33\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 57 + + SUM ( DISTINCT 94 ) col1, 33 + + COUNT ( * ) AS col1 query II rowsort @@ -23321,7 +23321,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col1" at position 0 and "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 "Int64\(73\) AS col1" at position 0 and "Int64\(46\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 73 AS col1, 46 + + COUNT ( * ) AS col1 query I rowsort label-4449 @@ -23337,7 +23337,7 @@ SELECT ALL 30 * - 90 # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - -71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(72\)\) \* count\(Int64\(1\)\) AS count\(\*\) 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 "min\(Int64\(72\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(\-71\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + MIN ( + 72 ) * COUNT ( * ) AS col0, - 71 AS col0 query I rowsort label-4452 @@ -24330,7 +24330,7 @@ SELECT + ( + SUM ( DISTINCT 41 ) ) + - 16 AS col0 # 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\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 + COUNT ( * ) AS col1, 18 AS col1 query I rowsort label-4641 @@ -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 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\. 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 @@ -29498,7 +29498,7 @@ SELECT + 7 / + COUNT ( - 89 ) + - 98 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) 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\(57\) 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 57 AS col0, + COUNT ( * ) AS col0 query I rowsort label-5619 @@ -31380,7 +31380,7 @@ SELECT DISTINCT + COUNT ( * ) * - + 93 * + SUM ( 34 ) * - 64 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col0" at position 0 and "count\(Int64\(91\)\) \+ 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\) AS col0" at position 0 and "count\(Int64\(91\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 71 col0, + COUNT ( ALL + + 91 ) + COUNT ( * ) AS col0 query I rowsort label-5978 @@ -38676,7 +38676,7 @@ SELECT DISTINCT + ( 49 ) * - - COUNT ( * ) / + + 59 # Datafusion - Datafusion expected results: # Datafusion - Expected - -11 # Datafusion - Expected - 54894 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) AS col0" at position 0 and "Int64\(\-53\) \* Int64\(45\) \* \(\- coalesce\(Int64\(23\), \(\- Int64\(\-62\)\) \- Int64\(0\) \* Int64\(6\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(26\) \- 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\(\-11\) AS col0" at position 0 and "Int64\(\-53\) \* Int64\(45\) \* \(\- coalesce\(Int64\(23\), \(\- Int64\(\-62\)\) \- Int64\(0\) \* Int64\(6\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(26\) \- Int64\(\-14\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 11 AS col0, ( - 53 ) * + 45 * - COALESCE ( + 23, - - 62 - 0 * 6 ) * + + COUNT ( * ) + 26 - + - 14 - + COUNT ( * ) AS col0 query I rowsort label-7362 @@ -42049,7 +42049,7 @@ SELECT - + 3 col0, 92 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col2" at position 0 and "Int64\(84\) \* 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\) AS col2" at position 0 and "Int64\(84\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 21 AS col2, 84 * COUNT ( * ) AS col2 query I rowsort label-8010 @@ -43259,7 +43259,7 @@ SELECT ALL COUNT ( * ) + - - 69 * COUNT ( - 72 ) / - 38 # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) 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\) 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 + - 62 AS col2, COUNT ( * ) AS col2 query I rowsort label-8241 @@ -45264,7 +45264,7 @@ SELECT - 10 / + ( - 92 ) + - + 0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - -484 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(50\)\) AS col0" at position 0 and "Int64\(44\) \* Int64\(\-11\) \* 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\(50\)\) AS col0" at position 0 and "Int64\(44\) \* Int64\(\-11\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + 50 AS col0, + 44 * - 11 * COUNT ( * ) AS col0 query II rowsort @@ -45878,7 +45878,7 @@ SELECT ALL CASE - + 52 WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE - + COUNT ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) 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\(24\) 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 + + 24 AS col0, COUNT ( * ) AS col0 query I rowsort label-8736 @@ -51359,7 +51359,7 @@ SELECT ( + COALESCE ( + 95, MAX ( - 23 ) ) ) * - 90 - 49 - + COUNT ( * ) * 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - -56 # Datafusion - Expected - 1 -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\(\*\) AS col1" at position 1 have the 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\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 56 AS col1, + COUNT ( * ) AS col1 query I rowsort label-9776 @@ -52210,7 +52210,7 @@ SELECT 14 * - 89 * - 44 AS col2 # 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 "Int64\(\-70\) 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\(\-70\) 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 - 70 AS col1, ( COUNT ( * ) ) AS col1 query I rowsort label-9939 diff --git a/data/sqlite/random/expr/slt_good_119.slt b/data/sqlite/random/expr/slt_good_119.slt index 66c2c95..8f073e1 100644 --- a/data/sqlite/random/expr/slt_good_119.slt +++ b/data/sqlite/random/expr/slt_good_119.slt @@ -4897,7 +4897,7 @@ SELECT ALL 92 + + 84 + - + 4 * - 90 * + + 52 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - -34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col0" at position 0 and "Int64\(52\) / Int64\(45\) \* 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\(82\) AS col0" at position 0 and "Int64\(52\) / Int64\(45\) \* Int64\(\-34\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 82 AS col0, 52 / 45 * - 34 * COUNT ( * ) AS col0 query I rowsort label-930 @@ -13873,7 +13873,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -420 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) \+ CASE Int64\(63\) WHEN Int64\(2\) THEN min\(Int64\(68\)\) ELSE NULL END \* \(\- Int64\(26\)\) / Int64\(47\) AS col0" at position 0 and "Int64\(\-70\) \* Int64\(6\) \* 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\(\-4\) \+ CASE Int64\(63\) WHEN Int64\(2\) THEN min\(Int64\(68\)\) ELSE NULL END \* \(\- Int64\(26\)\) / Int64\(47\) AS col0" at position 0 and "Int64\(\-70\) \* Int64\(6\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 4 + CASE 63 WHEN 2 THEN + MIN ( 68 ) ELSE NULL END * - + 26 / 47 AS col0, - 70 * 6 * COUNT ( * ) AS col0 query I rowsort label-2641 @@ -17306,7 +17306,7 @@ NULL # 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\(83\) 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\(83\) 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 83 AS col1, COUNT ( * ) AS col1 query I rowsort @@ -22457,7 +22457,7 @@ SELECT - 64 * + 11 * - 90 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) 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\(55\) 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 ALL + 55 AS col2, 72 + COUNT ( * ) AS col2 query II rowsort @@ -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 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\. SELECT ALL - - ( - SUM ( + - 38 ) ) * - 63 * 24 * CAST ( 41 AS INTEGER ) * COUNT ( * ) AS col0, 8 * ( - MIN ( - 61 ) ) + 35 AS col0 query II rowsort label-6689 @@ -42202,7 +42202,7 @@ SELECT ALL + ( + NULLIF ( - + 17, - 66 ) ) 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\(\-7\)\) \+ \(\- Int64\(\-95\)\) \+ 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 "\(\- Int64\(\-7\)\) \+ \(\- Int64\(\-95\)\) \+ 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 ALL - ( + - 7 ) + - ( - 95 ) + - 99 AS col2, COUNT ( * ) AS col2 query I rowsort @@ -43105,7 +43105,7 @@ SELECT ALL - 65 * 26, 59 / - SUM ( DISTINCT + ( 64 ) ) AS col0 # 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\(Int64\(1\)\) AS count\(\*\)\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(53\) \+ 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\(\*\)\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(53\) \+ Int64\(8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) / COUNT ( * ) AS col0, + 53 + + + 8 col0 query I rowsort label-8212 @@ -44589,7 +44589,7 @@ SELECT + 82 + 6 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -124 -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\(\-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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(\-72\) \+ Int64\(\-52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) col2, - 72 + - 52 AS col2 query I rowsort label-8489 @@ -45050,7 +45050,7 @@ SELECT + 26, - 4 + 54 + + 84 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4415 # Datafusion - Expected - -203 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(69\)\) \* Int64\(64\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(1\) \+ Int64\(\-92\) \+ \(\- Int64\(18\)\) \- \(\- 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\(69\)\) \* Int64\(64\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(1\) \+ Int64\(\-92\) \+ \(\- Int64\(18\)\) \- \(\- Int64\(\-94\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + 69 * + + 64 + COUNT ( * ) AS col1, + 1 + - 92 + - + 18 - - - 94 AS col1 query I rowsort label-8576 @@ -45467,7 +45467,7 @@ SELECT 5 / - 66 * + 13 # Datafusion - Datafusion expected results: # Datafusion - Expected - 114 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(82\)\)\) \+ Int64\(32\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "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\(82\)\)\) \+ Int64\(32\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - ( - + 82 ) + 32 * + COUNT ( * ) col1, 17 AS col1 query I rowsort label-8656 diff --git a/data/sqlite/random/expr/slt_good_12.slt b/data/sqlite/random/expr/slt_good_12.slt index 11fb2f8..c4fbd8f 100644 --- a/data/sqlite/random/expr/slt_good_12.slt +++ b/data/sqlite/random/expr/slt_good_12.slt @@ -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 Int32\) 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 @@ -3799,7 +3799,7 @@ SELECT 28 - 49 + + 29 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -11 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(11\)\) 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\(11\)\) 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 - ( + 11 ) AS col0, COUNT ( * ) AS col0 query I rowsort label-717 @@ -5127,7 +5127,7 @@ SELECT ALL - NULLIF ( - 81, + 40 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -32 -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\(\-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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(\-32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, - 32 AS col2 query I rowsort @@ -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 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\. SELECT ALL 85 + + SUM ( - 73 ) / - CAST ( 23 AS INTEGER ) AS col0, + 65, + COUNT ( * ) AS col0 query I rowsort @@ -6074,7 +6074,7 @@ NULL # 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 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\(15\) 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 15 AS col2, COUNT ( * ) AS col2 query I rowsort label-1152 @@ -6085,7 +6085,7 @@ SELECT 23 + + 57 + + COUNT ( * ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) 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\) 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 78 AS col0, COUNT ( * ) AS col0 query II rowsort @@ -6354,7 +6354,7 @@ SELECT 66 * + - 36 - - 92 + + COUNT ( * ) AS col2 # 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 "count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(\-39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, ( - 39 ) col0 query I rowsort label-1204 @@ -11898,7 +11898,7 @@ SELECT COALESCE ( - + 90, 87 * + COUNT ( * ) + 33 - + + COALESCE ( COUNT ( * ), # Datafusion - Datafusion expected results: # Datafusion - Expected - 3724 # Datafusion - Expected - -23220 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(49\) \* \(\- min\(Int64\(\-76\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CASE Int64\(67\) WHEN Int64\(\-90\) / Int64\(37\) THEN NULL ELSE Int64\(\-32\) \* \(\- Int64\(\-25\)\) \* Int64\(29\) \+ \(\- Int64\(20\)\) 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\(49\) \* \(\- min\(Int64\(\-76\)\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "CASE Int64\(67\) WHEN Int64\(\-90\) / Int64\(37\) THEN NULL ELSE Int64\(\-32\) \* \(\- Int64\(\-25\)\) \* Int64\(29\) \+ \(\- Int64\(20\)\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) * + 49 * - MIN ( - 76 ) * COUNT ( * ) AS col0, CASE 67 WHEN - 90 / + 37 THEN NULL ELSE + - 32 * - - 25 * + 29 + - + 20 END AS col0 query I rowsort @@ -16143,7 +16143,7 @@ SELECT DISTINCT CASE - - 30 WHEN + 97 + + - COUNT ( * ) THEN NULL WHEN 3 THEN + # Datafusion - Datafusion expected results: # Datafusion - Expected - 106 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \+ \(\- Int64\(\-88\)\) 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\(18\) \+ \(\- Int64\(\-88\)\) 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 18 + - - 88 AS col0, COUNT ( * ) AS col0 query II rowsort @@ -16393,7 +16393,7 @@ SELECT ALL NULLIF ( - 90, + - 55 + - 5 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) \+ \(\- 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 "Int64\(\-23\) \+ \(\- 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 - 23 + - - 43 AS col1, COUNT ( * ) AS col1 query I rowsort label-3111 @@ -16424,7 +16424,7 @@ SELECT - - 5 * + + MAX ( - 78 ) * - + 20 + - - 65 * + MAX ( ALL - 18 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - -849 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- Int64\(65\)\)\) AS col2" at position 0 and "Int64\(\-85\) \* Int64\(10\) \- \(\- 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\(\(\- Int64\(65\)\)\) AS col2" at position 0 and "Int64\(\-85\) \* Int64\(10\) \- \(\- 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 ( - + 65 ) AS col2, ( + ( + - 85 ) ) * + 10 - + - COUNT ( * ) * + COUNT ( * ) AS col2 query I rowsort @@ -18180,7 +18180,7 @@ SELECT 94, - ( - 6 ) * - ( 28 - - 45 ) AS col0 # 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 col0" at position 0 and "Int64\(56\) \+ 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 "Int64\(56\) \+ 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, + 56 + COUNT ( * ) AS col0 query I rowsort @@ -21519,7 +21519,7 @@ SELECT - - 45 AS col2, 81 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1089 -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\(33\) \* 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(33\) \* Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col2, 33 * ( + 33 ) AS col2 query II rowsort @@ -28503,7 +28503,7 @@ SELECT - 70 * + ( + COUNT ( * ) ) - - ( - 76 ) + 43 AS col2 # 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\(\-29\) \- Int64\(\-14\) 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\(\-29\) \- Int64\(\-14\) 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 - 29 - - 14 AS col2, COUNT ( * ) AS col2 query I rowsort @@ -29403,7 +29403,7 @@ SELECT + COUNT ( * ) + - 84 + 3 AS col1 # 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 "Int64\(16\) 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\(16\) 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 + 16 AS col2, + COUNT ( * ) AS col2 query I rowsort label-5598 @@ -32321,7 +32321,7 @@ SELECT - COALESCE ( - - 74, + 1 - + 67 ) + 31 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 450 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col1" at position 0 and "\(\- \(\- Int64\(\-45\)\)\) \* Int64\(\-10\) \+ \(\- 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\(0\) AS col1" at position 0 and "\(\- \(\- Int64\(\-45\)\)\) \* Int64\(\-10\) \+ \(\- 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 DISTINCT + 0 AS col1, - ( - - 45 ) * - 10 + - + COUNT ( * ) + + COUNT ( * ) AS col1 query I rowsort label-6151 @@ -39374,7 +39374,7 @@ SELECT + 64 + 48 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 148 -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\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(87\) \+ 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\(\*\) )?AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(87\) \+ Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) col1, COUNT ( * ) + COUNT ( * ) + + 87 + 59 AS col1 query I rowsort @@ -44348,7 +44348,7 @@ SELECT - COUNT ( * ) - - + COUNT ( * ) * 66 * - 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - 500 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col2" at position 0 and "\(\- \(\- Int64\(\-25\)\)\) \* Int64\(\-20\) \* 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\(44\) AS col2" at position 0 and "\(\- \(\- Int64\(\-25\)\)\) \* Int64\(\-20\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 44 AS col2, - ( - - 25 ) * + - 20 * + COUNT ( * ) col2 query I rowsort @@ -45756,7 +45756,7 @@ SELECT + - COUNT ( * ) AS col1, + 6 AS col1 # 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\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 + + COUNT ( * ) AS col1, 18 AS col1 query II rowsort label-8716 @@ -47528,7 +47528,7 @@ SELECT - 74 / + 87 * 7 # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - 1 -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\(\*\) AS col0" at position 1 have the 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\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( + 82 ) AS col0, COUNT ( * ) AS col0 query I rowsort label-9054 @@ -48818,7 +48818,7 @@ SELECT - COALESCE ( 27, - + 33 * - 60 ) + - + 50 # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - 161 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \- count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(72\) \+ count\(Int64\(49\)\) \+ 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\(29\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(72\) \+ count\(Int64\(49\)\) \+ Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 29 - + COUNT ( * ) AS col1, 72 + + COUNT ( 49 ) + + 88 AS col1 query II rowsort label-9300 @@ -49864,7 +49864,7 @@ SELECT - 50 + - 77 + + 37 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4400 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) \* Int64\(55\) 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\(\-80\) \* Int64\(55\) 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 - 80 * 55 AS col0, COUNT ( * ) AS col0 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_13.slt b/data/sqlite/random/expr/slt_good_13.slt index 6d254b2..7ed3365 100644 --- a/data/sqlite/random/expr/slt_good_13.slt +++ b/data/sqlite/random/expr/slt_good_13.slt @@ -4098,7 +4098,7 @@ SELECT DISTINCT + 87 / + 93 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5200 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* Int64\(\-65\) \* \(\- count\(DISTINCT Int64\(\-92\)\)\) 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\(80\) \* Int64\(\-65\) \* \(\- count\(DISTINCT Int64\(\-92\)\)\) 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 80 * - 65 * - COUNT ( DISTINCT - 92 ) col2, COUNT ( * ) AS col2 query I rowsort @@ -7238,7 +7238,7 @@ SELECT ALL 93 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # 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 "\(\- sum\(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 "\(\- sum\(Int64\(38\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) col0, - SUM ( + 38 ) AS col0 # Datafusion - Datafusion expected results: @@ -9929,7 +9929,7 @@ SELECT 14 + 20 + 57 * 16 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - 101 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \- Int64\(21\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(84\) \+ 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\(50\) \- Int64\(21\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(84\) \+ Int64\(17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 50 - 21 * + COUNT ( * ) AS col1, 84 + 17 AS col1 query II 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 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\. SELECT - CAST ( NULL AS INTEGER ) + + - 17 AS col1, - 35 * + + COUNT ( * ) AS col1 query I rowsort @@ -14788,7 +14788,7 @@ SELECT DISTINCT - + 18 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 131 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \+ Int64\(56\) 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\(75\) \+ Int64\(56\) 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 + 75 + 56 AS col2, + COUNT ( * ) AS col2 query I rowsort @@ -16486,7 +16486,7 @@ SELECT 25 * + + 76 AS 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 "count\(Int64\(1\)\) AS count\(\*\) 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\(\*\) )?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 ( * ) AS col2, 14 AS col2 query I rowsort label-3167 @@ -21801,7 +21801,7 @@ SELECT ALL - 25 + + 47 * - 69 # Datafusion - Datafusion expected results: # Datafusion - Expected - -36 # Datafusion - Expected - -93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) AS col1" at position 0 and "Int64\(24\) / Int64\(41\) \- 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\(\-36\) AS col1" at position 0 and "Int64\(24\) / Int64\(41\) \- Int64\(94\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 36 AS col1, 24 / 41 - + 94 + + COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: @@ -25884,7 +25884,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) 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\(11\) 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 11 AS col0, COUNT ( * ) AS col0 query I rowsort label-4973 @@ -26174,7 +26174,7 @@ SELECT ALL - 6 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -75 -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\(\-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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(\-75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, - 75 AS col1 # Datafusion - Datafusion expected results: @@ -31451,7 +31451,7 @@ SELECT ALL 10 AS col0 # Datafusion - Expected - 32 # Datafusion - Expected - 69 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(66\) \- count\(Int64\(9\)\) 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\(32\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(66\) \- count\(Int64\(9\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 32 * + COUNT ( * ) AS col2, 69, 66 - COUNT ( 9 ) AS col2 query I rowsort @@ -32443,7 +32443,7 @@ SELECT ALL - 64 * + + ( + 25 ) - + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -59 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) AS col1" at position 0 and "\(\- coalesce\(Int64\(98\), coalesce\(\(\- Int64\(\-85\)\), count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(30\), Int64\(92\) \* Int64\(7\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(3\), 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\(\-59\) AS col1" at position 0 and "\(\- coalesce\(Int64\(98\), coalesce\(\(\- Int64\(\-85\)\), count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(30\), Int64\(92\) \* Int64\(7\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(3\), Int64\(70\)\)\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 59 AS col1, - COALESCE ( 98, COALESCE ( - - 85, + COUNT ( * ) + 30, 92 * + 7 - + - COUNT ( * ) + 3, 70 ) ) + COUNT ( * ) AS col1 query I rowsort label-6232 @@ -47671,7 +47671,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -5460 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* \(\- Int64\(65\)\) \+ Int64\(\-12\) / Int64\(\-41\) 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\(84\) \* \(\- Int64\(65\)\) \+ Int64\(\-12\) / Int64\(\-41\) 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 84 * - + 65 + - 12 / + - 41 AS col2, COUNT ( * ) AS col2 query I rowsort label-9174 @@ -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 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\. 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 diff --git a/data/sqlite/random/expr/slt_good_14.slt b/data/sqlite/random/expr/slt_good_14.slt index 3eb7c96..00ee668 100644 --- a/data/sqlite/random/expr/slt_good_14.slt +++ b/data/sqlite/random/expr/slt_good_14.slt @@ -640,7 +640,7 @@ SELECT DISTINCT - 35 / 33 / 65 * 36 + - 75 + + 49 # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col2" at position 0 and "Int64\(90\) \- Int64\(42\) \+ 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\(36\) AS col2" at position 0 and "Int64\(90\) \- Int64\(42\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + 36 col2, 90 - + 42 + COUNT ( * ) AS col2 query I rowsort label-116 @@ -1060,7 +1060,7 @@ SELECT - 84 / - - 79 AS col1, 83 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 "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 "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 + COUNT ( * ) AS col2, COUNT ( * ) AS col2 query I rowsort label-195 @@ -1970,7 +1970,7 @@ SELECT + 73 + COUNT ( * ) * + 97 col2 # Datafusion - Expected - -97 # Datafusion - Expected - 1 # Datafusion - Expected - 2250 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) 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\) 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 - 97 AS col2, COUNT ( * ) AS col2, - - 36 * ( + 64 ) - + - MAX ( DISTINCT + - 54 ) col2 query I rowsort @@ -10698,7 +10698,7 @@ SELECT ALL + 5 + ( 95 ) + - 91 * - - 99 * + COALESCE ( CASE - 50 WHEN COUNT ( * # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -79 -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\(\-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\(\*\) )?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 COUNT ( * ) AS col0, - 79 AS col0 query I rowsort @@ -10838,7 +10838,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 "Int64\(\-60\) 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\) 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 - 60 AS col1, + COUNT ( * ) AS col1 query I rowsort label-2050 @@ -15478,7 +15478,7 @@ SELECT DISTINCT + COUNT ( * ) + ( COUNT ( * ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \+ \(\- Int64\(\-1\)\) \+ \(\- Int64\(15\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(0\) \* 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\(21\) \+ \(\- Int64\(\-1\)\) \+ \(\- Int64\(15\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(0\) \* Int64\(\-93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 21 + - - 1 + - + 15 * + COUNT ( * ) AS col2, 0 * + - 93 AS col2 query I rowsort @@ -20282,7 +20282,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -117 -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\(\-47\) \+ 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(\-47\) \+ Int64\(\-70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) col0, - 47 + - 70 AS col0 query I rowsort @@ -21032,7 +21032,7 @@ SELECT ALL + COUNT ( * ) AS col0, + 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3700 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) \* Int64\(50\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(66\) \* \(\- CASE Int64\(13\) WHEN Int64\(69\) \+ Int64\(88\) \* Int64\(\-99\) THEN NULL WHEN count\(Int64\(1\)\) AS count\(\*\) \* Int64\(57\) THEN Int64\(68\) \* \(\- Int64\(73\)\) ELSE NULL END\) \* 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\(74\) \* Int64\(50\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(66\) \* \(\- CASE Int64\(13\) WHEN Int64\(69\) \+ Int64\(88\) \* Int64\(\-99\) THEN NULL WHEN count\(Int64\(1\)\) AS count\(\*\) \* Int64\(57\) THEN Int64\(68\) \* \(\- Int64\(73\)\) ELSE NULL END\) \* Int64\(5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 74 * 50 * COUNT ( * ) AS col0, + COUNT ( * ) - + + 66 * + - CASE + 13 WHEN 69 + + + 88 * - 99 THEN NULL WHEN COUNT ( * ) * + + 57 THEN + 68 * - + 73 ELSE NULL END * 5 AS col0 query I rowsort label-3993 @@ -23471,7 +23471,7 @@ SELECT - + 45 + 42 - + + 83 # 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 Int64\(\-18\) WHEN Int64\(68\) THEN Int64\(55\) ELSE \(\- CASE Int64\(70\) WHEN Int64\(40\) \+ Int64\(\-94\) THEN count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-54\) WHEN Int64\(94\) THEN Int64\(26\) \* Int64\(3\) END\) END \+ \(\- Int64\(\-56\)\) \+ 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\(\*\) )?AS col2" at position 0 and "CASE Int64\(\-18\) WHEN Int64\(68\) THEN Int64\(55\) ELSE \(\- CASE Int64\(70\) WHEN Int64\(40\) \+ Int64\(\-94\) THEN count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-54\) WHEN Int64\(94\) THEN Int64\(26\) \* Int64\(3\) END\) END \+ \(\- Int64\(\-56\)\) \+ Int64\(67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, CASE - 18 WHEN 68 THEN + 55 ELSE - CASE + 70 WHEN + 40 + - 94 THEN COUNT ( * ) + + - 54 WHEN + 94 THEN + 26 * 3 END END + - - 56 + + 67 col2 query II rowsort label-4457 @@ -25518,7 +25518,7 @@ SELECT - 80 * - - 71, 75 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col0, 89 AS col0 query I rowsort label-4850 @@ -25559,7 +25559,7 @@ SELECT ALL - + 51 * 10 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 117 -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\(89\) \+ \(\- Int64\(55\)\) \+ 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(89\) \+ \(\- Int64\(55\)\) \+ Int64\(84\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COUNT ( * ) AS col0, - COUNT ( * ) + + 89 + - + 55 + + 84 AS col0 # Datafusion - Types were automatically converted from: @@ -30016,7 +30016,7 @@ SELECT + 61 * 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \+ Int64\(\-24\) AS col2" at position 0 and "Int64\(\-32\) \+ 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\(91\) \+ Int64\(\-24\) AS col2" at position 0 and "Int64\(\-32\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( + 91 ) + - 24 AS col2, - 32 + + COUNT ( * ) 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 Int32\) 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 @@ -34817,7 +34817,7 @@ SELECT DISTINCT - COUNT ( DISTINCT + 38 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 98 -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\(60\) \+ 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 "Int64\(60\) \+ Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, + 60 + + 38 AS col0 query I rowsort label-6623 @@ -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 Int32\)\)\) 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 @@ -35416,7 +35416,7 @@ SELECT + 78 / + + ( + 54 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 45 -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\) AS col2" at position 1 have the same name\. Consider aliasing \("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\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col2, 45 AS col2 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 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\. 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 @@ -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 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\. SELECT - - CAST ( NULL AS INTEGER ) * - 70 / - SUM ( 74 ) / + COUNT ( * ) AS col0, 10 AS col0 query I rowsort label-7855 @@ -44680,7 +44680,7 @@ SELECT 79 / 92 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4465 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \* Int64\(95\) 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\(47\) \* Int64\(95\) 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 47 * 95 AS col1, COUNT ( * ) AS col1 query I rowsort @@ -44875,7 +44875,7 @@ SELECT ALL 65 * - 14 AS col0 # Datafusion - Expected - 1 # Datafusion - Expected - -1960 # Datafusion - Expected - 87 -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\(\-98\) \* 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(\-98\) \* Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col2, - 98 * + 20 AS col2, - 39 / - 11 + + 84 AS col1 query I rowsort @@ -48999,7 +48999,7 @@ SELECT ( 69 ) + ( - 45 ) - SUM ( - 41 ) + - 95 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 6461 -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\(91\) \* \(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(91\) \* \(\- Int64\(\-71\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) col2, COUNT ( * ) * 91 * - - 71 AS col2 query I rowsort label-9322 diff --git a/data/sqlite/random/expr/slt_good_15.slt b/data/sqlite/random/expr/slt_good_15.slt index b7b3eeb..67eafef 100644 --- a/data/sqlite/random/expr/slt_good_15.slt +++ b/data/sqlite/random/expr/slt_good_15.slt @@ -3719,7 +3719,7 @@ SELECT ALL + COUNT ( DISTINCT - 60 ) / + NULLIF ( 24, + - ( 11 ) + - 51 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 97 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 COUNT ( * ) AS col1, 97 AS col1 query I rowsort label-693 @@ -4343,7 +4343,7 @@ SELECT ALL + 63 * - 69 AS col1, + COUNT ( * ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 88 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( + COUNT ( * ) ) AS col0, + 88 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 Int32\) 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: @@ -9226,7 +9226,7 @@ SELECT + 54 + - MAX ( DISTINCT 2 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) 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\(33\) 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 + 33 AS col2, + COUNT ( * ) AS col2 query I rowsort label-1740 @@ -17400,7 +17400,7 @@ SELECT - - SUM ( DISTINCT - 18 ) col0 # 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 "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(4\) \+ \(\- 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\(4\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) col1, + 4 + + + ( + - COUNT ( * ) ) AS col1 query I rowsort label-3293 @@ -18067,7 +18067,7 @@ SELECT DISTINCT + MAX ( 17 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1322787375 -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\(63\) \* \(\- Int64\(\-65\)\) \* Int64\(\-59\) \* \(\- Int64\(75\)\) \* 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\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(63\) \* \(\- Int64\(\-65\)\) \* Int64\(\-59\) \* \(\- Int64\(75\)\) \* Int64\(73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, 63 * - - 65 * - 59 * - + 75 * + 73 AS col0 query I rowsort @@ -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 Int32\)\) 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 @@ -20211,7 +20211,7 @@ SELECT ALL 78 * + + 62 # 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 "Int64\(70\) 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\(70\) 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 + 70 col1, + COUNT ( * ) AS col1 query I rowsort label-3829 @@ -20258,7 +20258,7 @@ SELECT ALL + 83 + - 15 * - 75 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 83 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 + COUNT ( * ) AS col0, + 83 AS col0 query I rowsort @@ -24186,7 +24186,7 @@ SELECT 67 * - - 68 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- Int64\(6\)\)\) 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\(\(\- Int64\(6\)\)\) 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 + SUM ( - + 6 ) AS col0, COUNT ( * ) AS col0 query I rowsort label-4588 @@ -27334,7 +27334,7 @@ SELECT ALL + 82 * - 8 + - 38 + 74 / + 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 69 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, 69 AS col2 query I rowsort @@ -29017,7 +29017,7 @@ SELECT ALL COALESCE ( 29, - 90 / + CAST ( NULL AS INTEGER ), - 24 - + CAST ( NUL # 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\(60\) \+ 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 "Int64\(60\) \+ 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 ALL + + 60 + 65 AS col2, COUNT ( * ) col2 query II rowsort @@ -33653,7 +33653,7 @@ SELECT 34 + 42 + + COALESCE ( - 4, + 42 + 40, + 88 - - SUM ( DISTINCT + - 48 ) - # Datafusion - Datafusion expected results: # Datafusion - Expected - -21 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(21\)\) 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\(21\)\) 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 - + 21 AS col1, COUNT ( * ) AS col1 query I rowsort label-6385 @@ -38979,7 +38979,7 @@ SELECT ALL + COUNT ( * ) * 27 col1, 9 - - ( + ( - 40 ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col1" at position 0 and "Int64\(\-48\) \+ 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\(17\) AS col1" at position 0 and "Int64\(\-48\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 17 col1, - 48 + + + COUNT ( * ) AS col1 query I rowsort @@ -41516,7 +41516,7 @@ SELECT ALL 84 AS col1, 13 # 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 col1" at position 0 and "nullif\(Int64\(42\), Int64\(67\) / 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "nullif\(Int64\(42\), Int64\(67\) / Int64\(\-53\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col1, NULLIF ( + + 42, + ( 67 ) / - 53 ) AS col1 query I rowsort @@ -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 Int32\)\)\)\) \- 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 @@ -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 Int32\) \* 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..6383276 100644 --- a/data/sqlite/random/expr/slt_good_16.slt +++ b/data/sqlite/random/expr/slt_good_16.slt @@ -5738,7 +5738,7 @@ SELECT + 93 * + 53 * - 29 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 2327 -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\(68\) \- Int64\(\-75\) \+ Int64\(56\) \* \(\- 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\(\*\) )?AS col2" at position 0 and "Int64\(68\) \- Int64\(\-75\) \+ Int64\(56\) \* \(\- Int64\(\-39\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) col2, + 68 - + ( - 75 ) + + 56 * - - 39 AS col2 query II rowsort @@ -6794,7 +6794,7 @@ SELECT DISTINCT - 52 - - 27 + + ( + + ( + + 95 ) ) * - + 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 "\(\- CASE \(\- Int64\(\-35\)\) WHEN Int64\(80\) THEN NULL WHEN \(\- Int64\(66\)\) / Int64\(41\) THEN Int64\(42\) \- Int64\(\-87\) ELSE NULL 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 "\(\- CASE \(\- Int64\(\-35\)\) WHEN Int64\(80\) THEN NULL WHEN \(\- Int64\(66\)\) / Int64\(41\) THEN Int64\(42\) \- Int64\(\-87\) ELSE NULL 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 ALL - CASE - - 35 WHEN 80 THEN NULL WHEN - + 66 / 41 THEN 42 - + - 87 ELSE NULL END AS col2, + COUNT ( * ) AS col2 query I rowsort @@ -6908,7 +6908,7 @@ SELECT DISTINCT CAST ( + 49 AS INTEGER ) + 51 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 100 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(99\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- nullif\(Int64\(\-79\), 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\(99\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "\(\- nullif\(Int64\(\-79\), count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) + + 99 * COUNT ( * ) AS col2, - NULLIF ( - 79, + COUNT ( * ) ) AS col2 query I rowsort @@ -7394,7 +7394,7 @@ SELECT ALL NULLIF ( COUNT ( * ), + - CASE - 72 WHEN 49 THEN - 51 * - + 16 END + # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) 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\(37\) 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 37 col0, COUNT ( * ) col0 query I rowsort label-1399 @@ -7924,7 +7924,7 @@ SELECT DISTINCT - - 34 + - NULLIF ( 39, - 96 ) * + - NULLIF ( + 6, + 22 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - -2686 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-71\), count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(84\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(6\) \+ Int64\(\-64\) \+ Int64\(87\)\) AS col0" at position 0 and "Int64\(\-34\) \* \(\- min\(DISTINCT Int64\(\-79\)\)\) \* 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\(\-71\), count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(84\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(6\) \+ Int64\(\-64\) \+ Int64\(87\)\) AS col0" at position 0 and "Int64\(\-34\) \* \(\- min\(DISTINCT Int64\(\-79\)\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT NULLIF ( + - 71, COUNT ( * ) + + + 84 + - COUNT ( * ) + 6 + - 64 + 87 ) col0, - 34 * - MIN ( DISTINCT - 79 ) * COUNT ( * ) AS col0 query I rowsort label-1499 @@ -8572,7 +8572,7 @@ SELECT DISTINCT - 23 + - - 16 + - - 27 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 612 -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\(12\) \* 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\(\*\) )?AS col0" at position 0 and "Int64\(12\) \* Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, 12 * + 51 AS col0 query I rowsort label-1622 @@ -10080,7 +10080,7 @@ SELECT ALL - 8 * - COUNT ( * ) + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -62 -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\(\-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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "min\(DISTINCT Int64\(\-62\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( COUNT ( * ) ) AS col1, MIN ( DISTINCT + - 62 ) AS col1 query I rowsort label-1904 @@ -11580,7 +11580,7 @@ SELECT DISTINCT - 2 + - 51 # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-27\)\) 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\(\-27\)\) 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 - - 27 AS col1, + COUNT ( * ) col1 query I rowsort label-2190 @@ -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 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\. SELECT - CAST ( - + 60 AS INTEGER ) AS col0, + COUNT ( * ) col0 query I rowsort label-4172 @@ -23203,7 +23203,7 @@ SELECT + - 75 * COUNT ( * ) AS col0 # 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 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, + 25 AS col1 query I rowsort label-4397 @@ -26138,7 +26138,7 @@ SELECT ALL 71 * - 94 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) 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\(\-27\) 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 - 27 AS col1, + COUNT ( * ) AS col1 query II rowsort @@ -29894,7 +29894,7 @@ SELECT DISTINCT - 11 - + + 70 + - COUNT ( * ) * - 42 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col0" at position 0 and "Int64\(53\) \+ 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\(2\) AS col0" at position 0 and "Int64\(53\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 2 AS col0, + 53 + COUNT ( * ) AS col0 query I rowsort label-5662 @@ -30962,7 +30962,7 @@ SELECT COUNT ( DISTINCT + - 17 ) # 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 col2" at position 0 and "\(\- sum\(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 "\(\- sum\(Int64\(56\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, - SUM ( ALL + + 56 ) AS col2 # Datafusion - Types were automatically converted from: @@ -33176,7 +33176,7 @@ SELECT + 63 * - 29 * + + 75 # 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 "\(\- 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 "\(\- 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 - - 59 AS col0, COUNT ( * ) AS col0 query I rowsort @@ -33657,7 +33657,7 @@ SELECT - 36 * + ( - COUNT ( * ) ) + + 6 AS col2 # 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(93\) \+ 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\(93\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) AS col2, 93 + COUNT ( * ) AS col2 query II rowsort label-6376 @@ -34351,7 +34351,7 @@ SELECT 6 - + 62 + 82 # 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\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * COUNT ( * ) col2, + 10 col2 # Datafusion - Types were automatically converted from: @@ -34417,7 +34417,7 @@ SELECT ( + - 2 ) * + + 10 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "nullif\(Int64\(89\), Int64\(29\)\) \+ 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\(56\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "nullif\(Int64\(89\), Int64\(29\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 56 - - + COUNT ( * ) col2, NULLIF ( 89, 29 ) + + COUNT ( * ) AS col2 query I rowsort label-6521 @@ -36066,7 +36066,7 @@ SELECT ALL + ( + COUNT ( * ) ) + - 10 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(DISTINCT Int64\(58\)\) \* Int64\(4\) \+ count\(Int64\(1\)\) AS count\(\*\) 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 "count\(DISTINCT Int64\(58\)\) \* Int64\(4\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( DISTINCT + 58 ) * 4 + + COUNT ( * ) col0, + 11 col0 query I rowsort label-6833 @@ -37132,7 +37132,7 @@ SELECT - 97 + 29 # Datafusion - Datafusion expected results: # Datafusion - Expected - 174 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) \- Int64\(\-8\) \* sum\(Int64\(32\)\) AS col2" at position 0 and "Int64\(96\) \* 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\(\-82\) \- Int64\(\-8\) \* sum\(Int64\(32\)\) AS col2" at position 0 and "Int64\(96\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 82 - - 8 * + SUM ( ALL + 32 ) AS col2, + ( + 96 ) * + COUNT ( * ) AS col2 query I rowsort @@ -40658,7 +40658,7 @@ SELECT ALL + - ( - 30 ) + - + 44 # 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 "Int64\(\-60\) 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\) 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 - 60 AS col1, COUNT ( * ) AS col1 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 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\. 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 @@ -43166,7 +43166,7 @@ SELECT COUNT ( ALL + 96 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 1685 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(21\) \* count\(DISTINCT Int64\(72\)\) \* Int64\(27\) \* Int64\(\-35\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(26\) \* Int64\(64\) \+ Int64\(22\) \- 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\(21\) \* count\(DISTINCT Int64\(72\)\) \* Int64\(27\) \* Int64\(\-35\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(26\) \* Int64\(64\) \+ Int64\(22\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) / 21 * COUNT ( DISTINCT + 72 ) * + 27 * - 35 * - COUNT ( * ) AS col0, ( 26 ) * + 64 + 22 - + COUNT ( * ) col0 query I rowsort label-8193 @@ -43635,7 +43635,7 @@ SELECT + - COUNT ( * ) - - - 89 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -45 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(46\) \+ Int64\(75\) / Int64\(45\) \* count\(Int64\(1\)\) AS count\(\*\) 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(46\) \+ Int64\(75\) / Int64\(45\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) * + 46 + + 75 / 45 * COUNT ( * ) AS col0, ( + 6 ) AS col0 query I rowsort label-8283 @@ -48704,7 +48704,7 @@ SELECT DISTINCT MAX ( DISTINCT + 79 ) * - ( - 95 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) 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\) 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 90 AS col0, COUNT ( * ) AS col0 query I rowsort label-9251 @@ -50173,7 +50173,7 @@ SELECT - ( - 51 ) / + - NULLIF ( + 4, + 6 ) + - - 58 # 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\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(\-85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col0, - 85 AS col0 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_17.slt b/data/sqlite/random/expr/slt_good_17.slt index e8c7b8d..7cc6996 100644 --- a/data/sqlite/random/expr/slt_good_17.slt +++ b/data/sqlite/random/expr/slt_good_17.slt @@ -1571,7 +1571,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1100 # Datafusion - Expected - -2279 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \+ Int64\(81\) \+ Int64\(\-82\) \* Int64\(\-12\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-12\) \+ Int64\(\-81\) \* 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\(34\) \+ Int64\(81\) \+ Int64\(\-82\) \* Int64\(\-12\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(\-12\) \+ Int64\(\-81\) \* Int64\(28\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 34 + 81 + - 82 * - 12 + + COUNT ( * ) AS col0, - 12 + - 81 * 28 + COUNT ( * ) AS col0 query I rowsort label-288 @@ -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 Int32\) 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 @@ -6354,7 +6354,7 @@ SELECT ALL + + MAX ( + 3 ) * - + 97 * + - 74 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6144 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) \* Int64\(\-96\) 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\(\-64\) \* Int64\(\-96\) 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 + - 64 * + - 96 AS col2, + COUNT ( * ) AS col2 query I rowsort @@ -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 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\. SELECT + CAST ( - 80 AS INTEGER ) col1, + COUNT ( * ) * + 99 * COUNT ( * ) AS col1 query I rowsort label-1581 @@ -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 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\. SELECT 71 * CAST ( NULL AS INTEGER ) / + 1 AS col0, COUNT ( * ) AS col0 query I rowsort @@ -11678,7 +11678,7 @@ SELECT ALL + 52 * - 21 col1 # Datafusion - Expected - 74 # Datafusion - Expected - 1844 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col0" at position 0 and "Int64\(19\) \* Int64\(97\) \+ 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\(74\) AS col0" at position 0 and "Int64\(19\) \* Int64\(97\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 74 AS col0, + 19 * + + 97 + COUNT ( * ) AS col0, + + COUNT ( - 9 ) AS col1 query I rowsort @@ -12873,7 +12873,7 @@ SELECT ALL - + ( 29 ) * - ( + 39 ) AS col2, - 63 / + + ( + ( - 94 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 68 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(68\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, 68 AS col2 query I rowsort label-2440 @@ -14984,7 +14984,7 @@ NULL # Datafusion - Expected - 28 # Datafusion - Expected - 1 # Datafusion - Expected - -95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) 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\(28\) 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 28 AS col1, + COUNT ( * ) AS col1, + - 95 col0 query I rowsort label-2841 @@ -17947,7 +17947,7 @@ SELECT - CASE + - 49 WHEN - + 89 THEN NULL ELSE CAST ( 38 AS INTEGER ) * + 7 + + # 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 "Int64\(35\) \+ Int64\(\-81\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CASE avg\(Int64\(7\)\) WHEN Int64\(\-45\) THEN NULL WHEN \(\- nullif\(Int64\(93\), Int64\(73\)\)\) \+ \(\- Int64\(21\)\) \* Int64\(54\) THEN NULL ELSE Int64\(55\) 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\) \+ Int64\(\-81\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "CASE avg\(Int64\(7\)\) WHEN Int64\(\-45\) THEN NULL WHEN \(\- nullif\(Int64\(93\), Int64\(73\)\)\) \+ \(\- Int64\(21\)\) \* Int64\(54\) THEN NULL ELSE Int64\(55\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 35 + + - 81 + + + COUNT ( * ) AS col0, CASE + AVG ( ALL 7 ) WHEN - 45 THEN NULL WHEN - ( + NULLIF ( + 93, + 73 ) ) + - + 21 * 54 THEN NULL ELSE 55 END AS col0 query I rowsort label-3406 @@ -18353,7 +18353,7 @@ SELECT ALL 89 * - + COUNT ( * ) + + - 11 * + 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -136 -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\(40\) WHEN Int64\(\-61\) \+ Int64\(\-62\) THEN \(\- \(\- \(\- Int64\(\-73\)\)\)\) ELSE \(\- \(\- nullif\(Int64\(13\), Int64\(72\)\)\)\) \+ Int64\(\-28\) \+ Int64\(13\) \+ Int64\(\-35\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(99\) 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 "CASE Int64\(40\) WHEN Int64\(\-61\) \+ Int64\(\-62\) THEN \(\- \(\- \(\- Int64\(\-73\)\)\)\) ELSE \(\- \(\- nullif\(Int64\(13\), Int64\(72\)\)\)\) \+ Int64\(\-28\) \+ Int64\(13\) \+ Int64\(\-35\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(99\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + COUNT ( * ) AS col2, CASE + 40 WHEN - 61 + - 62 THEN - - ( - - 73 ) ELSE - - NULLIF ( + 13, 72 ) + - 28 + 13 + + - 35 * COUNT ( * ) - 99 END AS col2 query I rowsort label-3483 @@ -20045,7 +20045,7 @@ SELECT 32 * + 66 * - + 64 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 83 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 COUNT ( * ) AS col0, + ( 83 ) AS col0 query I rowsort label-3805 @@ -21956,7 +21956,7 @@ SELECT + 92 * - COUNT ( * ) + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) \+ count\(Int64\(1\)\) AS count\(\*\) 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\(66\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 66 + + COUNT ( * ) AS col1, + 9 AS col1 query I rowsort @@ -29160,7 +29160,7 @@ SELECT ALL 26 / 32 * - 62 * 61 * + 9 * - COALESCE ( - 25, + - 11 + + + CASE + SU # Datafusion - Datafusion expected results: # Datafusion - Expected - -161 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \* Int64\(\-10\) \- Int64\(\-5\) \+ Int64\(64\) AS col0" at position 0 and "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 "Int64\(23\) \* Int64\(\-10\) \- Int64\(\-5\) \+ Int64\(64\) AS col0" at position 0 and "Int64\(33\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 23 * - 10 - - 5 + + 64 AS col0, + 33 * COUNT ( * ) AS col0 query I rowsort label-5539 @@ -30893,7 +30893,7 @@ SELECT + COUNT ( * ) * 26 + 96 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -88 -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\(\-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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(\-88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, - 88 AS col0 query I rowsort @@ -31035,7 +31035,7 @@ SELECT DISTINCT 55 * - - COUNT ( * ) * + COUNT ( DISTINCT - 26 ), - 1 AS col0 # Datafusion - Expected - 13 # Datafusion - Expected - 96 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) 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 "Int64\(13\) 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 DISTINCT 13 AS col2, 96 AS col1, COUNT ( * ) AS col2 query II rowsort @@ -32530,7 +32530,7 @@ SELECT ALL + 1 * + 99 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -317630 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(64\)\) \* Int64\(73\) \* Int64\(\-68\) \+ Int64\(66\) 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\(64\)\) \* Int64\(73\) \* Int64\(\-68\) \+ Int64\(66\) 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 ( * ) * + ( - + 64 ) * 73 * - 68 + 66 col1, COUNT ( * ) AS col1 query I rowsort label-6181 @@ -38065,7 +38065,7 @@ SELECT ALL ( - + COUNT ( * ) ) + + - 78 AS col2 # 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\(\-73\) 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\(\-73\) 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 - 73 AS col0, ( + COUNT ( * ) ) AS col0 query I rowsort label-7233 @@ -39347,7 +39347,7 @@ SELECT 60 * - 44 * + COALESCE ( - 95, + - 83 * 49 * + - 9 + + 95 + + + MIN ( + ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) 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 "Int64\(67\) 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 67 AS col1, - COUNT ( * ) * + COUNT ( * ) AS col1 query II rowsort @@ -42362,7 +42362,7 @@ SELECT 54 * - 21 * + 97 AS col0, 15 / - 84 * 41 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1482 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(\-38\)\)\) \* Int64\(39\) AS col0" at position 0 and "Int64\(56\) \+ 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\(\-38\)\)\) \* Int64\(39\) AS col0" at position 0 and "Int64\(56\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + - MAX ( - 38 ) * 39 AS col0, 56 + + COUNT ( * ) AS col0 query II rowsort label-8049 @@ -43619,7 +43619,7 @@ SELECT ALL + 30 + - 60 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col1" at position 0 and "Int64\(60\) \* 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\(12\) AS col1" at position 0 and "Int64\(60\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 12 col1, 60 * + + COUNT ( * ) AS col1 query I rowsort label-8287 @@ -48719,7 +48719,7 @@ SELECT + 16 + - - COUNT ( * ) col2 # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, + 0 AS col2 query I rowsort @@ -51982,7 +51982,7 @@ SELECT DISTINCT - - 32 * 28 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -88 -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\(\-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\(\*\) )?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 + + COUNT ( * ) AS col1, - 88 AS col1 query I rowsort label-9877 @@ -52439,7 +52439,7 @@ SELECT DISTINCT 91 * COUNT ( * ) * - + 76 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col0" at position 0 and "Int64\(81\) \+ Int64\(\-69\) / Int64\(26\) \+ 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\) AS col0" at position 0 and "Int64\(81\) \+ Int64\(\-69\) / Int64\(26\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 71 AS col0, 81 + - 69 / + 26 + COUNT ( * ) col0 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_18.slt b/data/sqlite/random/expr/slt_good_18.slt index 9762d4a..b0eae12 100644 --- a/data/sqlite/random/expr/slt_good_18.slt +++ b/data/sqlite/random/expr/slt_good_18.slt @@ -1206,7 +1206,7 @@ SELECT ALL - ( + - 96 ) - - 67 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) AS col2" at position 0 and "Int64\(76\) \- 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\(50\) AS col2" at position 0 and "Int64\(76\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 50 AS col2, 76 - + + COUNT ( * ) AS col2 query I rowsort label-231 @@ -2846,7 +2846,7 @@ SELECT DISTINCT + COALESCE ( 74, - CAST ( + MAX ( 55 ) AS INTEGER ), + 54 + + + # Datafusion - Datafusion expected results: # Datafusion - Expected - 2150 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \* Int64\(25\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "coalesce\(Int64\(1\), 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\(86\) \* Int64\(25\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "coalesce\(Int64\(1\), Int64\(21\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 86 * 25 * COUNT ( * ) AS col0, + COALESCE ( 1, 21 ) AS col0 query I rowsort label-543 @@ -6898,7 +6898,7 @@ SELECT ALL SUM ( - 19 ) # 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 "Int64\(\-20\) / Int64\(61\) / Int64\(\-93\) / Int64\(89\) \* count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(\-20\) / Int64\(61\) / Int64\(\-93\) / Int64\(89\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 20 / + 61 / - 93 / + 89 * + COUNT ( * ) AS col1, + 60 col1 query I rowsort @@ -9922,7 +9922,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 2010 -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\(67\) \* \(\- \(\- sum\(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 "Int64\(67\) \* \(\- \(\- sum\(Int64\(30\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, + 67 * - - SUM ( ALL ( 30 ) ) AS col1 query I rowsort label-1887 @@ -13114,7 +13114,7 @@ SELECT DISTINCT - 16 - 4 * - 67 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -81 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(81\)\) AS col0" at position 0 and "Int64\(\-38\) \+ \(\- nullif\(Int64\(\-45\), Int64\(99\)\)\) \+ 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\(81\)\) AS col0" at position 0 and "Int64\(\-38\) \+ \(\- nullif\(Int64\(\-45\), Int64\(99\)\)\) \+ Int64\(68\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 81 AS col0, - 38 + - NULLIF ( - 45, + + 99 ) + + 68 * COUNT ( * ) col0 query I rowsort label-2489 @@ -14233,7 +14233,7 @@ SELECT ALL 58 + 24 * 87 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - 1 -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\(\*\) AS col1" at position 1 have the 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\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 20 AS col1, COUNT ( * ) AS col1 query I rowsort label-2701 @@ -20191,7 +20191,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 71 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(71\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col0, 71 col0 query I rowsort @@ -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 Int32\)\) 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 @@ -22945,7 +22945,7 @@ SELECT + 99 * 37 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - -25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- nullif\(Int64\(25\), 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\(16\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "\(\- nullif\(Int64\(25\), Int64\(6\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 16 / COUNT ( * ) col1, - NULLIF ( 25, 6 ) AS col1 query I rowsort label-4357 @@ -24612,7 +24612,7 @@ SELECT MIN ( DISTINCT 84 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 93 -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\(93\) / 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 "Int64\(93\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) col0, 93 / + COUNT ( * ) AS col0 query II rowsort label-4674 @@ -26601,7 +26601,7 @@ SELECT ALL 76 * - COALESCE ( - COUNT ( * ), 2 * - 34 + + 20 ) + - MAX ( 55 + - 2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 851 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* \(\- Int64\(\-34\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(23\) \+ \(\- 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\(25\) \* \(\- Int64\(\-34\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(23\) \+ \(\- Int64\(\-47\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 25 * - - 34 + + COUNT ( * ) AS col0, 23 + - - 47 AS col0 query I rowsort @@ -29789,7 +29789,7 @@ SELECT + 25 / + + ( + 96 ) * 13, + 64 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - 1 -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\(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\(32\) 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 32 AS col1, COUNT ( * ) AS col1 query I rowsort @@ -34004,7 +34004,7 @@ SELECT - 46 - - + 47 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - -50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(51\) \- 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\(36\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(51\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 36 col1, COUNT ( * ) + + COUNT ( * ) - 51 - COUNT ( * ) AS col1 query I rowsort @@ -34878,7 +34878,7 @@ SELECT DISTINCT + 29 / - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -3956 -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\(46\) \* 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(46\) \* Int64\(\-86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col0, 46 * + - 86 col0 query I rowsort @@ -38083,7 +38083,7 @@ SELECT ALL NULLIF ( - 40, + 3 ) # Datafusion - Expected - NULL # Datafusion - Expected - 71 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 and "Int64\(68\) 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\(70\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 and "Int64\(68\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL NULLIF ( + CAST ( NULL AS INTEGER ), + 83 ) AS col2, 70 + COUNT ( * ) AS col1, 68 AS col1 query I rowsort label-7231 @@ -38584,7 +38584,7 @@ SELECT DISTINCT 12 * - + COUNT ( * ) * + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 320 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) \* Int64\(80\) \* 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\(4\) \* Int64\(80\) \* 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 4 * + 80 * + + COUNT ( * ) AS col0, + ( COUNT ( * ) ) AS col0 query I rowsort label-7327 @@ -38681,7 +38681,7 @@ SELECT DISTINCT SUM ( DISTINCT 84 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -444600 # Datafusion - Expected - -550539 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \* Int64\(15\) \* Int64\(78\) \* Int64\(\-4\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-83\) \* \(\- count\(DISTINCT Int64\(71\)\)\) \* Int64\(67\) \* 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\(95\) \* Int64\(15\) \* Int64\(78\) \* Int64\(\-4\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(\-83\) \* \(\- count\(DISTINCT Int64\(71\)\)\) \* Int64\(67\) \* Int64\(\-99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 95 * 15 * 78 * - 4 / COUNT ( * ) AS col0, + ( + - 83 ) * - COUNT ( DISTINCT + 71 ) * + + 67 * - 99 AS col0 query I rowsort label-7346 @@ -39755,7 +39755,7 @@ SELECT 11 - SUM ( DISTINCT + 32 ) / 14 + - + 82 + - + COUNT ( * ) + + COALESCE ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \+ Int64\(27\) \+ 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 "Int64\(62\) \+ Int64\(27\) \+ 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 + + 62 + ( + ( 27 ) ) + + COUNT ( * ) AS col2, + 3 AS col2 query II rowsort label-7551 @@ -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 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\. SELECT COALESCE ( + ( - + CAST ( + CAST ( ( 75 ) AS INTEGER ) AS INTEGER ) ), + 1 ) * 54 + + 65 AS col2, - 36 + + COUNT ( * ) AS col2 query I rowsort label-7627 @@ -41847,7 +41847,7 @@ SELECT - 11 - - 96 + SUM ( DISTINCT - 49 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1045 # Datafusion - Expected - 124 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) \* Int64\(\-29\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(62\) \* 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\(\-36\) \* Int64\(\-29\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(62\) \* Int64\(2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 36 * - 29 + + COUNT ( * ) AS col2, 62 * + 2 AS col2 query I rowsort @@ -47170,7 +47170,7 @@ SELECT ALL - 76 + + ( COUNT ( * ) ) * + 68 + - - 22 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \+ Int64\(\-14\) 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\(83\) \+ Int64\(\-14\) 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 83 + - 14 AS col1, COUNT ( * ) col1 query II rowsort @@ -49988,7 +49988,7 @@ SELECT ( + 16 ) * 96 + 38 # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - 830208 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-94\) \* Int64\(92\) \* 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\(51\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(\-94\) \* Int64\(92\) \* Int64\(\-96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 51 + + COUNT ( * ) AS col2, - 94 * + + 92 * - 96 AS col2 query I rowsort @@ -50304,7 +50304,7 @@ NULL # 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 "Int64\(35\) 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\(35\) 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 35 AS col2, COUNT ( * ) AS col2 query II rowsort label-9556 @@ -52061,7 +52061,7 @@ SELECT ( + + 63 ) * + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -25 # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) AS col2" at position 0 and "Int64\(5\) \+ coalesce\(\(\- Int64\(18\)\), count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(86\)\)\) \* 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\(\-25\) AS col2" at position 0 and "Int64\(5\) \+ coalesce\(\(\- Int64\(18\)\), count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(86\)\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 25 AS col2, 5 + + COALESCE ( - + 18, COUNT ( * ) * + COUNT ( ALL + 86 ) ) * COUNT ( * ) AS col2 query I rowsort label-9894 diff --git a/data/sqlite/random/expr/slt_good_19.slt b/data/sqlite/random/expr/slt_good_19.slt index 32fed39..47eebad 100644 --- a/data/sqlite/random/expr/slt_good_19.slt +++ b/data/sqlite/random/expr/slt_good_19.slt @@ -4424,7 +4424,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -87 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) 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\(\-87\) 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 - 87 col0, COUNT ( * ) AS col0 query I rowsort @@ -4649,7 +4649,7 @@ SELECT - - 17 + + 84 # Datafusion - Expected - -1524 # Datafusion - Expected - 37 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) \* Int64\(23\) \+ Int64\(\-58\) \- Int64\(\-29\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "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\(\-65\) \* Int64\(23\) \+ Int64\(\-58\) \- Int64\(\-29\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(66\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 65 * + 23 + ( - 58 ) - - 29 * COUNT ( * ) col0, ( 38 ) - + COUNT ( * ) col1, 66 AS col0 query I rowsort @@ -4895,7 +4895,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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, COUNT ( * ) col0 query II rowsort @@ -6749,7 +6749,7 @@ SELECT - 55 * + MIN ( + - 6 ) + - 60 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 689 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-13\) \* Int64\(\-53\) 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\(\-13\) \* Int64\(\-53\) 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 - 13 * - 53 AS col0, + 67 - + COUNT ( * ) AS col0 query I rowsort label-1275 @@ -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 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\. 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: @@ -14055,7 +14055,7 @@ SELECT ALL - 49 * + - 52 * + COUNT ( DISTINCT + ( + ( + + 83 ) ) ) AS col0, + 55 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 36 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(36\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, 36 AS col0 query I rowsort label-2669 @@ -14285,7 +14285,7 @@ SELECT DISTINCT - - 52 + - 89 * - + 21 AS col1 # Datafusion - Expected - -52 # Datafusion - Expected - -3052 # Datafusion - Expected - 1887 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(21\), Int64\(22\)\) \+ \(\- Int64\(73\)\) AS col0" at position 0 and "Int64\(\-23\) \* \(\- Int64\(82\)\) \+ 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 "nullif\(Int64\(21\), Int64\(22\)\) \+ \(\- Int64\(73\)\) AS col0" at position 0 and "Int64\(\-23\) \* \(\- Int64\(82\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL NULLIF ( + 21, + 22 ) + - + 73 AS col0, - 35 * 86 + + - 42, - 23 * - + 82 + COUNT ( * ) AS col0 query I rowsort @@ -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 Int32\)\) \* 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 @@ -23013,7 +23013,7 @@ SELECT - COUNT ( ALL - 94 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -90 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) \+ count\(Int64\(1\)\) AS count\(\*\) 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\(\-91\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 91 + COUNT ( * ) AS col2, + 77 col2 query I rowsort @@ -27913,7 +27913,7 @@ SELECT + MAX ( DISTINCT - + 89 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1861 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \* Int64\(\-90\) \+ Int64\(29\) AS col2" at position 0 and "Int64\(81\) \* 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\(\-90\) \+ Int64\(29\) AS col2" at position 0 and "Int64\(81\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 21 * - 90 + + 29 col2, 81 * + + COUNT ( * ) AS col2 query I rowsort label-5305 @@ -28975,7 +28975,7 @@ SELECT 1 * ( - 43 ) * CASE + 29 WHEN + 88 THEN NULL ELSE 84 * - 85 END + + 36 + # 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 "min\(Int64\(\-29\)\) \* Int64\(\-72\) \* \(\- Int64\(\-4\)\) / CASE Int64\(\-56\) WHEN Int64\(\-32\) \- Int64\(99\) \+ \(\- \(\- coalesce\(\(\- Int64\(68\)\), Int64\(\-56\) \* \(\- Int64\(29\)\) \+ Int64\(92\) \+ count\(Int64\(1\)\) AS count\(\*\), \(\- min\(\(\- Int64\(\-8\)\)\)\) \* \(\- Int64\(31\)\), \(\- Int64\(54\)\)\)\)\) THEN Int64\(9\) \+ Int64\(\-1\) END \+ Int64\(46\) \* Int64\(\-24\) / \(\- Int64\(94\)\) \* count\(Int64\(1\)\) AS count\(\*\) 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 "min\(Int64\(\-29\)\) \* Int64\(\-72\) \* \(\- Int64\(\-4\)\) / CASE Int64\(\-56\) WHEN Int64\(\-32\) \- Int64\(99\) \+ \(\- \(\- coalesce\(\(\- Int64\(68\)\), Int64\(\-56\) \* \(\- Int64\(29\)\) \+ Int64\(92\) \+ count\(Int64\(1\)\) AS count\(\*\), \(\- min\(\(\- Int64\(\-8\)\)\)\) \* \(\- Int64\(31\)\), \(\- Int64\(54\)\)\)\)\) THEN Int64\(9\) \+ Int64\(\-1\) END \+ Int64\(46\) \* Int64\(\-24\) / \(\- Int64\(94\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?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 + MIN ( - 29 ) * - 72 * - - 4 / + CASE - 56 WHEN - 32 - 99 + - - COALESCE ( - + 68, - 56 * - + ( + + 29 ) + + + 92 + COUNT ( * ), - MIN ( + ( - - 8 ) ) * + + ( - + 31 ), - + 54 ) THEN 9 + - 1 END + + 46 * - 24 / - + 94 * + COUNT ( * ) AS col0, 87 AS col0 query I rowsort @@ -30034,7 +30034,7 @@ SELECT - 96 * + 4 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(8\) 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\(\*\) \* Int64\(8\) 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 + COUNT ( * ) * + + 8 AS col2, + COUNT ( * ) AS col2 query II rowsort @@ -30748,7 +30748,7 @@ SELECT DISTINCT - 90 * + - 71 - MAX ( DISTINCT 31 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 545 # Datafusion - Expected - 112 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \* Int64\(42\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(93\) \+ 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\(13\) \* Int64\(42\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(93\) \+ Int64\(19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 13 * + 42 - + COUNT ( * ) col0, + 93 + + 19 AS col0 query I rowsort label-5843 @@ -34279,7 +34279,7 @@ SELECT NULLIF ( + 21, - 70 * - 68 + - 65 * - 29 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 96 -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\(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\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col0, 96 AS col0 query I rowsort @@ -34703,7 +34703,7 @@ SELECT 12 - 52 # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) 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\(37\) 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 37 AS col2, + COUNT ( * ) AS col2 query I rowsort label-6599 @@ -36217,7 +36217,7 @@ SELECT + 62, 96 AS col0 # 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\(\-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\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(\-34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) col2, - 34 AS col2 query I rowsort label-6885 @@ -38742,7 +38742,7 @@ SELECT + 4 + - + ( - 33 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 3784 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \* Int64\(43\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(78\) \+ 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\(88\) \* Int64\(43\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(78\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 88 * 43 AS col1, - COUNT ( * ) * + 78 + COUNT ( * ) AS col1 query I rowsort label-7371 @@ -43247,7 +43247,7 @@ SELECT COUNT ( * ) / 81 # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( - COUNT ( * ) ) AS col1, COUNT ( * ) AS col1 query I rowsort @@ -46414,7 +46414,7 @@ SELECT - COALESCE ( + 80, + + 55 * + 37, COUNT ( * ) ) * + 88 + 8 + - - 83 AS co # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 23 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, + 23 AS col1 query I rowsort label-8833 @@ -50070,7 +50070,7 @@ NULL # 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 col2" at position 0 and "CASE Int64\(\-16\) WHEN Int64\(51\) \* Int64\(74\) THEN Int64\(3\) \* count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(\-54\) \* Int64\(\-65\) THEN Int64\(\-75\) ELSE Int64\(0\) \* count\(Int64\(74\) \* Int64\(92\)\) 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\(\-13\) AS col2" at position 0 and "CASE Int64\(\-16\) WHEN Int64\(51\) \* Int64\(74\) THEN Int64\(3\) \* count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(\-54\) \* Int64\(\-65\) THEN Int64\(\-75\) ELSE Int64\(0\) \* count\(Int64\(74\) \* Int64\(92\)\) END \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 13 AS col2, CASE - 16 WHEN 51 * + + 74 THEN 3 * + COUNT ( * ) WHEN - 54 * - 65 THEN - 75 ELSE - 0 * + COUNT ( + ( 74 ) * 92 ) END * + COUNT ( * ) AS col2 query I rowsort @@ -51987,7 +51987,7 @@ SELECT ALL ( + + 44 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -11 -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\(\-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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(\-11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col0, - 11 AS col0 query II rowsort label-9894 diff --git a/data/sqlite/random/expr/slt_good_2.slt b/data/sqlite/random/expr/slt_good_2.slt index c3062ad..cb586cb 100644 --- a/data/sqlite/random/expr/slt_good_2.slt +++ b/data/sqlite/random/expr/slt_good_2.slt @@ -5915,7 +5915,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 7 -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 "\(\- min\(Int64\(51\)\)\) \+ 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\(\*\) )?AS col2" at position 0 and "\(\- min\(Int64\(51\)\)\) \+ Int64\(58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + COUNT ( * ) AS col2, - MIN ( ALL + 51 ) + 58 AS col2 query I rowsort label-1135 @@ -7720,7 +7720,7 @@ SELECT ALL - 6 * - - 23 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -666 -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\(9\) \* \(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(9\) \* \(\- Int64\(74\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col0, 9 * + ( - + 74 ) col0 query I rowsort @@ -13067,7 +13067,7 @@ SELECT - 8 * - 58 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - -4423 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col0" at position 0 and "Int64\(79\) \* Int64\(\-56\) \+ 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\) AS col0" at position 0 and "Int64\(79\) \* Int64\(\-56\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + 61 AS col0, + 79 * - 56 + + COUNT ( * ) AS col0 query I rowsort label-2527 @@ -13272,7 +13272,7 @@ SELECT + COUNT ( * ) / + 79 + - ( + MAX ( - 95 ) ) + + 58 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 91 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col2, + 91 AS col2 # Datafusion - Types were automatically converted from: @@ -14031,7 +14031,7 @@ SELECT MAX ( - 37 ) AS col2 # Datafusion - Expected - 1 # Datafusion - Expected - 78 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col0" at position 1 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\(78\) AS col0" at position 1 and "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + COUNT ( * ) / + 6 * + + 7 + COUNT ( * ) col1, + 78 col0, + COUNT ( * ) AS col0 query I rowsort @@ -16923,7 +16923,7 @@ SELECT + 90 + + 16 - + 62 AS col0 # 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 "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\(\-92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col2, - 92 col2 query II rowsort label-3269 @@ -25517,7 +25517,7 @@ SELECT ALL 27 / + 36 * - 79 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 "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\(\*\) )?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 ( * ) AS col0, - COUNT ( * ) AS col0 query I rowsort @@ -31654,7 +31654,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 49 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, + 49 AS col1 query I rowsort label-6105 @@ -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 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\. SELECT 57 * - CAST ( NULL AS INTEGER ) + - - 35 * 12 - 34 - - ( 27 ) + - - 36 - 46 / + ( + + COUNT ( * ) ) col1, - 12 AS col1 query I rowsort label-6339 @@ -33159,7 +33159,7 @@ SELECT ALL + 61 * + - ( - 36 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8932 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \+ Int64\(50\) \* \(\- sum\(Int64\(13\)\)\) \* Int64\(14\) \+ \(\- \(\- min\(Int64\(23\)\)\)\) \+ Int64\(71\) \+ count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) 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\(73\) \+ Int64\(50\) \* \(\- sum\(Int64\(13\)\)\) \* Int64\(14\) \+ \(\- \(\- min\(Int64\(23\)\)\)\) \+ Int64\(71\) \+ count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 73 + + 50 * + - SUM ( 13 ) * ( + + 14 ) + - - MIN ( 23 ) + + 71 + + + COUNT ( * ) * + + COUNT ( * ) AS col2, 16 AS col2 query I rowsort @@ -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 Int32\) 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 @@ -44034,7 +44034,7 @@ SELECT COALESCE ( COUNT ( * ), 52 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -32 # Datafusion - Expected - 732 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-32\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(33\) \* Int64\(23\) \+ 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\(\-32\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(33\) \* Int64\(23\) \+ Int64\(\-27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 32 / + COUNT ( * ) AS col0, 33 * + + 23 + - 27 AS col0 query I rowsort @@ -49045,7 +49045,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -113 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-28\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(84\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(21\) \- 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\(\-28\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(84\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(21\) \- Int64\(26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) + - 28 + - + COUNT ( * ) * + + 84 * + COUNT ( * ) AS col0, + 21 - + 26 AS col0 query I rowsort @@ -50256,7 +50256,7 @@ SELECT SUM ( + 33 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) 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\(19\) 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 + 19 AS col2, + COUNT ( * ) AS col2 query I rowsort @@ -51663,7 +51663,7 @@ SELECT 67 * + 45 + 21 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -20 # Datafusion - Expected - 1 -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\(\*\) AS col0" at position 1 have the 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\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 20 AS col0, COUNT ( * ) AS col0 query II rowsort label-9959 diff --git a/data/sqlite/random/expr/slt_good_20.slt b/data/sqlite/random/expr/slt_good_20.slt index d7e4c67..c591463 100644 --- a/data/sqlite/random/expr/slt_good_20.slt +++ b/data/sqlite/random/expr/slt_good_20.slt @@ -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 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\. SELECT ALL - 49 * - 88 + + - AVG ( + CAST ( NULL AS FLOAT8 ) ) * + - 89 + + CAST ( NULL AS INTEGER ) col0, + COUNT ( * ) + + + COUNT ( * ) AS col0 query I rowsort label-110 @@ -988,7 +988,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1236 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) \* \(\- Int64\(65\)\) \- 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\(19\) \* \(\- Int64\(65\)\) \- 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 + 19 * - + 65 - + COUNT ( * ) AS col1, 43 AS col1 query I rowsort label-181 @@ -1145,7 +1145,7 @@ SELECT + 76 * 77 - + + 47 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -33 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) 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\(\-33\) 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 - 33 AS col2, COUNT ( * ) AS col2 query II rowsort @@ -1796,7 +1796,7 @@ SELECT 83 * 48 + 27 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(81\)\) / \(\- \(\- Int64\(69\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- nullif\(Int64\(88\), 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 "max\(Int64\(81\)\) / \(\- \(\- Int64\(69\)\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "\(\- nullif\(Int64\(88\), Int64\(\-5\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL MAX ( + + 81 ) / - - ( + 69 ) * COUNT ( * ) AS col2, - NULLIF ( + 88, - 5 ) AS col2 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 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\. SELECT + MAX ( DISTINCT - ( + 64 ) ) * CAST ( 21 AS INTEGER ) + - 99 AS col2, COUNT ( * ) AS col2 query I rowsort label-801 @@ -5815,7 +5815,7 @@ SELECT - 21 * + + ( 92 ) + MIN ( - 41 ) * 14 + + 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 "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 DISTINCT 8 col1, + COUNT ( * ) AS col1 query I rowsort @@ -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 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\. SELECT + - CAST ( NULL AS INTEGER ) - + COUNT ( * ) AS col0, 6 * 18 AS col0 query I rowsort label-1513 @@ -9539,7 +9539,7 @@ SELECT ( 38 ) + - + 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - 820 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) \* \(\- Int64\(82\)\) 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\(\-10\) \* \(\- Int64\(82\)\) 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 ( - 10 ) * - + 82 AS col0, + COUNT ( * ) AS col0 query I rowsort label-1810 @@ -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 Int32\) 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 @@ -16988,7 +16988,7 @@ SELECT + NULLIF ( + COUNT ( * ), + 48 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1090 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT Int64\(11\)\) \* Int64\(99\) \+ count\(Int64\(1\)\) AS count\(\*\) 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 "max\(DISTINCT Int64\(11\)\) \* Int64\(99\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + MAX ( DISTINCT + 11 ) * + 99 + COUNT ( * ) AS col0, 86 AS col0 query I rowsort label-3235 @@ -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 Int32\) 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 @@ -29182,7 +29182,7 @@ SELECT ALL + + COALESCE ( - 2, - + SUM ( + 52 ), COALESCE ( + + 31, + + 55 * CAS # 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\(44\) \+ Int64\(\-37\) / CASE \(\- Int64\(\-66\)\) WHEN \(\- Int64\(23\)\) THEN count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(44\) \+ Int64\(\-37\) / CASE \(\- Int64\(\-66\)\) WHEN \(\- Int64\(23\)\) THEN count\(Int64\(1\)\) AS count\(\*\) 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 + ( 44 ) + - 37 / CASE - - 66 WHEN - ( + 23 ) THEN + COUNT ( * ) END AS col2, + COUNT ( * ) AS col2 query I rowsort @@ -30249,7 +30249,7 @@ SELECT ALL - 70 * ( - - 29 ) + + 69 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1357 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \* Int64\(23\) \- Int64\(56\) \+ Int64\(10\) 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\(61\) \* Int64\(23\) \- Int64\(56\) \+ Int64\(10\) 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 61 * + 23 - 56 + ( 10 ) col1, COUNT ( * ) AS col1 query I rowsort @@ -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 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\. 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: @@ -32907,7 +32907,7 @@ SELECT ALL + 23 AS col0, 13 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -34 # Datafusion - Expected - -959 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(34\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-96\) \* \(\- Int64\(10\)\) \* 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 "\(\- nullif\(Int64\(34\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-96\) \* \(\- Int64\(10\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - NULLIF ( 34, - + COUNT ( * ) ) AS col1, COUNT ( * ) - - 96 * - + 10 * COUNT ( * ) AS col1 query I rowsort label-6267 @@ -34947,7 +34947,7 @@ SELECT ALL + 50 + - + 67 - CAST ( 74 AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) 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\(33\) 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 33 col0, + COUNT ( * ) AS col0 query I rowsort label-6656 @@ -35373,7 +35373,7 @@ SELECT 81 * - + MAX ( DISTINCT - + 69 ) * + 77 * - COUNT ( * ) - 16 + - 35 AS co # 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 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\(15\) 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 + 15 AS col2, COUNT ( * ) col2 query I rowsort label-6737 @@ -36678,7 +36678,7 @@ SELECT ( - MIN ( DISTINCT - - 23 ) ) * - - 94 * ( - 32 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -924 # Datafusion - Expected - 1970 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) \* Int64\(37\) \+ Int64\(60\) \+ \(\- min\(Int64\(\-78\)\)\) \+ \(\- Int64\(79\)\) \* Int64\(\-17\) AS col0" at position 0 and "Int64\(29\) \* Int64\(65\) \+ 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\(\-65\) \* Int64\(37\) \+ Int64\(60\) \+ \(\- min\(Int64\(\-78\)\)\) \+ \(\- Int64\(79\)\) \* Int64\(\-17\) AS col0" at position 0 and "Int64\(29\) \* Int64\(65\) \+ Int64\(85\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 65 * + 37 + 60 + - ( MIN ( - 78 ) ) + - ( + + 79 ) * - 17 AS col0, + 29 * + 65 + + 85 * COUNT ( * ) AS col0 query I rowsort @@ -37837,7 +37837,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -39 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 "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 ALL - 39 AS col0, + COUNT ( * ) AS col0 query II rowsort @@ -41659,7 +41659,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\(3\) \* 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 "Int64\(3\) \* 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 3 * + - 14 AS col0, + COUNT ( * ) AS col0 query II rowsort @@ -43079,7 +43079,7 @@ SELECT ALL + - ( + NULLIF ( + + ( + + 79 ), + 29 * - 77 + 19 ) ) + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -78 # Datafusion - Expected - 1 -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\(\*\) AS col2" at position 1 have the 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\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 78 AS col2, COUNT ( * ) AS col2 query I rowsort @@ -43278,7 +43278,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - -372 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) \+ sum\(DISTINCT Int64\(90\)\) \- Int64\(\-27\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(57\) \- Int64\(39\) \* 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\(\-47\) \+ sum\(DISTINCT Int64\(90\)\) \- Int64\(\-27\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(57\) \- Int64\(39\) \* Int64\(11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 47 + + + SUM ( DISTINCT + 90 ) - - 27 + - + COUNT ( * ) - COUNT ( * ) AS col1, 57 - + 39 * + + 11 col1 query I rowsort @@ -44298,7 +44298,7 @@ SELECT NULLIF ( 14, - 68 / + 63 + - + 68 - + - 15 * - 0 + - 66 * 47 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 22 -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\(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\(\*\) )?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 ( * ) AS col1, 22 col1 query I rowsort label-8438 @@ -45795,7 +45795,7 @@ SELECT 13 + - 53 + + 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - -22573 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-57\) \* Int64\(6\) \* 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-57\) \* Int64\(6\) \* 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 - COUNT ( * ) + + - 57 * 6 * 66 col0, COUNT ( * ) AS col0 query I rowsort label-8724 @@ -49406,7 +49406,7 @@ SELECT DISTINCT 53 * + - 30 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) 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\) 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 17 AS col2, COUNT ( * ) AS col2 query I rowsort label-9417 @@ -49993,7 +49993,7 @@ SELECT - COALESCE ( - 16, 72 + + 70 ) # 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 "Int64\(47\) \* count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(47\) \* count\(Int64\(1\)\) (AS count\(\*\) )?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 47 * COUNT ( * ) AS col0, + 33 AS col0 query I rowsort label-9528 @@ -51614,7 +51614,7 @@ SELECT SUM ( 81 ) * + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -19 # Datafusion - Expected - 1 -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\(\*\) AS col0" at position 1 have the 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\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 19 AS col0, COUNT ( * ) AS col0 query I rowsort @@ -51691,7 +51691,7 @@ SELECT 16 * 76 # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \+ Int64\(\-70\) 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\(23\) \+ Int64\(\-70\) 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 23 + - 70 AS col1, COUNT ( * ) AS col1 query I rowsort label-9850 diff --git a/data/sqlite/random/expr/slt_good_21.slt b/data/sqlite/random/expr/slt_good_21.slt index e0e5ec1..717f1fa 100644 --- a/data/sqlite/random/expr/slt_good_21.slt +++ b/data/sqlite/random/expr/slt_good_21.slt @@ -5725,7 +5725,7 @@ SELECT 81 + + NULLIF ( 55, - + 91 + 25 ) AS col2 # 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 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\(3\) 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 3 AS col1, COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: @@ -7418,7 +7418,7 @@ SELECT DISTINCT 67 AS col2, 29 - + 84 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col0" at position 0 and "Int64\(0\) \* \(\- Int64\(77\)\) \* Int64\(4\) \* Int64\(56\) / 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\) AS col0" at position 0 and "Int64\(0\) \* \(\- Int64\(77\)\) \* Int64\(4\) \* Int64\(56\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 51 AS col0, + 0 * + - ( + 77 ) * + 4 * + 56 / COUNT ( * ) AS col0 query I rowsort label-1405 @@ -9274,7 +9274,7 @@ SELECT - 46 AS col0, + 93 * - 28 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) 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\(13\) 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 13 AS col0, + COUNT ( * ) AS 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 Int32\)\)\) \* 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 Int32\) \* 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 @@ -12642,7 +12642,7 @@ SELECT - COALESCE ( - 37, + + 39 * + 37 ) / - 23 AS col0, 3 * - 35 - 82 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 80 -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\(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\(\*\) )?AS col2" at position 0 and "Int64\(80\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, 80 AS col2 query II rowsort label-2400 @@ -13145,7 +13145,7 @@ SELECT 56 - 35 * - 6 + 19 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -230942 -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\) \+ \(\- Int64\(6\)\) \* min\(Int64\(\-14\)\) \* Int64\(55\) \* 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(58\) \+ \(\- Int64\(6\)\) \* min\(Int64\(\-14\)\) \* Int64\(55\) \* Int64\(\-50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col0, + 58 + - + 6 * MIN ( ALL - 14 ) * + 55 * + - 50 col0 query I rowsort label-2496 @@ -23032,7 +23032,7 @@ SELECT DISTINCT + COALESCE ( + MAX ( + - 67 ), - CASE + 18 WHEN - CASE - 25 WHEN # Datafusion - Datafusion expected results: # Datafusion - Expected - -73 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-74\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- nullif\(\(\- Int64\(\-2\)\), \(\- 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\(\-74\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "\(\- nullif\(\(\- Int64\(\-2\)\), \(\- Int64\(99\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 74 + COUNT ( * ) AS col0, - NULLIF ( - - 2, - + ( + + 99 ) ) AS col0 query II rowsort label-4375 @@ -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 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\. SELECT 68 * + - ( + NULLIF ( + 5, - CAST ( NULL AS INTEGER ) ) ) AS col1, - 71 * COUNT ( * ) AS col1 query I rowsort @@ -27501,7 +27501,7 @@ SELECT ALL 70 - - 35 / + 42 AS col1 # Datafusion - Expected - 1 # Datafusion - Expected - -16 # Datafusion - Expected - 45 -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 "max\(Int64\(45\)\) 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 "max\(Int64\(45\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, 49 + - 83 + 18 AS col2, + + MAX ( + 45 ) col1 query I rowsort label-5229 @@ -27571,7 +27571,7 @@ SELECT ALL + 59 * 50 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 81 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 COUNT ( * ) AS col2, + 81 AS col2 query I rowsort label-5242 @@ -31086,7 +31086,7 @@ SELECT DISTINCT ( + + 6 ) * - 19 AS col2 # 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 col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* 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\(\*\) )?AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col1, COUNT ( * ) * + 19 col1 query I rowsort label-5914 @@ -34069,7 +34069,7 @@ SELECT ALL 49 AS col1, - 25 + + 85 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 75 -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\(32\) \+ 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(32\) \+ Int64\(43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, 32 + + ( 43 ) AS col1 query I rowsort label-6479 @@ -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 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\. 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 @@ -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 Int32\) 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 @@ -40078,7 +40078,7 @@ SELECT COUNT ( * ) + - - 61 + + 43 AS 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 col1" at position 0 and "\(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col1, - COUNT ( * ) + + ( + + 43 ) AS col1 query I rowsort label-7627 @@ -42181,7 +42181,7 @@ SELECT MIN ( ALL + + 76 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -107 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) \- Int64\(72\) 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\(\-35\) \- Int64\(72\) 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 - 35 - 72 AS col1, COUNT ( * ) AS col1 query I 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 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\. SELECT DISTINCT - ( + + 16 ) + - + 14 + + CAST ( - 47 AS INTEGER ) * 22 AS col2, + MAX ( ALL 92 ) * COUNT ( * ) AS col2, + 55 AS col2 query I rowsort @@ -42849,7 +42849,7 @@ SELECT ALL 61 / + + 19 + + 30 * - 98, + 8 col0 # Datafusion - Expected - -1322 # Datafusion - Expected - 50 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) / coalesce\(\(\- Int64\(\-17\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(7\)\) \+ Int64\(\-83\) \* Int64\(17\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(88\) \* count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(16\) / coalesce\(\(\- Int64\(\-17\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(7\)\) \+ Int64\(\-83\) \* Int64\(17\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(88\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 16 / + + COALESCE ( - ( - 17 ), - COUNT ( * ) / + 7 ) + + - 83 * + 17 + COUNT ( * ) + 88 * + COUNT ( * ) AS col2, 50 AS col2, 10 query I rowsort @@ -44305,7 +44305,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 91 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, 91 AS col2 query I rowsort label-8433 @@ -47208,7 +47208,7 @@ SELECT 41 + + 50 * + + ( + 99 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -63 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) 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\(\-63\) 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 - 63 AS col0, COUNT ( * ) AS col0 query I rowsort @@ -48597,7 +48597,7 @@ SELECT MIN ( ALL 64 ) # 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\(34\) / \(\- coalesce\(Int64\(70\), Int64\(54\), Int64\(74\) \* Int64\(35\)\)\) 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\(34\) / \(\- coalesce\(Int64\(70\), Int64\(54\), Int64\(74\) \* Int64\(35\)\)\) 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 + 34 / - COALESCE ( 70, 54, 74 * 35 ) col1, COUNT ( * ) col1 query I rowsort @@ -49510,7 +49510,7 @@ SELECT CAST ( + + 50 AS INTEGER ) * 10 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -15 -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\(\-12\) \+ Int64\(\-2\) \+ \(\- 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\(\-12\) \+ Int64\(\-2\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col1, - 12 + - 2 + - + COUNT ( * ) AS col1 query II rowsort @@ -50765,7 +50765,7 @@ SELECT DISTINCT + 36 + 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - -58 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) \+ \(\- Int64\(\-24\)\) AS col1" at position 0 and "Int64\(\-4\) / 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\(\-82\) \+ \(\- Int64\(\-24\)\) AS col1" at position 0 and "Int64\(\-4\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 82 + - - 24 AS col1, - 4 / COUNT ( * ) AS col1 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_22.slt b/data/sqlite/random/expr/slt_good_22.slt index e5f6d77..3f0a14a 100644 --- a/data/sqlite/random/expr/slt_good_22.slt +++ b/data/sqlite/random/expr/slt_good_22.slt @@ -2833,7 +2833,7 @@ SELECT DISTINCT - + 65 * - 97 + + 27 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-64\)\) \* count\(Int64\(1\)\) AS count\(\*\) 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\(\-64\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 64 * COUNT ( * ) AS col0, 63 col0 query I rowsort @@ -8966,7 +8966,7 @@ SELECT 47 * - - 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 81 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) col2, 81 AS col2 # Datafusion - Types were automatically converted from: @@ -17211,7 +17211,7 @@ SELECT ALL + 73 / COUNT ( * ) AS col2 # 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\(\-2\) 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\(\-2\) 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 + - 2 AS col0, + COUNT ( * ) AS col0 query I rowsort label-3278 @@ -19040,7 +19040,7 @@ SELECT + 82 * 39 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - -2769 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col2" at position 0 and "Int64\(\-8\) \* Int64\(36\) \+ \(\- Int64\(62\)\) \* Int64\(40\) \- 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\(63\) AS col2" at position 0 and "Int64\(\-8\) \* Int64\(36\) \+ \(\- Int64\(62\)\) \* Int64\(40\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 63 AS col2, - 8 * + 36 + - + 62 * + 40 - + + COUNT ( * ) col2 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 Int32\)\) \* 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 @@ -23256,7 +23256,7 @@ SELECT + 68 AS col0, COUNT ( - - 96 ) + - 8 + + COALESCE ( - - COUNT ( * ), - + # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 35 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 + COUNT ( * ) col2, 35 col2 query I rowsort @@ -24104,7 +24104,7 @@ SELECT + 19 * + 68 + + 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7608 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) \* Int64\(96\) \+ Int64\(9\) \* Int64\(3\) \+ Int64\(45\) AS col0" at position 0 and "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\(\-80\) \* Int64\(96\) \+ Int64\(9\) \* Int64\(3\) \+ Int64\(45\) AS col0" at position 0 and "Int64\(28\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + ( + - 80 ) * + 96 + 9 * + 3 + 45 AS col0, 28 + COUNT ( * ) AS col0 query I rowsort label-4592 @@ -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 Int32\)\) 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 @@ -26081,7 +26081,7 @@ SELECT ALL 5 * + + 61 + - 25 / - 99 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -72 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(72\)\) 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\(72\)\) 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 ( - + 72 ) AS col1, + ( COUNT ( * ) ) AS col1 query I rowsort label-4966 @@ -28283,7 +28283,7 @@ SELECT DISTINCT - 7 + + - ( 75 ) + + + 35 - 60 / 23 + 72 * 77 * + COALESCE ( - - # 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 "nullif\(Int64\(0\), \(\- \(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Float64\)\)\) \+ Int64\(95\) \+ 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\(\-13\) AS col1" at position 0 and "nullif\(Int64\(0\), \(\- \(\- CAST\(count\(Int64\(1\)\) (AS count\(\*\) )?AS Float64\)\)\) \+ Int64\(95\) \+ Int64\(33\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 13 AS col1, ( NULLIF ( - 0, - - CAST ( COUNT ( * ) AS FLOAT8 ) + + 95 + 33 ) ) AS col1 query I rowsort label-5390 @@ -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 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\. SELECT + CAST ( NULL AS INTEGER ) AS col0, 30 / COUNT ( * ) AS col0 query I rowsort label-5595 @@ -29877,7 +29877,7 @@ SELECT + COUNT ( * ) * - 5 * - MAX ( ALL + 9 ) AS col1, CAST ( NULL AS INTEGER ) # 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 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\. SELECT ALL 37 / - CAST ( NULL AS INTEGER ) AS col0, 85 / + COUNT ( * ) AS col0 query I rowsort @@ -42994,7 +42994,7 @@ SELECT ALL + 28 * - 24 AS col1 # 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 "CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(67\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(19\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(8\)\) END \+ count\(Int64\(1\)\) AS count\(\*\) 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 "CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(67\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(19\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(8\)\) END \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CASE - COUNT ( * ) WHEN - COUNT ( * ) + 67 THEN - COUNT ( * ) * - + 19 + - COUNT ( * ) * + - ( 8 ) END + + COUNT ( * ) AS col2, + 64 AS col2 query I rowsort @@ -46406,7 +46406,7 @@ SELECT 7, 95 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 "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 "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 COUNT ( * ) AS col2, + COUNT ( * ) AS col2 query I rowsort @@ -48485,7 +48485,7 @@ SELECT ALL 93, - 68 * + 40 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -94 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) AS col0" at position 0 and "Int64\(98\) \+ 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 "Int64\(98\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 94 AS col0, + 98 + + + COUNT ( * ) AS col0 query I rowsort @@ -48511,7 +48511,7 @@ SELECT ALL 80 + - 49 AS col0 # 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 "count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COUNT ( * ) AS col1, 37 AS col1 query I rowsort label-9239 @@ -50125,7 +50125,7 @@ SELECT ALL + 22 * + + 28 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) / Int64\(56\) AS col1" at position 0 and "Int64\(6\) \* 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\(82\) / Int64\(56\) AS col1" at position 0 and "Int64\(6\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 82 / + 56 AS col1, 6 * + COUNT ( * ) AS col1 query I rowsort label-9542 diff --git a/data/sqlite/random/expr/slt_good_23.slt b/data/sqlite/random/expr/slt_good_23.slt index 2254f8f..bf723c1 100644 --- a/data/sqlite/random/expr/slt_good_23.slt +++ b/data/sqlite/random/expr/slt_good_23.slt @@ -3227,7 +3227,7 @@ SELECT ALL - - COUNT ( DISTINCT + 69 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) 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\(\-50\) 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 - 50 AS col0, + COUNT ( * ) AS col0 query I rowsort label-611 @@ -3338,7 +3338,7 @@ SELECT DISTINCT MIN ( ALL - - 80 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \* count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(83\) \* count\(Int64\(1\)\) (AS count\(\*\) )?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 83 * + COUNT ( * ) AS col1, - ( + 22 ) AS col1 query I rowsort @@ -6532,7 +6532,7 @@ SELECT ALL + COALESCE ( + - 66, 77 ) AS col2, - 72 + - - 50 - ( + 30 ) + 4 * - - # 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\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- sum\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "\(\- sum\(Int64\(61\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col0, + ( - + SUM ( + 61 ) ) AS col0 query I rowsort @@ -9227,7 +9227,7 @@ SELECT ALL - NULLIF ( + 70, 21 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 185 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \+ Int64\(54\) \- \(\- \(\- Int64\(\-60\)\)\) 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\) \+ Int64\(54\) \- \(\- \(\- Int64\(\-60\)\)\) 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 71 + 54 - - - ( - 60 ) col0, COUNT ( * ) AS col0 query I rowsort label-1757 @@ -12749,7 +12749,7 @@ SELECT ALL + ( - + 76 ) + - 45 + ( - + COUNT ( * ) ) * + 85 + MAX ( + ( + 28 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -39 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) \+ count\(Int64\(1\)\) AS count\(\*\) 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\(\-40\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?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 - 40 + COUNT ( * ) AS col0, + 42 col0 query I rowsort @@ -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 Int32\) 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 @@ -15144,7 +15144,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col2" at position 0 and "Int64\(12\) \+ 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\) AS col2" at position 0 and "Int64\(12\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 97 AS col2, 12 + + COUNT ( * ) AS col2 query I rowsort label-2881 @@ -16107,7 +16107,7 @@ SELECT - - COUNT ( * ) - COUNT ( * ) # 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 "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) col0, COUNT ( * ) - + 15 AS col0 query I rowsort label-3063 @@ -16557,7 +16557,7 @@ SELECT DISTINCT + NULLIF ( - + 22, 49 * + - CAST ( + 73 AS INTEGER ) + + - 87 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -97916 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) \* Int64\(72\) / Int64\(73\) / Int64\(55\) \+ Int64\(\-78\) \* \(\- nullif\(Int64\(15\), Int64\(89\)\)\) \* \(\- Int64\(84\)\) \+ Int64\(\-14\) \* \(\- min\(Int64\(26\)\)\) 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\(40\) \* Int64\(72\) / Int64\(73\) / Int64\(55\) \+ Int64\(\-78\) \* \(\- nullif\(Int64\(15\), Int64\(89\)\)\) \* \(\- Int64\(84\)\) \+ Int64\(\-14\) \* \(\- min\(Int64\(26\)\)\) 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 40 * 72 / 73 / + 55 + + - 78 * + - NULLIF ( 15, + ( 89 ) ) * + ( - + 84 ) + - 14 * - MIN ( 26 ) AS col1, COUNT ( * ) AS col1 query I rowsort label-3150 @@ -18380,7 +18380,7 @@ SELECT - + NULLIF ( - COUNT ( * ), 10 * + 43 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -201 -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\(\-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\(\*\) )?AS col2" at position 0 and "Int64\(3\) \* Int64\(\-67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col2, 3 * - 67 AS col2 query I rowsort label-3500 @@ -19396,7 +19396,7 @@ SELECT DISTINCT - 85 AS col0, - 7 * + 72 AS col1 # 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 "\(\- Int64\(88\)\) AS col0" at position 0 and "sum\(DISTINCT Int64\(19\)\) \* 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\(88\)\) AS col0" at position 0 and "sum\(DISTINCT Int64\(19\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + 88 AS col0, + SUM ( DISTINCT + + 19 ) * COUNT ( * ) AS col0 query I rowsort label-3693 @@ -20687,7 +20687,7 @@ SELECT DISTINCT + 65 / - - COALESCE ( 29, - 7 ) # 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\(\-73\) WHEN \(\- \(\- Int64\(36\)\)\) \* Int64\(60\) / Int64\(\-36\) \* \(\- avg\(DISTINCT Int64\(30\)\)\) \* Int64\(49\) \+ Int64\(\-43\) THEN NULL WHEN Int64\(23\) THEN NULL WHEN Int64\(\-56\) THEN Int64\(\-82\) \* Int64\(98\) \+ Int64\(84\) END\) \* count\(Int64\(1\)\) AS count\(\*\) \+ nullif\(coalesce\(Int64\(41\), Int64\(13\) \- Int64\(\-10\) \* Int64\(33\)\), Int64\(\-31\)\) \* 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\) AS col0" at position 0 and "\(\- CASE Int64\(\-73\) WHEN \(\- \(\- Int64\(36\)\)\) \* Int64\(60\) / Int64\(\-36\) \* \(\- avg\(DISTINCT Int64\(30\)\)\) \* Int64\(49\) \+ Int64\(\-43\) THEN NULL WHEN Int64\(23\) THEN NULL WHEN Int64\(\-56\) THEN Int64\(\-82\) \* Int64\(98\) \+ Int64\(84\) END\) \* count\(Int64\(1\)\) AS count\(\*\) \+ nullif\(coalesce\(Int64\(41\), Int64\(13\) \- Int64\(\-10\) \* Int64\(33\)\), Int64\(\-31\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 22 AS col0, ( + - CASE - 73 WHEN - + ( - + 36 ) * + + 60 / + - 36 * - AVG ( DISTINCT + 30 ) * 49 + - 43 THEN NULL WHEN + 23 THEN NULL WHEN - 56 THEN - 82 * + + 98 + 84 END ) * COUNT ( * ) + NULLIF ( COALESCE ( + 41, + 13 - - 10 * + 33 ), - 31 ) * + COUNT ( * ) col0 query I rowsort label-3933 @@ -21715,7 +21715,7 @@ SELECT DISTINCT + - ( - 73 ) AS col1 # 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 "nullif\(Int64\(4\), Int64\(\-84\)\) 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\(4\), Int64\(\-84\)\) 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 + NULLIF ( 4, - 84 ) AS col0, COUNT ( * ) AS col0 query I rowsort label-4129 @@ -23614,7 +23614,7 @@ SELECT + MIN ( + + 83 ) * + 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1820 -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\(26\) \* 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(26\) \* Int64\(70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col2, 26 * + 70 AS col2 query II rowsort @@ -23982,7 +23982,7 @@ SELECT - 95 * + MIN ( ALL - 26 ) * + 8 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 63 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) col0, 63 AS col0 query I rowsort label-4559 @@ -27841,7 +27841,7 @@ SELECT - COALESCE ( MIN ( 15 ), - 62 + - COUNT ( * ) + - COUNT ( * ) + + 59, - 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 7332 -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\(78\) \* 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\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(78\) \* Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col2, + 78 * 94 AS col2 query I rowsort label-5295 @@ -28234,7 +28234,7 @@ SELECT DISTINCT CAST ( - 4 AS INTEGER ) * - 94 AS col2, - 72 + - 43 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -90 -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\(\-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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, COUNT ( * ) * ( - 90 ) AS col2 query I rowsort @@ -29906,7 +29906,7 @@ SELECT - SUM ( DISTINCT NULLIF ( - 60, 56 ) ) * - 78 + 34 * + 7 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -72 -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\(\-57\) \* Int64\(85\) / 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(\-57\) \* Int64\(85\) / Int64\(67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, - 57 * 85 / + + 67 AS col0 query I rowsort label-5685 @@ -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 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\. 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 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\. 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 @@ -35085,7 +35085,7 @@ SELECT - 74, 33 AS col2 # 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\(84\) 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\(84\) 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 84 AS col1, COUNT ( * ) col1 query II rowsort @@ -35642,7 +35642,7 @@ SELECT + COUNT ( * ) AS col1, - 76 + + ( - - 37 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -338272 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \* \(\- Int64\(88\)\) \* 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 "Int64\(62\) \* \(\- Int64\(88\)\) \* 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 DISTINCT 62 * - + 88 * + 62 AS col1, COUNT ( * ) AS col1 query I rowsort label-6781 @@ -35776,7 +35776,7 @@ SELECT ALL - NULLIF ( - - ( + 77 ), - NULLIF ( - + 8, 20 * CAST ( NULL AS INTEGE # 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 "\(\- Int64\(\-35\)\) \* count\(DISTINCT Int64\(24\)\) \* count\(Int64\(1\)\) AS count\(\*\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "nullif\(Int64\(66\), coalesce\(count\(Int64\(1\)\) AS count\(\*\), count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(55\) \- Int64\(5\)\) / 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\(\-35\)\) \* count\(DISTINCT Int64\(24\)\) \* count\(Int64\(1\)\) AS count\(\*\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "nullif\(Int64\(66\), coalesce\(count\(Int64\(1\)\) AS count\(\*\), count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(55\) \- Int64\(5\)\) / Int64\(43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 35 * COUNT ( DISTINCT 24 ) * + COUNT ( * ) / COUNT ( * ) AS col1, + NULLIF ( 66, COALESCE ( COUNT ( * ), COUNT ( * ) ) * + + 55 - 5 ) / 43 AS col1 query I rowsort label-6807 @@ -36313,7 +36313,7 @@ SELECT ALL - MAX ( ALL 43 ) + + - SUM ( ALL + - 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 "Int64\(\-27\) / Int64\(\-61\) 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\(\-27\) / Int64\(\-61\) 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 - 27 / - 61 AS col0, + COUNT ( * ) AS col0 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 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\. 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 @@ -37569,7 +37569,7 @@ SELECT 45 + - 39 AS col1 # 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\(56\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(49\) \* count\(Int64\(1\)\) AS 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 "Int64\(56\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(49\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 56 + + COUNT ( * ) AS col1, + 49 * + COUNT ( * ) / - 62 AS col1 query I rowsort @@ -38072,7 +38072,7 @@ SELECT COUNT ( * ) / - - 51 AS col2, - 99 AS col1 # 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\(6\) \- \(\- Int64\(\-55\)\) 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\(6\) \- \(\- Int64\(\-55\)\) 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 + 6 - - - 55 AS col2, COUNT ( * ) AS col2 query I rowsort label-7243 @@ -39504,7 +39504,7 @@ SELECT - 14 * - 26 * + 62 # 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 col1" at position 0 and "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\(\*\) )?AS col1" at position 0 and "Int64\(40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col1, 40 AS col1 query I rowsort @@ -42281,7 +42281,7 @@ SELECT 12 / + 95 # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 "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 50 AS col2, COUNT ( * ) AS col2 query II 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 Int32\) 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 @@ -43764,7 +43764,7 @@ SELECT DISTINCT + SUM ( + + 77 ) * - 94 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 51 -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\(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\(\*\) )?AS col0" at position 0 and "max\(Int64\(51\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, MAX ( + 51 ) AS col0 query II rowsort label-8336 @@ -45554,7 +45554,7 @@ SELECT DISTINCT - - 6 - + 58 AS col1, - 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - 324 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) \* Int64\(9\) 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\(36\) \* Int64\(9\) 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 36 * + + 9 col2, COUNT ( * ) col2 # Datafusion - Types were automatically converted from: @@ -47554,7 +47554,7 @@ SELECT SUM ( ALL 81 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -19925227 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \+ Int64\(68\) \* Int64\(65\) \* \(\- Int64\(\-46\)\) \* Int64\(\-98\) \+ Int64\(95\) 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\(38\) \+ Int64\(68\) \* Int64\(65\) \* \(\- Int64\(\-46\)\) \* Int64\(\-98\) \+ Int64\(95\) 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 + 38 + + 68 * 65 * - - 46 * - 98 + 95 AS col1, + COUNT ( * ) AS col1 # Datafusion - Data was automatically updated based on comparison db results diff --git a/data/sqlite/random/expr/slt_good_24.slt b/data/sqlite/random/expr/slt_good_24.slt index 5590c1b..9c28f1d 100644 --- a/data/sqlite/random/expr/slt_good_24.slt +++ b/data/sqlite/random/expr/slt_good_24.slt @@ -272,7 +272,7 @@ SELECT - - ( + 74 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -16 # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) \+ Int64\(27\) \+ count\(Int64\(1\)\) AS count\(\*\) 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\(\-44\) \+ Int64\(27\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(\-31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 44 + 27 + + COUNT ( * ) AS col0, ( - 31 ) AS col0 query I rowsort label-45 @@ -747,7 +747,7 @@ SELECT - 61 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 93 -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\(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\(\*\) )?AS col1" at position 0 and "Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, 93 AS col1 # Datafusion - Data was automatically updated based on comparison db results @@ -3562,7 +3562,7 @@ SELECT + 17, 28 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - -57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \+ count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(56\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "\(\- Int64\(57\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 56 + COUNT ( * ) AS col0, - ( + 57 ) col0 query I rowsort label-679 @@ -6527,7 +6527,7 @@ SELECT 34 + 58 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -90 -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\(\-90\), 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 "coalesce\(Int64\(\-90\), count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COUNT ( * ) AS col2, COALESCE ( - 90, COUNT ( * ) ) col2 query I rowsort label-1245 @@ -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 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\. 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 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\. 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: @@ -12419,7 +12419,7 @@ SELECT DISTINCT + 72 * COUNT ( * ) + - 16 + + 31 * SUM ( 87 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - -1677 -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 "Int64\(43\) \* 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\(80\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(43\) \* Int64\(\-39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 80 * COUNT ( * ) AS col2, + 43 * - 39 AS col2 query I rowsort @@ -13747,7 +13747,7 @@ SELECT 27 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \- count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(79\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 79 - + + COUNT ( * ) col0, 51 col0 query I rowsort label-2628 @@ -14826,7 +14826,7 @@ SELECT ALL + 81 * - - 43 col0, + 97 / + + 27 # Datafusion - Expected - -1602 # Datafusion - Expected - 81 # Datafusion - Expected - -11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) \* \(\- Int64\(\-34\)\) \- Int64\(4\) AS col2" at position 0 and "\(\- Int64\(12\)\) \+ 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 "Int64\(\-47\) \* \(\- Int64\(\-34\)\) \- Int64\(4\) AS col2" at position 0 and "\(\- Int64\(12\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 47 * - - 34 - 4 AS col2, + 15 + + 66 AS col1, - + 12 + + + COUNT ( * ) AS col2 query I rowsort label-2835 @@ -15508,7 +15508,7 @@ SELECT + 96 + - 48 AS col0 # Datafusion - Expected - -1 # Datafusion - Expected - 2 # Datafusion - Expected - -977 -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 "Int64\(49\) \+ Int64\(\-57\) \* \(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(49\) \+ Int64\(\-57\) \* \(\- Int64\(\-18\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) * COUNT ( * ) AS col0, 79 / + 31, + 49 + - 57 * - - 18 AS col0 query I rowsort @@ -16164,7 +16164,7 @@ SELECT + 2 * + 16 * + 73 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(\-24\)\)\) 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 "\(\- min\(Int64\(\-24\)\)\) 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 - + MIN ( - 24 ) AS col2, COUNT ( * ) AS col2 query I rowsort @@ -22065,7 +22065,7 @@ SELECT + CAST ( - COUNT ( * ) AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 46 -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\(\-46\), Int64\(46\) \* \(\- \(\- \(\- Int64\(1\)\)\)\) \+ Int64\(29\) / 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "\(\- coalesce\(Int64\(\-46\), Int64\(46\) \* \(\- \(\- \(\- Int64\(1\)\)\)\) \+ Int64\(29\) / Int64\(\-53\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col0, - COALESCE ( - 46, 46 * - ( - - ( 1 ) ) + 29 / - 53 ) AS col0 query I rowsort label-4223 @@ -23879,7 +23879,7 @@ SELECT DISTINCT - + NULLIF ( - 98, + 85 / 19 ) AS col0 # 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\(1\)\) AS count\(\*\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- Int64\(61\)\) \- 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\(\*\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "\(\- Int64\(61\)\) \- Int64\(\-79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) / COUNT ( * ) AS col1, ( - ( + 61 ) ) - - 79 AS col1 query I rowsort @@ -28667,7 +28667,7 @@ SELECT ( + + 47 ) + + 13 + - 1 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \* \(\- Int64\(4\)\) \+ Int64\(96\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(40\) \+ 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\(14\) \* \(\- Int64\(4\)\) \+ Int64\(96\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(40\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 14 * - ( 4 ) + 96 + - - COUNT ( * ) * + COUNT ( * ) col0, + 40 + COUNT ( * ) AS col0 query I rowsort label-5487 @@ -29693,7 +29693,7 @@ SELECT DISTINCT + 45 * 26 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) 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\(86\) 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 + 86 AS col2, + COUNT ( * ) AS col2 query I rowsort @@ -31960,7 +31960,7 @@ SELECT 46 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - -911 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-70\) \* 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 "Int64\(32\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-70\) \* Int64\(13\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 32 + - COUNT ( * ) AS col1, - 70 * 13 - COUNT ( * ) col1 query I rowsort label-6119 @@ -32347,7 +32347,7 @@ SELECT ( + ( 13 ) ) + 34 * - + 58 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-11\)\) \+ Int64\(\-94\) \+ Int64\(22\) AS col1" at position 0 and "Int64\(28\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(85\) \* 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\(\-11\)\) \+ Int64\(\-94\) \+ Int64\(22\) AS col1" at position 0 and "Int64\(28\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(85\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( - 11 ) + - 94 + 22 AS col1, 28 / - + COUNT ( * ) + + 85 * + COUNT ( * ) AS col1 query I rowsort @@ -37129,7 +37129,7 @@ SELECT DISTINCT + + COUNT ( DISTINCT - 26 ) * 29 * - 83 + COUNT ( * ) AS col2 # 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 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\(55\) 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 + ( + 55 ) AS col0, COUNT ( * ) AS col0 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 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\. 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,7 +38725,7 @@ 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 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\. 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: @@ -41004,7 +41004,7 @@ SELECT - COALESCE ( COUNT ( * ), - 51, - 71 * + 40 * - 73 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -2046 -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\(31\) \* 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\(\*\) )?AS col1" at position 0 and "Int64\(31\) \* Int64\(\-66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col1, + 31 * - 66 AS col1 query I rowsort @@ -43003,7 +43003,7 @@ SELECT - 57 * - ( SUM ( - 15 ) ) AS col2, + COUNT ( * ) + - - MIN ( DISTINCT - 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -9067 -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\(11\) \* Int64\(0\) \+ Int64\(47\) \+ Int64\(98\) \* 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\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(11\) \* Int64\(0\) \+ Int64\(47\) \+ Int64\(98\) \* Int64\(\-93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) col2, + 11 * - 0 + 47 + + 98 * - 93 AS col2 # Datafusion - Datafusion expected results: @@ -43114,7 +43114,7 @@ SELECT - 46 * + - 55 # 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\(16\) / Int64\(29\) \* Int64\(86\) \* \(\- Int64\(22\)\) \* Int64\(\-24\) \+ \(\- CAST\(NULL AS Float64\)\) / 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\(\*\) )?AS col1" at position 0 and "Int64\(16\) / Int64\(29\) \* Int64\(86\) \* \(\- Int64\(22\)\) \* Int64\(\-24\) \+ \(\- CAST\(NULL AS Float64\)\) / Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, 16 / 29 * 86 * - + 22 * - 24 + + ( + - CAST ( NULL AS FLOAT8 ) ) / 9 col1 query I rowsort label-8256 @@ -48562,7 +48562,7 @@ SELECT COALESCE ( - 49, + 62 ) AS col2 # 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 "count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, + 37 AS col1 query I rowsort label-9297 @@ -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 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\. SELECT ALL - CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col1, 80 AS col1 query I rowsort label-9630 diff --git a/data/sqlite/random/expr/slt_good_25.slt b/data/sqlite/random/expr/slt_good_25.slt index 13fc4b0..b99356e 100644 --- a/data/sqlite/random/expr/slt_good_25.slt +++ b/data/sqlite/random/expr/slt_good_25.slt @@ -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 Int32\)\)\)\) \- 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 @@ -1104,7 +1104,7 @@ SELECT ALL + 11 * + ( - 29 ) + - 62 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 "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\(\*\) )?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 ( * ) ) col1, + COUNT ( * ) AS col1 query I rowsort label-205 @@ -2891,7 +2891,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - -2989 -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 "Int64\(49\) \* \(\- 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\(37\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(49\) \* \(\- Int64\(61\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( 37 ) / + COUNT ( * ) AS col1, 49 * - + 61 AS col1 query I rowsort @@ -5972,7 +5972,7 @@ SELECT ALL + 65 - + 88 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 800 # Datafusion - Expected - -168 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) \* Int64\(\-80\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(28\) \* 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\(\-10\) \* Int64\(\-80\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(28\) \* Int64\(\-6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 10 * - 80 * + COUNT ( * ) AS col1, 28 * - 6 AS col1 query I rowsort label-1132 @@ -6403,7 +6403,7 @@ SELECT 84 + - + 50 / + - 80 * - - 63 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \+ \(\- Int64\(72\)\) 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\(86\) \+ \(\- Int64\(72\)\) 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 86 + - + 72 AS col0, + COUNT ( * ) col0 query I rowsort label-1215 @@ -6752,7 +6752,7 @@ SELECT - COALESCE ( 24, - 34 * - - 95 - 23 * - 4, - 89, + 64 * - 95 ) * - 66 col # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - 63 -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 "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\(\-6\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 6 / COUNT ( * ) col0, 63 AS col0 query I rowsort label-1280 @@ -7643,7 +7643,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 "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 + + 8 AS col1, COUNT ( * ) col1 query I rowsort @@ -11223,7 +11223,7 @@ SELECT - SUM ( ALL + 48 ) AS col2, SUM ( DISTINCT - - 25 ) # 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\(\-4\) \- \(\- Int64\(46\)\) 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\(\-4\) \- \(\- Int64\(46\)\) 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 + - 4 - - + 46 AS col1, + COUNT ( * ) AS col1 query I rowsort label-2145 @@ -11435,7 +11435,7 @@ SELECT COUNT ( * ) + - CAST ( CAST ( 38 AS INTEGER ) AS INTEGER ) / 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - 411804 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-81\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(81\) \* Int64\(82\) \* 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\(\-81\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(81\) \* Int64\(82\) \* Int64\(62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - 81 * COUNT ( * ) AS col0, 81 * 82 * 62 AS col0 query I rowsort label-2185 @@ -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 Int32\) \* CAST\(NULL AS Int32\) 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 @@ -17945,7 +17945,7 @@ SELECT 63 + + + COALESCE ( 76, 40 ) + + 57 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 49 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, 49 AS col1 query I rowsort @@ -18751,7 +18751,7 @@ SELECT - 80 / + 14 # 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 "Int64\(19\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(78\) 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\(19\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(78\) 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 + 19 + + COUNT ( * ) * 78 AS col0, COUNT ( * ) AS col0 query I rowsort label-3586 @@ -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 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\. 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 @@ -18951,7 +18951,7 @@ SELECT ALL 14 / + 79 * - COUNT ( * ) + COUNT ( * ) 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 col0" at position 0 and "Int64\(48\) / Int64\(82\) \* Int64\(47\) \* 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(48\) / Int64\(82\) \* Int64\(47\) \* Int64\(\-75\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col0, + 48 / + 82 * 47 * - 75 AS col0 query I rowsort label-3623 @@ -22040,7 +22040,7 @@ SELECT ALL + ( - 37 ) * + COALESCE ( - - 19, 33 ) # 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\(67\) \+ Int64\(\-77\) AS col1" at position 0 and "Int64\(33\) \* Int64\(2\) \+ 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\(67\) \+ Int64\(\-77\) AS col1" at position 0 and "Int64\(33\) \* Int64\(2\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 67 + - 77 AS col1, 33 * 2 + + COUNT ( * ) AS col1 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 Int32\)\) \* 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 @@ -23702,7 +23702,7 @@ SELECT DISTINCT + 83 * - + COUNT ( * ) # Datafusion - Expected - 32 # Datafusion - Expected - 1 # Datafusion - Expected - -3 -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\(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\(32\) 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 32 AS col1, COUNT ( * ) AS col1, - 91 / + + 95 + - 3 query I rowsort label-4533 @@ -25924,7 +25924,7 @@ SELECT DISTINCT + 12 + + 58 + 91 * + CASE - COUNT ( * ) WHEN - + 47 THEN 82 ELSE # Datafusion - Datafusion expected results: # Datafusion - Expected - 1596 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(\-84\)\)\) \* Int64\(19\) 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\(Int64\(\-84\)\)\) \* Int64\(19\) 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 ( - 84 ) * + 19 AS col2, COUNT ( * ) AS col2 query I rowsort label-4957 @@ -25971,7 +25971,7 @@ SELECT ALL + 23 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 "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\(\*\) )?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 ( * ) AS col1, COUNT ( * ) AS col1 query I rowsort label-4966 @@ -28052,7 +28052,7 @@ SELECT ( - NULLIF ( 75, 83 * 67 ) ) 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 "count\(Int64\(1\)\) AS count\(\*\) \* 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\(\*\) \* 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 ( * ) * + COUNT ( * ) AS col0, - COUNT ( * ) AS col0 query I rowsort label-5370 @@ -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 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\. SELECT + CAST ( + - 4 AS INTEGER ) col2, + COUNT ( * ) AS col2 query I rowsort label-5688 @@ -30023,7 +30023,7 @@ SELECT - 57 + 49 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - -21619 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col1" at position 0 and "Int64\(29\) \+ Int64\(82\) \* Int64\(66\) \* Int64\(\-4\) / 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\(69\) AS col1" at position 0 and "Int64\(29\) \+ Int64\(82\) \* Int64\(66\) \* Int64\(\-4\) / 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 69 AS col1, 29 + 82 * 66 * - 4 / + COUNT ( * ) * + COUNT ( * ) AS col1 query I rowsort @@ -30482,7 +30482,7 @@ SELECT ALL + ( 19 ) + + - 54 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 16 -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\(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\(\*\) )?AS col2" at position 0 and "Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col2, + 16 col2 query I rowsort @@ -32008,7 +32008,7 @@ SELECT - 43 / 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6153 # Datafusion - Expected - -50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-15\) \* Int64\(23\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(66\)\) \* Int64\(88\) \- count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "sum\(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\(\-15\) \* Int64\(23\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(66\)\) \* Int64\(88\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "sum\(Int64\(\-50\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 15 * 23 + COUNT ( * ) + - ( + 66 ) * + + 88 - COUNT ( * ) AS col2, SUM ( - 50 ) AS col2 query I rowsort @@ -32310,7 +32310,7 @@ SELECT - 28 / 5 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -207 # Datafusion - Expected - -41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \* Int64\(\-16\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "min\(DISTINCT 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\(13\) \* Int64\(\-16\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "min\(DISTINCT Int64\(\-41\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 13 * - 16 + + + ( + COUNT ( * ) ) AS col1, + MIN ( DISTINCT + - 41 ) col1 query I rowsort @@ -39703,7 +39703,7 @@ SELECT ( + 81 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 23055 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \* Int64\(87\) \* Int64\(53\) \* count\(Int64\(1\)\) AS count\(\*\) 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\(5\) \* Int64\(87\) \* Int64\(53\) \* count\(Int64\(1\)\) (AS count\(\*\) )?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 5 * + 87 * 53 * + COUNT ( * ) AS col0, 9 AS col0 query I rowsort label-7591 @@ -41041,7 +41041,7 @@ SELECT - 16 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -64 # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(60\) \- 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\(\-64\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(60\) \- Int64\(77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 64 / + COUNT ( * ) AS col1, + 60 - 77 AS col1 query II rowsort @@ -42790,7 +42790,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) 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\(71\) 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 71 AS col1, + COUNT ( * ) AS col1 query I rowsort label-8179 @@ -48917,7 +48917,7 @@ SELECT ALL + 5 * - SUM ( + 34 ) * + 95 + + - 92 AS col0 # 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\(73\) 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\(73\) 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 73 AS col0, COUNT ( * ) AS col0 query I rowsort @@ -50342,7 +50342,7 @@ SELECT DISTINCT 90 - 35 + - 30 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\(79\) \+ CASE Int64\(\-75\) WHEN \(\- min\(DISTINCT Int64\(12\)\)\) \* Int64\(57\) THEN \(\- Int64\(7\)\) END \+ Int64\(\-30\) 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\(79\) \+ CASE Int64\(\-75\) WHEN \(\- min\(DISTINCT Int64\(12\)\)\) \* Int64\(57\) THEN \(\- Int64\(7\)\) END \+ Int64\(\-30\) 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 79 + CASE - 75 WHEN - MIN ( DISTINCT + 12 ) * + + 57 THEN ( - + 7 ) END + - 30 AS col0, + COUNT ( * ) AS col0 query II rowsort label-9621 diff --git a/data/sqlite/random/expr/slt_good_26.slt b/data/sqlite/random/expr/slt_good_26.slt index 58d48e9..e591d9f 100644 --- a/data/sqlite/random/expr/slt_good_26.slt +++ b/data/sqlite/random/expr/slt_good_26.slt @@ -7466,7 +7466,7 @@ SELECT ALL MIN ( DISTINCT - - 52 ) # 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 "Int64\(40\) \+ count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(40\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 40 + + COUNT ( * ) AS col1, 75 AS col1 query I rowsort label-1421 @@ -11251,7 +11251,7 @@ SELECT - 72 + + 78 * COUNT ( DISTINCT + 28 ) # Datafusion - Expected - -75 # Datafusion - Expected - -13775 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(75\)\) 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 "\(\- Int64\(75\)\) 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 - + ( 75 ) AS col1, + 19 * - - 25 * + - 29, COUNT ( * ) AS col1 query I rowsort label-2146 @@ -13753,7 +13753,7 @@ SELECT 72 / + COUNT ( * ) + - 23 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -33 -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\(\-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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(\-33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, - 33 AS col2 query I rowsort label-2629 @@ -14175,7 +14175,7 @@ NULL # Datafusion - Expected - 91 # Datafusion - Expected - -62 # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \* count\(Int64\(1\)\) AS count\(\*\) 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\(91\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(\-62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 91 * + COUNT ( * ) AS col1, - 62 AS col1, MAX ( ALL - + 72 ) query I rowsort label-2707 @@ -25452,7 +25452,7 @@ NULL # 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 "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- Int64\(\-98\)\) / \(\- Int64\(26\)\) \- Int64\(36\) \+ 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "\(\- Int64\(\-98\)\) / \(\- Int64\(26\)\) \- Int64\(36\) \+ Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col2, - ( - 98 ) / - + 26 - + 36 + + 0 AS col2 query I rowsort @@ -25784,7 +25784,7 @@ SELECT ALL + 55, 55 # 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\(Int64\(1\)\) AS count\(\*\) \* Int64\(14\) / \(\- 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\(\*\) )?AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(14\) / \(\- Int64\(44\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col2, + COUNT ( * ) * 14 / - + 44 AS col2 query I rowsort @@ -26888,7 +26888,7 @@ SELECT + ( - 65 ) * + ( - - 0 ) + - + 29 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) \- count\(Int64\(1\)\) AS count\(\*\) 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\(82\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 82 - + COUNT ( * ) AS col0, 68 AS col0 query I rowsort label-5135 @@ -27252,7 +27252,7 @@ SELECT - 78 AS col2, COUNT ( * ) * + 20 + + 93 AS col0 # 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\(27\) \+ Int64\(\-81\) 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\(27\) \+ Int64\(\-81\) 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 27 + - 81 AS col0, + COUNT ( * ) AS col0 query I rowsort label-5204 @@ -28413,7 +28413,7 @@ SELECT 9 / - 83 * - 51 + + + 86 + 50 # Datafusion - Datafusion expected results: # Datafusion - Expected - -52 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-52\) 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\(\-52\) 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 - 52 AS col0, COUNT ( * ) AS col0 query I rowsort label-5426 @@ -33585,7 +33585,7 @@ SELECT MAX ( + 2 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 12 -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\(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\(\*\) )?AS col2" at position 0 and "Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, 12 AS col2 query I rowsort @@ -34679,7 +34679,7 @@ SELECT 69 * 27 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -47 -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\) \- 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\(45\) \- Int64\(92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COUNT ( * ) col2, 45 - + 92 AS col2 query I rowsort label-6629 @@ -35090,7 +35090,7 @@ SELECT - COALESCE ( - COALESCE ( 64, - 4 ), + COALESCE ( 0, - + 56 + + 4 - + 49 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3936 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) \* Int64\(48\) 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 "Int64\(82\) \* Int64\(48\) 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 ALL 82 * + + 48 AS col0, 34 * COUNT ( * ) AS col0 query I rowsort label-6708 @@ -35797,7 +35797,7 @@ SELECT - 99 + - 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) 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\(88\) 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 88 AS col0, + COUNT ( * ) AS col0 query I rowsort @@ -39166,7 +39166,7 @@ SELECT DISTINCT 11 * - 92 + + 85 * + 61 * 70 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - 1 -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\(\*\) AS col2" at position 1 have the 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\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 81 AS col2, COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: @@ -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 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\. SELECT - + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col2, + COUNT ( * ) * 2 col2 query I rowsort label-7511 @@ -43448,7 +43448,7 @@ SELECT ( 90 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) 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\(94\) 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 ( 94 ) AS col0, + COUNT ( * ) col0 query I rowsort label-8304 @@ -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 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\. 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 @@ -47956,7 +47956,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -6389 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) \* Int64\(69\) \+ Int64\(96\) \+ count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(\-94\) \* Int64\(69\) \+ Int64\(96\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?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 - 94 * 69 + + + 96 + + COUNT ( * ) AS col2, 59 AS col2 query I rowsort @@ -48284,7 +48284,7 @@ SELECT DISTINCT + + 54 + - 64 / + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- Int64\(\-57\)\)\) \+ \(\- Int64\(\-35\)\) / Int64\(\-22\) 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\(\(\- Int64\(\-57\)\)\) \+ \(\- Int64\(\-35\)\) / Int64\(\-22\) 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 + + SUM ( - - 57 ) + - - 35 / - 22 AS col0, + COUNT ( * ) AS col0 query I rowsort label-9230 @@ -48310,7 +48310,7 @@ NULL # 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 "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(28\) \* Int64\(0\) \- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(28\) \* Int64\(0\) \- Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col0, 28 * + + 0 - 39 col0 query I rowsort label-9235 @@ -49781,7 +49781,7 @@ SELECT DISTINCT - + 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - 100 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(19\) \+ \(\- count\(Int64\(62\)\)\) / \(\- Int64\(34\) \* 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\(99\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(19\) \+ \(\- count\(Int64\(62\)\)\) / \(\- Int64\(34\) \* Int64\(90\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 99 + COUNT ( * ) AS col2, 19 + - + COUNT ( 62 ) / - ( 34 * 90 ) col2 query II rowsort diff --git a/data/sqlite/random/expr/slt_good_27.slt b/data/sqlite/random/expr/slt_good_27.slt index a86bf61..252d0a3 100644 --- a/data/sqlite/random/expr/slt_good_27.slt +++ b/data/sqlite/random/expr/slt_good_27.slt @@ -6794,7 +6794,7 @@ SELECT ALL + 0 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 "\(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 ( COUNT ( * ) ) AS col2, - COUNT ( * ) * + + 74 AS col2 query I rowsort label-1297 @@ -6885,7 +6885,7 @@ SELECT DISTINCT - COUNT ( * ) * - 48 + + - 27 * + 17 * 49 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \* count\(Int64\(1\)\) AS count\(\*\) 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\(10\) \* count\(Int64\(1\)\) (AS count\(\*\) )?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 10 * COUNT ( * ) col0, 45 AS col0 query I rowsort @@ -8208,7 +8208,7 @@ SELECT - COALESCE ( + + 23, + 56 ) 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 "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CASE Int64\(53\) WHEN Int64\(\-73\) \* Int64\(\-16\) \+ Int64\(81\) \+ Int64\(35\) \* Int64\(\-17\) THEN NULL WHEN Int64\(87\) THEN NULL WHEN \(\- nullif\(\(\- CASE nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-94\)\) WHEN Int64\(19\) THEN nullif\(Int64\(62\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) END\), Int64\(\-77\) \+ Int64\(\-71\) \* Int64\(51\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(64\) / Int64\(29\) \+ Int64\(39\) ELSE Int64\(92\) / Int64\(84\) 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 Int64\(53\) WHEN Int64\(\-73\) \* Int64\(\-16\) \+ Int64\(81\) \+ Int64\(35\) \* Int64\(\-17\) THEN NULL WHEN Int64\(87\) THEN NULL WHEN \(\- nullif\(\(\- CASE nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-94\)\) WHEN Int64\(19\) THEN nullif\(Int64\(62\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) END\), Int64\(\-77\) \+ Int64\(\-71\) \* Int64\(51\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(64\) / Int64\(29\) \+ Int64\(39\) ELSE Int64\(92\) / Int64\(84\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col0, CASE + 53 WHEN - 73 * + - 16 + + + 81 + + + 35 * - 17 THEN NULL WHEN 87 THEN NULL WHEN - NULLIF ( - ( + CASE NULLIF ( - COUNT ( * ), - 94 ) WHEN + 19 THEN NULLIF ( + 62, - COUNT ( * ) ) END ), - 77 + - 71 * + 51 ) * - COUNT ( * ) THEN + 64 / 29 + + 39 ELSE 92 / 84 END AS col0 query I rowsort label-1568 @@ -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 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\. 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 @@ -9476,7 +9476,7 @@ SELECT ALL ( - 80 ) - + 21 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 153 # Datafusion - Expected - 232 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \+ Int64\(55\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-8\) \* 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\(98\) \+ Int64\(55\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-8\) \* Int64\(\-29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 98 + 55 * + COUNT ( * ) AS col2, + COUNT ( * ) * - 8 * - 29 col2 query I rowsort @@ -11522,7 +11522,7 @@ NULL # 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 "min\(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 "min\(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 + + MIN ( + 34 ) AS col2, COUNT ( * ) AS col2 query I rowsort @@ -13879,7 +13879,7 @@ SELECT - 62 * NULLIF ( - - 36, - 89 * + 2 / - + 38 - COUNT ( * ) + + - 29 / - + # 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 "Int64\(\-43\) \+ Int64\(74\) 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\(\-43\) \+ Int64\(74\) 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 - 43 + 74 AS col2, COUNT ( * ) AS col2 query I rowsort label-2653 @@ -16541,7 +16541,7 @@ SELECT + + 19 + - 76 / + NULLIF ( + 4, + 16 ) - + 14 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col0" at position 0 and "Int64\(\-86\) \+ count\(Int64\(1\)\) AS count\(\*\) \* 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\(96\) AS col0" at position 0 and "Int64\(\-86\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(20\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 96 AS col0, - 86 + + COUNT ( * ) * 20 / + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: @@ -19497,7 +19497,7 @@ SELECT 83 * + 55 AS col1 # 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\(\-4\) \+ Int64\(59\) 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\(\-4\) \+ Int64\(59\) 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 + - 4 + + 59 col2, COUNT ( * ) col2 query I rowsort label-3731 @@ -21892,7 +21892,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col2" at position 0 and "Int64\(\-9\) \+ 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\(4\) AS col2" at position 0 and "Int64\(\-9\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 4 col2, - 9 + + COUNT ( * ) AS col2 query I rowsort label-4190 @@ -26064,7 +26064,7 @@ SELECT + ( + NULLIF ( 96, - SUM ( ALL + - 42 ) ) ) * - 62 # Datafusion - Datafusion expected results: # Datafusion - Expected - -31 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) \* count\(Int64\(1\)\) AS count\(\*\) 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\(\-31\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 31 * COUNT ( * ) AS col1, 92 AS col1 query I rowsort label-4990 @@ -29532,7 +29532,7 @@ SELECT - NULLIF ( - + 36, - 54 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col2" at position 0 and "\(\- sum\(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\(6\) AS col2" at position 0 and "\(\- sum\(Int64\(\-72\)\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 6 AS col2, - SUM ( - 72 ) + + + COUNT ( * ) AS col2 query II rowsort @@ -32535,7 +32535,7 @@ SELECT ALL 25 * - 10 + - 11 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5117 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \* Int64\(36\) \+ Int64\(77\) \* Int64\(52\) \+ \(\- Int64\(0\)\) \- Int64\(87\) \+ 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 "Int64\(35\) \* Int64\(36\) \+ Int64\(77\) \* Int64\(52\) \+ \(\- Int64\(0\)\) \- Int64\(87\) \+ 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 + 35 * + 36 + + + 77 * + 52 + - + 0 - + 87 + - 60 AS col2, COUNT ( * ) col2 query I rowsort @@ -32775,7 +32775,7 @@ SELECT COUNT ( * ) + + 5 * - + 36 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1649 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \* Int64\(97\) AS col2" at position 0 and "Int64\(39\) / 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\) \* Int64\(97\) AS col2" at position 0 and "Int64\(39\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 17 * + 97 AS col2, 39 / + COUNT ( * ) AS col2 query I rowsort @@ -35348,7 +35348,7 @@ SELECT + COUNT ( * ) * - 9 * + NULLIF ( + 36, + ( 1 ) + 2 * 81 ) + 73 # Datafusion - Datafusion expected results: # Datafusion - Expected - -41 # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-41\)\) \* count\(Int64\(1\)\) AS count\(\*\) 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 "sum\(Int64\(\-41\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(\-46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + SUM ( - 41 ) * COUNT ( * ) AS col0, - 46 col0 query I rowsort label-6763 @@ -39676,7 +39676,7 @@ SELECT 82, 59 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(41\)\) 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 "min\(Int64\(41\)\) 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 + MIN ( + 41 ) AS col2, COUNT ( * ) AS col2 query I rowsort @@ -40794,7 +40794,7 @@ SELECT 66 * 24, 31 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4981 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \+ Int64\(5\) \+ Int64\(81\) \* Int64\(\-62\) \- count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(37\) \+ Int64\(5\) \+ Int64\(81\) \* Int64\(\-62\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(\-81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 37 + + 5 + 81 * - 62 - COUNT ( * ) AS col0, - 81 AS col0 query I rowsort label-7804 @@ -44619,7 +44619,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -156 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) \- Int64\(79\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ 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\(\-78\) \- Int64\(79\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 78 - 79 + COUNT ( * ) AS col1, + COUNT ( * ) + - 52 AS col1 query II rowsort label-8539 @@ -44753,7 +44753,7 @@ SELECT + MAX ( - 9 ) * + + 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) / Int64\(\-82\) / count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* 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\(\-99\) / Int64\(\-82\) / count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 99 / + - 82 / + COUNT ( * ) + + COUNT ( * ) AS col1, COUNT ( * ) * 30 AS col1 query I rowsort label-8564 @@ -45370,7 +45370,7 @@ SELECT ALL - 83 * - 88 - - 87 * + 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* count\(Int64\(1\)\) AS count\(\*\) 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\(80\) \* count\(Int64\(1\)\) (AS count\(\*\) )?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 + 80 * + COUNT ( * ) AS col1, 53 col1 query I rowsort label-8682 @@ -49892,7 +49892,7 @@ SELECT + 88 + + 45 * - 5 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -35 -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\) AS col1" at position 1 have the same name\. Consider aliasing \("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\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col1, - 35 AS col1 query I rowsort label-9541 diff --git a/data/sqlite/random/expr/slt_good_28.slt b/data/sqlite/random/expr/slt_good_28.slt index 4d81eca..837d92c 100644 --- a/data/sqlite/random/expr/slt_good_28.slt +++ b/data/sqlite/random/expr/slt_good_28.slt @@ -2098,7 +2098,7 @@ SELECT - 11 + + 6 / NULLIF ( - 28, - 1 * - 10 * - - 68 * + 45 * ( + NULLIF ( 51, # Datafusion - Datafusion expected results: # Datafusion - Expected - 26568 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(82\)\) \* Int64\(6\) \* Int64\(54\) 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\(Int64\(82\)\) \* Int64\(6\) \* Int64\(54\) 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 ( + 82 ) * + 6 * + ( 54 ) AS col1, + COUNT ( * ) col1 query I rowsort @@ -4058,7 +4058,7 @@ SELECT DISTINCT ( - 87 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1862 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \* Int64\(38\) AS col1" at position 0 and "Int64\(59\) \* 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\) \* Int64\(38\) AS col1" at position 0 and "Int64\(59\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 49 * 38 AS col1, 59 * COUNT ( * ) col1 query I rowsort label-765 @@ -5895,7 +5895,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 99 -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\(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\(\*\) )?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 + COUNT ( * ) AS col1, + 99 AS col1 query I rowsort @@ -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 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\. SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) AS col1, - COUNT ( * ) AS col1 query I rowsort label-1448 @@ -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 Int32\)\) 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 @@ -9747,7 +9747,7 @@ SELECT - 0 * - 6 + 36 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -98 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(4\) / 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\(\-98\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(4\) / Int64\(42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 98 * + COUNT ( * ) AS col0, + 4 / + 42 AS col0 # Datafusion - Types were automatically converted from: @@ -10632,7 +10632,7 @@ SELECT + NULLIF ( CASE - + 83 WHEN - 3 THEN + CAST ( NULL AS INTEGER ) + 46 - - # 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\(\-83\) 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\(\-83\) 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 - 83 AS col0, + COUNT ( * ) col0 query I rowsort label-2022 @@ -14941,7 +14941,7 @@ SELECT - - 66 + - COUNT ( * ) AS col2 # 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 "Int64\(\-9\) / 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(\-9\) / Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COUNT ( * ) AS col0, - 9 / 22 col0 query I rowsort label-2853 @@ -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 Int32\) 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 @@ -18519,7 +18519,7 @@ SELECT ALL + 16 AS col1, 63 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 70 -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\(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\(\*\) )?AS col1" at position 0 and "Int64\(70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, 70 AS col1 query I rowsort @@ -18632,7 +18632,7 @@ SELECT - 89 AS col0, + 62 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - 162 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-6\) AS col1" at position 0 and "Int64\(72\) \+ \(\- Int64\(\-54\)\) \- Int64\(\-36\) \* 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\(\-6\) AS col1" at position 0 and "Int64\(72\) \+ \(\- Int64\(\-54\)\) \- Int64\(\-36\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 6 AS col1, + 72 + - - 54 - + - 36 * + COUNT ( * ) AS col1 query I rowsort label-3559 @@ -18820,7 +18820,7 @@ SELECT DISTINCT 83, - 43 * - 67 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 54 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, 54 AS col1 query I rowsort @@ -21457,7 +21457,7 @@ SELECT ALL - + ( - MIN ( + 95 ) ) # 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 "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\(\-55\) 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 - 55 AS col2, + COUNT ( * ) AS col2 query I rowsort label-4096 @@ -25960,7 +25960,7 @@ SELECT + 97 + + - 5 # 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\(2\) 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\(2\) 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 2 AS col1, + COUNT ( * ) AS col1 query I rowsort label-4966 @@ -26916,7 +26916,7 @@ SELECT + 36 * - - COALESCE ( 97, 24, 25 ) + - - 35 + 9 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -24 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(23\) WHEN \(\- Int64\(57\)\) THEN Int64\(20\) ELSE Int64\(\-24\) 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 "CASE Int64\(23\) WHEN \(\- Int64\(57\)\) THEN Int64\(20\) ELSE Int64\(\-24\) 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 + CASE + 23 WHEN - + 57 THEN + 20 ELSE - 24 END AS col2, COUNT ( * ) AS col2 query I rowsort @@ -30079,7 +30079,7 @@ SELECT 13 / 78 * ( + 97 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(95\) \+ 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\(49\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(95\) \+ Int64\(\-39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 49 + COUNT ( * ) AS col2, + 95 + - 39 AS col2 query I rowsort label-5741 @@ -30693,7 +30693,7 @@ SELECT ALL + 63 - - 79 # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 3 AS col2, COUNT ( * ) AS col2 query I rowsort label-5858 @@ -31009,7 +31009,7 @@ SELECT - + ( + 45 ) + - 89 * - 38 * + 40 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 51 -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\(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\(\*\) )?AS col0" at position 0 and "Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( + COUNT ( * ) ) col0, 51 AS col0 query I rowsort label-5919 @@ -31030,7 +31030,7 @@ SELECT ALL - 50 + 16 / - 87 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \+ Int64\(\-8\) \+ 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 "Int64\(38\) \+ Int64\(\-8\) \+ 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 38 + - 8 + COUNT ( * ) AS col0, 10 AS col0 query II rowsort label-5923 @@ -33502,7 +33502,7 @@ SELECT + 53 AS col2, 54 + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 3965 -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 "min\(Int64\(61\)\) \* 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "min\(Int64\(61\)\) \* Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COUNT ( * ) col0, MIN ( ALL + 61 ) * + 65 col0 query I rowsort label-6400 @@ -35984,7 +35984,7 @@ SELECT ALL - CAST ( ( + 59 ) AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-28\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "nullif\(Int64\(15\), Int64\(7\) / 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\(\-28\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "nullif\(Int64\(15\), Int64\(7\) / Int64\(\-31\) \+ Int64\(\-49\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 28 + + COUNT ( * ) col0, NULLIF ( 15, 7 / + ( - 31 ) + - 49 ) AS col0 query II rowsort @@ -37457,7 +37457,7 @@ SELECT DISTINCT COUNT ( * ) AS col2, + COUNT ( * ) - + 75 * - 50 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -92 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) \- Int64\(44\) \* count\(Int64\(1\)\) AS count\(\*\) 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\(\-48\) \- Int64\(44\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 48 - ( + + 44 ) * COUNT ( * ) AS col1, 9 AS col1 query I rowsort label-7159 @@ -46654,7 +46654,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 4209 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) \* Int64\(\-85\) \+ Int64\(21\) \- Int64\(13\) \* \(\- Int64\(\-93\)\) \+ Int64\(85\) \* Int64\(9\) \+ Int64\(57\) \+ Int64\(69\) \+ count\(Int64\(1\)\) AS count\(\*\) 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\(\-53\) \* Int64\(\-85\) \+ Int64\(21\) \- Int64\(13\) \* \(\- Int64\(\-93\)\) \+ Int64\(85\) \* Int64\(9\) \+ Int64\(57\) \+ Int64\(69\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?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 - 53 * - 85 + 21 - + + 13 * - - 93 + 85 * 9 + + 57 + + 69 + + COUNT ( * ) AS col1, - 38 AS col1 query I rowsort label-8915 @@ -47769,7 +47769,7 @@ SELECT DISTINCT + - 91 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2439 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \* Int64\(30\) \+ 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 "Int64\(78\) \* Int64\(30\) \+ 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 DISTINCT 78 * 30 + 99 AS col2, + COUNT ( * ) AS col2 query I rowsort @@ -50492,7 +50492,7 @@ SELECT + ( + - 12 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -483 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \* Int64\(\-69\) 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\) \* Int64\(\-69\) 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 7 * - 69 AS col1, ( + COUNT ( * ) ) AS col1 query I rowsort label-9655 diff --git a/data/sqlite/random/expr/slt_good_29.slt b/data/sqlite/random/expr/slt_good_29.slt index 5f62563..6f40177 100644 --- a/data/sqlite/random/expr/slt_good_29.slt +++ b/data/sqlite/random/expr/slt_good_29.slt @@ -2035,7 +2035,7 @@ SELECT DISTINCT + 87 / + 93 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5200 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* Int64\(\-65\) \* \(\- count\(DISTINCT Int64\(\-92\)\)\) 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\(80\) \* Int64\(\-65\) \* \(\- count\(DISTINCT Int64\(\-92\)\)\) 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 80 * - 65 * - COUNT ( DISTINCT - 92 ) col2, COUNT ( * ) AS col2 query I rowsort @@ -5814,7 +5814,7 @@ SELECT ALL 93 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # 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 "\(\- sum\(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 "\(\- sum\(Int64\(38\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) col0, - SUM ( + 38 ) AS col0 # Datafusion - Datafusion expected results: @@ -9107,7 +9107,7 @@ SELECT 14 + 20 + 57 * 16 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - 101 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \- Int64\(21\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(84\) \+ 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\(50\) \- Int64\(21\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(84\) \+ Int64\(17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 50 - 21 * + COUNT ( * ) AS col1, 84 + 17 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 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\. SELECT - CAST ( NULL AS INTEGER ) + + - 17 AS col1, - 35 * + + COUNT ( * ) AS col1 query I rowsort @@ -14763,7 +14763,7 @@ SELECT DISTINCT - + 18 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 131 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \+ Int64\(56\) 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\(75\) \+ Int64\(56\) 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 + 75 + 56 AS col2, + COUNT ( * ) AS col2 query I rowsort @@ -16645,7 +16645,7 @@ SELECT 25 * + + 76 AS 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 "count\(Int64\(1\)\) AS count\(\*\) 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\(\*\) )?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 ( * ) AS col2, 14 AS col2 query I rowsort label-3220 @@ -22670,7 +22670,7 @@ SELECT ALL - 25 + + 47 * - 69 # Datafusion - Datafusion expected results: # Datafusion - Expected - -36 # Datafusion - Expected - -93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) AS col1" at position 0 and "Int64\(24\) / Int64\(41\) \- 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\(\-36\) AS col1" at position 0 and "Int64\(24\) / Int64\(41\) \- Int64\(94\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 36 AS col1, 24 / 41 - + 94 + + COUNT ( * ) AS col1 query I rowsort @@ -27116,7 +27116,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) 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\(11\) 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 11 AS col0, COUNT ( * ) AS col0 query I rowsort @@ -27416,7 +27416,7 @@ SELECT ALL - 6 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -75 -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\(\-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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(\-75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, - 75 AS col1 # Datafusion - Datafusion expected results: @@ -33235,7 +33235,7 @@ SELECT ALL 10 AS col0 # Datafusion - Expected - 32 # Datafusion - Expected - 69 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(66\) \- count\(Int64\(9\)\) 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\(32\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(66\) \- count\(Int64\(9\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 32 * + COUNT ( * ) AS col2, 69, 66 - COUNT ( 9 ) AS col2 query I rowsort @@ -34362,7 +34362,7 @@ SELECT ALL - 64 * + + ( + 25 ) - + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -59 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) AS col1" at position 0 and "\(\- coalesce\(Int64\(98\), coalesce\(\(\- Int64\(\-85\)\), count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(30\), Int64\(92\) \* Int64\(7\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(3\), 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\(\-59\) AS col1" at position 0 and "\(\- coalesce\(Int64\(98\), coalesce\(\(\- Int64\(\-85\)\), count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(30\), Int64\(92\) \* Int64\(7\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(3\), Int64\(70\)\)\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 59 AS col1, - COALESCE ( 98, COALESCE ( - - 85, + COUNT ( * ) + 30, 92 * + 7 - + - COUNT ( * ) + 3, 70 ) ) + COUNT ( * ) AS col1 query I rowsort label-6641 @@ -50773,7 +50773,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -5460 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* \(\- Int64\(65\)\) \+ Int64\(\-12\) / Int64\(\-41\) 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\(84\) \* \(\- Int64\(65\)\) \+ Int64\(\-12\) / Int64\(\-41\) 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 84 * - + 65 + - 12 / + - 41 AS col2, COUNT ( * ) AS col2 query I rowsort label-9820 diff --git a/data/sqlite/random/expr/slt_good_3.slt b/data/sqlite/random/expr/slt_good_3.slt index e1c80e8..224715e 100644 --- a/data/sqlite/random/expr/slt_good_3.slt +++ b/data/sqlite/random/expr/slt_good_3.slt @@ -369,7 +369,7 @@ SELECT ( + 50 ) * + 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -45 -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\(\-92\) \- 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\(\*\) )?AS col1" at position 0 and "Int64\(\-92\) \- Int64\(\-47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, - 92 - + - 47 AS col1 query I rowsort label-64 @@ -1108,7 +1108,7 @@ SELECT ALL 34 * 45 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 "Int64\(58\) / Int64\(\-35\) 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\) / Int64\(\-35\) 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 / - 35 AS col1, COUNT ( * ) AS col1 query I rowsort label-205 @@ -6534,7 +6534,7 @@ SELECT ALL 4 / 89 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \- \(\- Int64\(64\)\) \+ count\(Int64\(1\)\) AS count\(\*\) 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \- \(\- Int64\(64\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) - - + 64 + + COUNT ( * ) AS col0, + 99 AS col0 query I rowsort label-1234 @@ -7178,7 +7178,7 @@ SELECT DISTINCT + 46 * - - 95 - + 29 + + + 83 / + 11 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 162 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col1" at position 0 and "Int64\(81\) \+ \(\- Int64\(\-81\)\) / 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\(99\) AS col1" at position 0 and "Int64\(81\) \+ \(\- Int64\(\-81\)\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 99 AS col1, + 81 + - - 81 / COUNT ( * ) AS col1 query I rowsort @@ -10665,7 +10665,7 @@ SELECT COUNT ( * ) * + + 67 / ( - - 91 ) * - 38 * - - 61 - + 97 + COUNT ( 26 ) c # Datafusion - Expected - -1 # Datafusion - Expected - 1 # Datafusion - Expected - -77 -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\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("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\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) col2, COUNT ( * ) col2, + - NULLIF ( + 77, MIN ( 65 ) * - + 49 ) query I rowsort label-2024 @@ -12677,7 +12677,7 @@ SELECT ALL + COALESCE ( + COUNT ( * ), + 43 * - 94 - + ( + COUNT ( * ) ) ) * - + # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -52 -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\(\*\)\)\) \+ 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(\-53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col1, - ( - COUNT ( * ) ) + - 53 AS col1 query I rowsort @@ -13193,7 +13193,7 @@ SELECT 85 * 39 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \+ count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(71\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(\-14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 71 + + COUNT ( * ) AS col2, - 14 AS col2 query II rowsort @@ -15642,7 +15642,7 @@ SELECT ALL - 99 + MAX ( + + 95 ) + 38 * - - 56 col0 # 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 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\(23\) 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 23 AS col2, COUNT ( * ) AS col2 query II rowsort @@ -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 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\. SELECT - COUNT ( * ) * COUNT ( * ) - - CAST ( - 96 AS INTEGER ) AS col0, COUNT ( * ) col0 query I rowsort @@ -21436,7 +21436,7 @@ SELECT ALL + ( + 24 ) - 47 * + - 88 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 68 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 COUNT ( * ) AS col2, 68 AS col2 query I rowsort @@ -21482,7 +21482,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 "Int64\(29\) / \(\- max\(DISTINCT 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(29\) / \(\- max\(DISTINCT Int64\(76\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, 29 / - MAX ( DISTINCT 76 ) col2 query I rowsort label-4078 @@ -22640,7 +22640,7 @@ SELECT CAST ( - - 92 AS INTEGER ) * + - 25 + + 31 * + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -135 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) \+ sum\(DISTINCT Int64\(\-89\)\) 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\(\-46\) \+ sum\(DISTINCT Int64\(\-89\)\) 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 - 46 + + SUM ( DISTINCT - 89 ) AS col2, COUNT ( * ) AS col2 query I rowsort @@ -26980,7 +26980,7 @@ SELECT DISTINCT + SUM ( ALL 89 ) * - ( - 4 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 140 # Datafusion - Expected - -379 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) \* Int64\(\-2\) AS col1" at position 0 and "coalesce\(Int64\(\-20\), Int64\(70\)\) \* Int64\(19\) \+ 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\(\-70\) \* Int64\(\-2\) AS col1" at position 0 and "coalesce\(Int64\(\-20\), Int64\(70\)\) \* Int64\(19\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 70 * - 2 AS col1, + COALESCE ( + - 20, + + 70 ) * 19 + COUNT ( * ) AS col1 query I rowsort label-5129 @@ -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 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\. SELECT + COUNT ( * ) AS col0, - CAST ( NULL AS INTEGER ) * - + 25 - - COUNT ( * ) + - 42 + + 38 - + COUNT ( * ) / + + 77 * + - 19 AS col0 query I rowsort label-5381 @@ -35929,7 +35929,7 @@ SELECT ALL - 48 - - 69 AS col2 # 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\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "sum\(\(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "sum\(\(\- Int64\(5\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col1, + SUM ( ALL - ( + 5 ) ) AS col1 query I rowsort @@ -36236,7 +36236,7 @@ SELECT 17 * + + 57 * COUNT ( * ) * - 7 # Datafusion - Datafusion expected results: # Datafusion - Expected - -79 # Datafusion - Expected - -95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-79\) AS col1" at position 0 and "\(\- 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\(\-79\) AS col1" at position 0 and "\(\- Int64\(94\)\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 79 AS col1, - ( + ( + 94 ) ) - ( COUNT ( * ) ) col1 query II rowsort @@ -41670,7 +41670,7 @@ SELECT + CAST ( - 53 AS INTEGER ) * + 25 AS col2 # 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 "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 "Int64\(40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, 40 col0 query II rowsort label-7931 @@ -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 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\. 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 @@ -46465,7 +46465,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \+ Int64\(11\) 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\(0\) \+ Int64\(11\) 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 - 0 + + 11 AS col2, COUNT ( * ) AS col2 query I rowsort label-8848 @@ -47261,7 +47261,7 @@ SELECT ALL - 62 + 6 / - NULLIF ( ( + + 73 ), - + 96 * 59 ) * + - 50 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -56 # Datafusion - Expected - -2565 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) \+ Int64\(33\) AS col1" at position 0 and "Int64\(\-27\) \* Int64\(95\) \* 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\) \+ Int64\(33\) AS col1" at position 0 and "Int64\(\-27\) \* Int64\(95\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 89 + + 33 AS col1, - 27 * + 95 * COUNT ( * ) AS col1 query II rowsort label-8999 @@ -47367,7 +47367,7 @@ SELECT - - CASE ( - 45 ) WHEN + 82 THEN NULL ELSE + 74 END # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - 2365 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-55\) \* 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\(36\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(\-55\) \* Int64\(\-43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 36 / COUNT ( * ) AS col2, - 55 * + - 43 AS col2 query I rowsort @@ -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 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\. 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 @@ -50077,7 +50077,7 @@ SELECT - - COALESCE ( - 43, - 83 ) # 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\(\-99\) / \(\- CASE Int64\(29\) WHEN Int64\(78\) \+ Int64\(54\) \+ Int64\(45\) / Int64\(\-11\) \+ Int64\(44\) THEN 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\(\*\) )?AS col2" at position 0 and "Int64\(\-99\) / \(\- CASE Int64\(29\) WHEN Int64\(78\) \+ Int64\(54\) \+ Int64\(45\) / Int64\(\-11\) \+ Int64\(44\) THEN count\(Int64\(1\)\) AS count\(\*\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, - 99 / - CASE + 29 WHEN + 78 + + 54 + 45 / - 11 + + 44 THEN + COUNT ( * ) END AS col2 query I rowsort @@ -51276,7 +51276,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -15 -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\(\-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 "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 COUNT ( * ) AS col0, - 15 AS col0 query I rowsort @@ -52173,7 +52173,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) 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\(39\) 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 + 39 AS col1, + COUNT ( * ) AS col1 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_30.slt b/data/sqlite/random/expr/slt_good_30.slt index cb961f4..bbce6e1 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 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\. 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 @@ -4509,7 +4509,7 @@ SELECT - - ( + 74 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -16 # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) \+ Int64\(27\) \+ count\(Int64\(1\)\) AS count\(\*\) 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\(\-44\) \+ Int64\(27\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(\-31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 44 + 27 + + COUNT ( * ) AS col0, ( - 31 ) AS col0 query I rowsort label-862 @@ -4999,7 +4999,7 @@ SELECT - 61 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 93 -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\(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\(\*\) )?AS col1" at position 0 and "Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, 93 AS col1 # Datafusion - Data was automatically updated based on comparison db results @@ -7972,7 +7972,7 @@ SELECT + 17, 28 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - -57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \+ count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(56\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "\(\- Int64\(57\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 56 + COUNT ( * ) AS col0, - ( + 57 ) col0 query I rowsort label-1531 @@ -11104,7 +11104,7 @@ SELECT 34 + 58 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -90 -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\(\-90\), 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 "coalesce\(Int64\(\-90\), count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COUNT ( * ) AS col2, COALESCE ( - 90, COUNT ( * ) ) col2 query I rowsort label-2130 @@ -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 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\. 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 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\. 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: @@ -17149,7 +17149,7 @@ SELECT DISTINCT + 72 * COUNT ( * ) + - 16 + + 31 * SUM ( 87 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - -1677 -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 "Int64\(43\) \* 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\(80\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(43\) \* Int64\(\-39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 80 * COUNT ( * ) AS col2, + 43 * - 39 AS col2 query I rowsort @@ -18522,7 +18522,7 @@ SELECT 97 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \- count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(79\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 79 - + + COUNT ( * ) col0, 51 col0 query I rowsort label-3554 @@ -19627,7 +19627,7 @@ SELECT ALL + 81 * - - 43 col0, + 97 / + + 27 # Datafusion - Expected - -1602 # Datafusion - Expected - 81 # Datafusion - Expected - -11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) \* \(\- Int64\(\-34\)\) \- Int64\(4\) AS col2" at position 0 and "\(\- Int64\(12\)\) \+ 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 "Int64\(\-47\) \* \(\- Int64\(\-34\)\) \- Int64\(4\) AS col2" at position 0 and "\(\- Int64\(12\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 47 * - - 34 - 4 AS col2, + 15 + + 66 AS col1, - + 12 + + + COUNT ( * ) AS col2 query I rowsort label-3766 @@ -20319,7 +20319,7 @@ SELECT + 96 + - 48 AS col0 # Datafusion - Expected - -1 # Datafusion - Expected - 2 # Datafusion - Expected - -977 -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 "Int64\(49\) \+ Int64\(\-57\) \* \(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(49\) \+ Int64\(\-57\) \* \(\- Int64\(\-18\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) * COUNT ( * ) AS col0, 79 / + 31, + 49 + - 57 * - - 18 AS col0 query I rowsort @@ -21026,7 +21026,7 @@ SELECT + 2 * + 16 * + 73 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(\-24\)\)\) 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 "\(\- min\(Int64\(\-24\)\)\) 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 - + MIN ( - 24 ) AS col2, COUNT ( * ) AS col2 query I rowsort @@ -27235,7 +27235,7 @@ SELECT + CAST ( - COUNT ( * ) AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 46 -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\(\-46\), Int64\(46\) \* \(\- \(\- \(\- Int64\(1\)\)\)\) \+ Int64\(29\) / 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "\(\- coalesce\(Int64\(\-46\), Int64\(46\) \* \(\- \(\- \(\- Int64\(1\)\)\)\) \+ Int64\(29\) / Int64\(\-53\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col0, - COALESCE ( - 46, 46 * - ( - - ( 1 ) ) + 29 / - 53 ) AS col0 query I rowsort label-5229 @@ -29099,7 +29099,7 @@ SELECT DISTINCT - + NULLIF ( - 98, + 85 / 19 ) AS col0 # 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\(1\)\) AS count\(\*\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- Int64\(61\)\) \- 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\(\*\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "\(\- Int64\(61\)\) \- Int64\(\-79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) / COUNT ( * ) AS col1, ( - ( + 61 ) ) - - 79 AS col1 query I rowsort @@ -34108,7 +34108,7 @@ SELECT ( + + 47 ) + + 13 + - 1 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \* \(\- Int64\(4\)\) \+ Int64\(96\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(40\) \+ 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\(14\) \* \(\- Int64\(4\)\) \+ Int64\(96\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(40\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 14 * - ( 4 ) + 96 + - - COUNT ( * ) * + COUNT ( * ) col0, + 40 + COUNT ( * ) AS col0 query I rowsort label-6548 @@ -35194,7 +35194,7 @@ SELECT DISTINCT + 45 * 26 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) 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\(86\) 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 + 86 AS col2, + COUNT ( * ) AS col2 query I rowsort @@ -37561,7 +37561,7 @@ SELECT 46 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - -911 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-70\) \* 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 "Int64\(32\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-70\) \* Int64\(13\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 32 + - COUNT ( * ) AS col1, - 70 * 13 - COUNT ( * ) col1 query I rowsort label-7212 @@ -37958,7 +37958,7 @@ SELECT ( + ( 13 ) ) + 34 * - + 58 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-11\)\) \+ Int64\(\-94\) \+ Int64\(22\) AS col1" at position 0 and "Int64\(28\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(85\) \* 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\(\-11\)\) \+ Int64\(\-94\) \+ Int64\(22\) AS col1" at position 0 and "Int64\(28\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(85\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( - 11 ) + - 94 + 22 AS col1, 28 / - + COUNT ( * ) + + 85 * + COUNT ( * ) AS col1 query I rowsort @@ -42896,7 +42896,7 @@ SELECT DISTINCT + + COUNT ( DISTINCT - 26 ) * 29 * - 83 + COUNT ( * ) AS col2 # 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 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\(55\) 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 + ( + 55 ) AS col0, COUNT ( * ) AS col0 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 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\. 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,7 +44561,7 @@ 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 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\. 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: @@ -46883,7 +46883,7 @@ SELECT - COALESCE ( COUNT ( * ), - 51, - 71 * + 40 * - 73 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -2046 -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\(31\) \* 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\(\*\) )?AS col1" at position 0 and "Int64\(31\) \* Int64\(\-66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col1, + 31 * - 66 AS col1 query I rowsort @@ -48962,7 +48962,7 @@ SELECT - 57 * - ( SUM ( - 15 ) ) AS col2, + COUNT ( * ) + - - MIN ( DISTINCT - 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -9067 -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\(11\) \* Int64\(0\) \+ Int64\(47\) \+ Int64\(98\) \* 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\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(11\) \* Int64\(0\) \+ Int64\(47\) \+ Int64\(98\) \* Int64\(\-93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) col2, + 11 * - 0 + 47 + + 98 * - 93 AS col2 # Datafusion - Datafusion expected results: @@ -49073,7 +49073,7 @@ SELECT - 46 * + - 55 # 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\(16\) / Int64\(29\) \* Int64\(86\) \* \(\- Int64\(22\)\) \* Int64\(\-24\) \+ \(\- CAST\(NULL AS Float64\)\) / 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\(\*\) )?AS col1" at position 0 and "Int64\(16\) / Int64\(29\) \* Int64\(86\) \* \(\- Int64\(22\)\) \* Int64\(\-24\) \+ \(\- CAST\(NULL AS Float64\)\) / Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, 16 / 29 * 86 * - + 22 * - 24 + + ( + - CAST ( NULL AS FLOAT8 ) ) / 9 col1 query I rowsort label-9421 diff --git a/data/sqlite/random/expr/slt_good_31.slt b/data/sqlite/random/expr/slt_good_31.slt index 229bb9c..35345ba 100644 --- a/data/sqlite/random/expr/slt_good_31.slt +++ b/data/sqlite/random/expr/slt_good_31.slt @@ -2673,7 +2673,7 @@ SELECT COALESCE ( - 49, + 62 ) AS col2 # 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 "count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, + 37 AS col1 query I rowsort label-503 @@ -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 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\. SELECT ALL - CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col1, 80 AS col1 query I rowsort label-848 @@ -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 Int32\)\)\)\) \- 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 @@ -7546,7 +7546,7 @@ SELECT ALL + 11 * + ( - 29 ) + - 62 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 "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\(\*\) )?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 ( * ) ) col1, + COUNT ( * ) AS col1 query I rowsort label-1441 @@ -9386,7 +9386,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - -2989 -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 "Int64\(49\) \* \(\- 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\(37\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(49\) \* \(\- Int64\(61\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( 37 ) / + COUNT ( * ) AS col1, 49 * - + 61 AS col1 query I rowsort @@ -10989,7 +10989,7 @@ SELECT DISTINCT - - CAST ( - 61 AS INTEGER ) * 95 + + - 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 96 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, 96 AS col1 query II rowsort label-2095 @@ -12566,7 +12566,7 @@ SELECT ALL + 65 - + 88 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 800 # Datafusion - Expected - -168 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) \* Int64\(\-80\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(28\) \* 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\(\-10\) \* Int64\(\-80\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(28\) \* Int64\(\-6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 10 * - 80 * + COUNT ( * ) AS col1, 28 * - 6 AS col1 query I rowsort label-2397 @@ -13002,7 +13002,7 @@ SELECT 84 + - + 50 / + - 80 * - - 63 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \+ \(\- Int64\(72\)\) 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\(86\) \+ \(\- Int64\(72\)\) 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 86 + - + 72 AS col0, + COUNT ( * ) col0 query I rowsort @@ -13370,7 +13370,7 @@ SELECT - COALESCE ( 24, - 34 * - - 95 - 23 * - 4, - 89, + 64 * - 95 ) * - 66 col # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - 63 -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 "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\(\-6\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 6 / COUNT ( * ) col0, 63 AS col0 query I rowsort label-2550 @@ -14321,7 +14321,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 "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 + + 8 AS col1, COUNT ( * ) col1 query I rowsort @@ -17981,7 +17981,7 @@ SELECT - SUM ( ALL + 48 ) AS col2, SUM ( DISTINCT - - 25 ) # 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\(\-4\) \- \(\- Int64\(46\)\) 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\(\-4\) \- \(\- Int64\(46\)\) 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 + - 4 - - + 46 AS col1, + COUNT ( * ) AS col1 query I rowsort @@ -18198,7 +18198,7 @@ SELECT COUNT ( * ) + - CAST ( CAST ( 38 AS INTEGER ) AS INTEGER ) / 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - 411804 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-81\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(81\) \* Int64\(82\) \* 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\(\-81\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(81\) \* Int64\(82\) \* Int64\(62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - 81 * COUNT ( * ) AS col0, 81 * 82 * 62 AS col0 query I rowsort label-3484 @@ -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 Int32\) \* CAST\(NULL AS Int32\) 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 @@ -24838,7 +24838,7 @@ SELECT 63 + + + COALESCE ( 76, 40 ) + + 57 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 49 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, 49 AS col1 query I rowsort @@ -25648,7 +25648,7 @@ SELECT - 80 / + 14 # 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 "Int64\(19\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(78\) 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\(19\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(78\) 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 + 19 + + COUNT ( * ) * 78 AS col0, COUNT ( * ) AS col0 query I rowsort label-4913 @@ -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 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\. 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 @@ -25853,7 +25853,7 @@ SELECT + - 8 AS col2 # 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 "Int64\(48\) / Int64\(82\) \* Int64\(47\) \* 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(48\) / Int64\(82\) \* Int64\(47\) \* Int64\(\-75\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col0, + 48 / + 82 * 47 * - 75 AS col0 query I rowsort label-4951 @@ -29036,7 +29036,7 @@ SELECT ALL - + 32 # 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\(67\) \+ Int64\(\-77\) AS col1" at position 0 and "Int64\(33\) \* Int64\(2\) \+ 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\(67\) \+ Int64\(\-77\) AS col1" at position 0 and "Int64\(33\) \* Int64\(2\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 67 + - 77 AS col1, 33 * 2 + + COUNT ( * ) AS col1 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 Int32\)\) \* 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 @@ -30748,7 +30748,7 @@ SELECT DISTINCT + 83 * - + COUNT ( * ) # Datafusion - Expected - 32 # Datafusion - Expected - 1 # Datafusion - Expected - -3 -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\(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\(32\) 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 32 AS col1, COUNT ( * ) AS col1, - 91 / + + 95 + - 3 query I rowsort label-5890 @@ -33014,7 +33014,7 @@ SELECT DISTINCT + 12 + + 58 + 91 * + CASE - COUNT ( * ) WHEN - + 47 THEN 82 ELSE # Datafusion - Datafusion expected results: # Datafusion - Expected - 1596 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(\-84\)\)\) \* Int64\(19\) 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\(Int64\(\-84\)\)\) \* Int64\(19\) 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 ( - 84 ) * + 19 AS col2, COUNT ( * ) AS col2 query I rowsort label-6323 @@ -33061,7 +33061,7 @@ SELECT ALL + 23 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 "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\(\*\) )?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 ( * ) AS col1, COUNT ( * ) AS col1 query I rowsort label-6332 @@ -35156,7 +35156,7 @@ SELECT ( - NULLIF ( 75, 83 * 67 ) ) 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 "count\(Int64\(1\)\) AS count\(\*\) \* 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\(\*\) \* 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 ( * ) * + COUNT ( * ) AS col0, - COUNT ( * ) AS col0 query I rowsort label-6739 @@ -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 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\. SELECT + CAST ( + - 4 AS INTEGER ) col2, + COUNT ( * ) AS col2 query I rowsort label-7058 @@ -37131,7 +37131,7 @@ SELECT - 57 + 49 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - -21619 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col1" at position 0 and "Int64\(29\) \+ Int64\(82\) \* Int64\(66\) \* Int64\(\-4\) / 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\(69\) AS col1" at position 0 and "Int64\(29\) \+ Int64\(82\) \* Int64\(66\) \* Int64\(\-4\) / 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 69 AS col1, 29 + 82 * 66 * - 4 / + COUNT ( * ) * + COUNT ( * ) AS col1 query I rowsort @@ -37600,7 +37600,7 @@ SELECT ALL + ( 19 ) + + - 54 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 16 -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\(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\(\*\) )?AS col2" at position 0 and "Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col2, + 16 col2 query I rowsort @@ -39172,7 +39172,7 @@ SELECT - 43 / 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6153 # Datafusion - Expected - -50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-15\) \* Int64\(23\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(66\)\) \* Int64\(88\) \- count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "sum\(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\(\-15\) \* Int64\(23\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(66\)\) \* Int64\(88\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "sum\(Int64\(\-50\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 15 * 23 + COUNT ( * ) + - ( + 66 ) * + + 88 - COUNT ( * ) AS col2, SUM ( - 50 ) AS col2 query I rowsort @@ -39478,7 +39478,7 @@ SELECT - 28 / 5 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -207 # Datafusion - Expected - -41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \* Int64\(\-16\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "min\(DISTINCT 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\(13\) \* Int64\(\-16\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "min\(DISTINCT Int64\(\-41\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 13 * - 16 + + + ( + COUNT ( * ) ) AS col1, + MIN ( DISTINCT + - 41 ) col1 query I rowsort @@ -47053,7 +47053,7 @@ SELECT ( + 81 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 23055 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \* Int64\(87\) \* Int64\(53\) \* count\(Int64\(1\)\) AS count\(\*\) 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\(5\) \* Int64\(87\) \* Int64\(53\) \* count\(Int64\(1\)\) (AS count\(\*\) )?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 5 * + 87 * 53 * + COUNT ( * ) AS col0, 9 AS col0 query I rowsort label-9010 @@ -48400,7 +48400,7 @@ SELECT - 16 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -64 # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(60\) \- 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\(\-64\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(60\) \- Int64\(77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 64 / + COUNT ( * ) AS col1, + 60 - 77 AS col1 query II rowsort @@ -50169,7 +50169,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) 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\(71\) 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 71 AS col1, + COUNT ( * ) AS col1 query I rowsort label-9604 @@ -50773,7 +50773,7 @@ SELECT - - 13 # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, COUNT ( * ) AS col1 query II rowsort @@ -51125,7 +51125,7 @@ SELECT + MAX ( - - 78 ) 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 "count\(Int64\(1\)\) AS count\(\*\) \* 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\(\*\) \* 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 ( * ) * + COUNT ( * ) AS col0, - COUNT ( * ) AS col0 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..997f81b 100644 --- a/data/sqlite/random/expr/slt_good_32.slt +++ b/data/sqlite/random/expr/slt_good_32.slt @@ -7304,7 +7304,7 @@ SELECT ALL - - 19 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -52 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-52\) 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\(\-52\) 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 - 52 AS col0, COUNT ( * ) AS col0 query I rowsort label-1416 @@ -10387,7 +10387,7 @@ SELECT + - 77 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6389 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) \* Int64\(69\) \+ Int64\(96\) \+ count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(\-94\) \* Int64\(69\) \+ Int64\(96\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?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 - 94 * 69 + + + 96 + + COUNT ( * ) AS col2, 59 AS col2 query I rowsort label-2016 @@ -12786,7 +12786,7 @@ SELECT ( 86 ) AS col0 # 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 "min\(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 "min\(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 + + MIN ( + 34 ) AS col2, COUNT ( * ) AS col2 query I rowsort @@ -20732,7 +20732,7 @@ SELECT DISTINCT - 94 * MAX ( DISTINCT - 43 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -79 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(79\)\) AS col0" at position 0 and "Int64\(82\) \+ 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\(79\)\) AS col0" at position 0 and "Int64\(82\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - ( 79 ) AS col0, 82 + + + COUNT ( * ) col0 query I rowsort label-4031 @@ -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 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\. 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 Int32\) 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 @@ -28193,7 +28193,7 @@ SELECT ALL 23 AS col0, 2 * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 54 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, 54 AS col1 query I rowsort label-5483 @@ -29234,7 +29234,7 @@ SELECT DISTINCT SUM ( - - 10 ) AS col0 # 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\(2\) 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\(2\) 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 2 AS col1, + COUNT ( * ) AS col1 query I rowsort @@ -30027,7 +30027,7 @@ SELECT ALL + - 28 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 51 -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\(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\(\*\) )?AS col0" at position 0 and "Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( + COUNT ( * ) ) col0, 51 AS col0 query I rowsort label-5842 @@ -34165,7 +34165,7 @@ SELECT + NULLIF ( - 51, - COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -41 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) AS col1" at position 0 and "Int64\(87\) \+ \(\- Int64\(92\)\) \* 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\(\-41\) AS col1" at position 0 and "Int64\(87\) \+ \(\- Int64\(92\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 41 col1, 87 + + - ( + 92 ) * + COUNT ( * ) AS col1 query I rowsort label-6649 @@ -36556,7 +36556,7 @@ SELECT ALL - CAST ( + 41 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) 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\) 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 + - 71 AS col2, COUNT ( * ) AS col2 query I rowsort label-7114 @@ -39149,7 +39149,7 @@ SELECT DISTINCT 26 * - COUNT ( * ) 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 "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\(\*\) )?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 ( * ) AS col1, COUNT ( * ) AS col1 query II rowsort label-7619 @@ -39305,7 +39305,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 49 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 + COUNT ( * ) AS col2, + 49 col2 query I rowsort label-7649 @@ -40047,7 +40047,7 @@ SELECT COUNT ( * ) * - 92 col2 # 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 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(\-24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, ( - 24 ) AS col1 query I rowsort label-7794 @@ -43828,7 +43828,7 @@ SELECT - - 53 * - - 16 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 90 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, + 90 AS col1 query I rowsort label-8526 @@ -45326,7 +45326,7 @@ SELECT + ( 33 ) 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 "\(\- 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\(\*\)\) 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 ( * ) ) AS col0, COUNT ( * ) col0 query II rowsort label-8818 @@ -46595,7 +46595,7 @@ SELECT - 35 * + 86 AS col1, 25 AS col0 # 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 "Int64\(28\) \+ 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 "Int64\(28\) \+ 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 28 + + COUNT ( * ) AS col1, + COUNT ( * ) AS col1 query I rowsort label-9067 diff --git a/data/sqlite/random/expr/slt_good_33.slt b/data/sqlite/random/expr/slt_good_33.slt index cb1e27f..66d9842 100644 --- a/data/sqlite/random/expr/slt_good_33.slt +++ b/data/sqlite/random/expr/slt_good_33.slt @@ -4148,7 +4148,7 @@ SELECT ALL + 5 * - SUM ( + 34 ) * + 95 + + - 92 AS col0 # 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\(73\) 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\(73\) 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 73 AS col0, COUNT ( * ) AS col0 query I rowsort @@ -5602,7 +5602,7 @@ SELECT DISTINCT 90 - 35 + - 30 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\(79\) \+ CASE Int64\(\-75\) WHEN \(\- min\(DISTINCT Int64\(12\)\)\) \* Int64\(57\) THEN \(\- Int64\(7\)\) END \+ Int64\(\-30\) 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\(79\) \+ CASE Int64\(\-75\) WHEN \(\- min\(DISTINCT Int64\(12\)\)\) \* Int64\(57\) THEN \(\- Int64\(7\)\) END \+ Int64\(\-30\) 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 79 + CASE - 75 WHEN - MIN ( DISTINCT + 12 ) * + + 57 THEN ( - + 7 ) END + - 30 AS col0, + COUNT ( * ) AS col0 query II rowsort label-1066 @@ -15215,7 +15215,7 @@ SELECT ALL MIN ( DISTINCT - - 52 ) # 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 "Int64\(40\) \+ count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(40\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 40 + + COUNT ( * ) AS col1, 75 AS col1 query I rowsort label-2904 @@ -19015,7 +19015,7 @@ SELECT - 72 + + 78 * COUNT ( DISTINCT + 28 ) # Datafusion - Expected - -75 # Datafusion - Expected - -13775 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(75\)\) 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 "\(\- Int64\(75\)\) 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 - + ( 75 ) AS col1, + 19 * - - 25 * + - 29, COUNT ( * ) AS col1 query I rowsort label-3632 @@ -21558,7 +21558,7 @@ SELECT 72 / + COUNT ( * ) + - 23 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -33 -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\(\-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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(\-33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, - 33 AS col2 query I rowsort label-4123 @@ -21982,7 +21982,7 @@ NULL # Datafusion - Expected - 91 # Datafusion - Expected - -62 # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \* count\(Int64\(1\)\) AS count\(\*\) 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\(91\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(\-62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 91 * + COUNT ( * ) AS col1, - 62 AS col1, MAX ( ALL - + 72 ) query I rowsort label-4202 @@ -33396,7 +33396,7 @@ NULL # 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 "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- Int64\(\-98\)\) / \(\- Int64\(26\)\) \- Int64\(36\) \+ 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "\(\- Int64\(\-98\)\) / \(\- Int64\(26\)\) \- Int64\(36\) \+ Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col2, - ( - 98 ) / - + 26 - + 36 + + 0 AS col2 query I rowsort @@ -33738,7 +33738,7 @@ SELECT ALL + 55, 55 # 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\(Int64\(1\)\) AS count\(\*\) \* Int64\(14\) / \(\- 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\(\*\) )?AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(14\) / \(\- Int64\(44\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col2, + COUNT ( * ) * 14 / - + 44 AS col2 query II rowsort label-6449 @@ -34853,7 +34853,7 @@ SELECT + ( - 65 ) * + ( - - 0 ) + - + 29 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) \- count\(Int64\(1\)\) AS count\(\*\) 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\(82\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 82 - + COUNT ( * ) AS col0, 68 AS col0 query I rowsort label-6662 @@ -35222,7 +35222,7 @@ SELECT - 78 AS col2, COUNT ( * ) * + 20 + + 93 AS col0 # 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\(27\) \+ Int64\(\-81\) 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\(27\) \+ Int64\(\-81\) 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 27 + - 81 AS col0, + COUNT ( * ) AS col0 query I rowsort label-6732 @@ -36393,7 +36393,7 @@ SELECT ALL - + 95 # Datafusion - Datafusion expected results: # Datafusion - Expected - -52 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-52\) 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\(\-52\) 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 - 52 AS col0, COUNT ( * ) AS col0 query I rowsort label-6956 @@ -41652,7 +41652,7 @@ SELECT MAX ( + 2 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 12 -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\(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\(\*\) )?AS col2" at position 0 and "Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, 12 AS col2 query I rowsort @@ -42751,7 +42751,7 @@ SELECT 69 * 27 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -47 -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\) \- 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\(45\) \- Int64\(92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COUNT ( * ) col2, 45 - + 92 AS col2 query I rowsort label-8177 @@ -43162,7 +43162,7 @@ SELECT - COALESCE ( - COALESCE ( 64, - 4 ), + COALESCE ( 0, - + 56 + + 4 - + 49 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3936 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) \* Int64\(48\) 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 "Int64\(82\) \* Int64\(48\) 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 ALL 82 * + + 48 AS col0, 34 * COUNT ( * ) AS col0 query I rowsort label-8256 @@ -43884,7 +43884,7 @@ SELECT - 99 + - 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) 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\(88\) 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 88 AS col0, + COUNT ( * ) AS col0 query I rowsort @@ -47297,7 +47297,7 @@ SELECT DISTINCT 11 * - 92 + + 85 * + 61 * 70 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - 1 -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\(\*\) AS col2" at position 1 have the 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\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 81 AS col2, COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: @@ -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 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\. SELECT - + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col2, + COUNT ( * ) * 2 col2 query I rowsort label-9072 diff --git a/data/sqlite/random/expr/slt_good_34.slt b/data/sqlite/random/expr/slt_good_34.slt index 67db2c7..5d83e10 100644 --- a/data/sqlite/random/expr/slt_good_34.slt +++ b/data/sqlite/random/expr/slt_good_34.slt @@ -499,7 +499,7 @@ SELECT DISTINCT - 56 + MAX ( + - 29 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 121032 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) \+ Int64\(\-19\) \* \(\- nullif\(\(\- Int64\(65\)\), Int64\(44\)\)\) \* Int64\(\-98\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(64\) \+ 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\(2\) \+ Int64\(\-19\) \* \(\- nullif\(\(\- Int64\(65\)\), Int64\(44\)\)\) \* Int64\(\-98\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(64\) \+ Int64\(\-11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 2 + - 19 * - NULLIF ( - + 65, 44 ) * + - 98 * + COUNT ( * ) col0, + 64 + - 11 AS col0 query I rowsort @@ -4119,7 +4119,7 @@ SELECT + ( + - 47 ) * + 3 * + 10 * + MIN ( - 46 ) * - 64 - - 72 + + 41 / + - SUM # 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 col2" at position 0 and "nullif\(Int64\(\-10\), \(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "nullif\(Int64\(\-10\), \(\- Int64\(63\)\) \* Int64\(\-41\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) col2, + NULLIF ( - 10, - + 63 * - 41 ) AS col2 query II rowsort label-773 @@ -5961,7 +5961,7 @@ SELECT + NULLIF ( - 51, - COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -41 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) AS col1" at position 0 and "Int64\(87\) \+ \(\- Int64\(92\)\) \* 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\(\-41\) AS col1" at position 0 and "Int64\(87\) \+ \(\- Int64\(92\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 41 col1, 87 + + - ( + 92 ) * + COUNT ( * ) AS col1 # Datafusion - Types were automatically converted from: @@ -6883,7 +6883,7 @@ SELECT 66 + - + 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 "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 - 50 AS col2, ( + + COUNT ( * ) ) AS col2 query I rowsort label-1294 @@ -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 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\. SELECT ALL + CAST ( NULL AS INTEGER ) / 60 + - 6 * 31 * - 55 * + + COUNT ( * ) AS col1, 79 * - - MAX ( - + 18 ) AS col1 query I rowsort label-2046 @@ -13440,7 +13440,7 @@ SELECT ALL - - 44 * - + 54 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col1" at position 0 and "Int64\(95\) / 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\) AS col1" at position 0 and "Int64\(95\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 9 AS col1, 95 / + COUNT ( * ) col1 query I rowsort label-2548 @@ -19252,7 +19252,7 @@ SELECT DISTINCT ( + COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 76 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( + COUNT ( * ) ) AS col2, 76 AS col2 query I rowsort label-3653 @@ -23298,7 +23298,7 @@ SELECT ALL 63 - + + COUNT ( * ) col0 # 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 "Int64\(92\) 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\(92\) 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 92 col2, COUNT ( * ) AS col2 query II rowsort @@ -23586,7 +23586,7 @@ SELECT + 84 / 95 * - 90 / + 75 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3840 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \* Int64\(\-40\) 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\(96\) \* Int64\(\-40\) 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 + 96 * - 40 AS col1, COUNT ( * ) 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 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\. SELECT ALL - CAST ( + ( - 74 ) AS INTEGER ) + - 60 AS col2, COUNT ( * ) AS col2, - 63 AS col2 query I rowsort @@ -29595,7 +29595,7 @@ SELECT + 37 + 32 + + - 92 - - - COUNT ( * ) - + - COUNT ( * ) / + ( - 60 ) * - + # 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 "min\(Int64\(\-80\)\) \+ Int64\(3\) 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\(Int64\(\-80\)\) \+ Int64\(3\) 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 - 80 ) + + 3 AS col0, + COUNT ( * ) AS col0 # Datafusion - Types were automatically converted from: @@ -29988,7 +29988,7 @@ SELECT DISTINCT - CAST ( COALESCE ( + 92, - + 1 ) AS INTEGER ) * - 75 # 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\(35\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-12\) / CASE Int64\(\-97\) WHEN \(\- nullif\(Int64\(59\), Int64\(\-19\)\)\) \* \(\- Int64\(36\)\) THEN Int64\(52\) 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\(35\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(\-12\) / CASE Int64\(\-97\) WHEN \(\- nullif\(Int64\(59\), Int64\(\-19\)\)\) \* \(\- Int64\(36\)\) THEN Int64\(52\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 35 + COUNT ( * ) AS col1, - 12 / + + CASE - 97 WHEN - NULLIF ( + 59, + - 19 ) * - + 36 THEN + 52 END col1 query II rowsort label-5698 @@ -33840,7 +33840,7 @@ SELECT + ( - 66 ) * COUNT ( ALL CAST ( NULL AS FLOAT8 ) ) * COUNT ( * ) # 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\) \* 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\(0\) \* 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 - 0 * COUNT ( * ) AS col0, - ( COUNT ( * ) ) AS col0 query I rowsort label-6429 @@ -36264,7 +36264,7 @@ SELECT + 84 AS col2, 78 - + 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - -87 # Datafusion - Expected - 123840 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) AS col0" at position 0 and "Int64\(60\) \* Int64\(24\) \* 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\(\-87\) AS col0" at position 0 and "Int64\(60\) \* Int64\(24\) \* Int64\(86\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 87 AS col0, + 60 * + 24 * 86 * + COUNT ( * ) AS col0 query I rowsort label-6894 @@ -36507,7 +36507,7 @@ SELECT - NULLIF ( - MAX ( ALL - ( + 70 ) ), - - 61 + - 90 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -21 -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\(83\) \+ Int64\(\-66\) \+ \(\- count\(Int64\(\-51\)\)\) \- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(83\) \+ Int64\(\-66\) \+ \(\- count\(Int64\(\-51\)\)\) \- Int64\(37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col2, 83 + - 66 + - COUNT ( ALL - 51 ) - + 37 AS col2 query I rowsort @@ -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 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\. SELECT + CAST ( - 81 AS INTEGER ) AS col1, + 5 * 18 - ( - + 83 ) * COUNT ( * ) AS col1 query II rowsort label-7492 @@ -41445,7 +41445,7 @@ SELECT 41 AS col1, + 4 AS col1 # 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\(10\) \+ \(\- CAST\(NULL AS Float64\)\) \- Int64\(\-8\) / 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\(81\) AS col1" at position 0 and "Int64\(10\) \+ \(\- CAST\(NULL AS Float64\)\) \- Int64\(\-8\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 81 AS col1, 10 + - CAST ( NULL AS FLOAT8 ) - + - 8 / COUNT ( * ) AS col1 query I rowsort label-7886 @@ -41466,7 +41466,7 @@ SELECT DISTINCT + 86 / 69 + + SUM ( - 57 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -4575 -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\(0\) \* Int64\(2\) \+ \(\- Int64\(75\)\) \* 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\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(0\) \* Int64\(2\) \+ \(\- Int64\(75\)\) \* Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, + 0 * + + 2 + - + 75 * + 61 AS col2 query I rowsort @@ -42075,7 +42075,7 @@ SELECT - 34 * + 35 + - - 62 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + COUNT ( * ) AS col1, COUNT ( * ) AS col1 query II rowsort @@ -43255,7 +43255,7 @@ SELECT ALL + 14 AS col2, + COALESCE ( - 61, + CAST ( - + 13 AS INTEGER ) * + 67 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 49 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 + COUNT ( * ) AS col2, + 49 col2 query I rowsort @@ -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 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\. SELECT ALL + - CAST ( NULL AS INTEGER ) * + 10 + 63 + + 12 - + + 2 * + COUNT ( * ) AS col2, - 39 * - 89 AS col2 query II rowsort @@ -46581,7 +46581,7 @@ SELECT DISTINCT + ( - 61 ) # 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\(2\) 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\(2\) 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 + 2 AS col1, + COUNT ( * ) AS col1 query I rowsort label-8866 @@ -47640,7 +47640,7 @@ SELECT DISTINCT 39 + ( - + COUNT ( * ) ) # 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 "\(\- 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\(\*\) )?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 ( * ) AS col2, ( - - 19 ) AS col2 query I rowsort @@ -48183,7 +48183,7 @@ SELECT DISTINCT COUNT ( DISTINCT + + 29 ) * - - 60 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6460 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) \* Int64\(76\) 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\(\-85\) \* Int64\(76\) 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 - 85 * 76 AS col1, COUNT ( * ) AS col1 query I rowsort label-9174 @@ -48599,7 +48599,7 @@ NULL # 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 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(\-24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, ( - 24 ) AS col1 query I rowsort label-9255 diff --git a/data/sqlite/random/expr/slt_good_35.slt b/data/sqlite/random/expr/slt_good_35.slt index 2b5122e..7229ceb 100644 --- a/data/sqlite/random/expr/slt_good_35.slt +++ b/data/sqlite/random/expr/slt_good_35.slt @@ -4224,14 +4224,14 @@ SELECT ALL + 11 + 73 / + 38 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col2" at position 0 and "Int64\(13\) \* 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\(63\) AS col2" at position 0 and "Int64\(13\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 63 AS col2, 13 * COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1371 # 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 col1" at position 1 and "CASE WHEN nullif\(Int64\(\-55\), Int64\(17\) \+ count\(Int64\(\-18\)\)\) IS NOT NULL THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(29\) \* Int64\(\-3\) \+ Int64\(13\) \* count\(DISTINCT Int64\(22\)\) IS NOT NULL THEN NULL ELSE NULL END / 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\(\*\) )?AS col1" at position 1 and "CASE WHEN nullif\(Int64\(\-55\), Int64\(17\) \+ count\(Int64\(\-18\)\)\) IS NOT NULL THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(29\) \* Int64\(\-3\) \+ Int64\(13\) \* count\(DISTINCT Int64\(22\)\) IS NOT NULL THEN NULL ELSE NULL END / Int64\(98\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 73 / 54 * + ( - 14 ) * + 97 + - 13, + COUNT ( * ) AS col1, + CASE WHEN NULLIF ( - 55, + 17 + COUNT ( ALL - 18 ) ) IS NOT NULL THEN - + COUNT ( * ) WHEN 29 * - 3 + + 13 * COUNT ( DISTINCT + 22 ) IS NOT NULL THEN NULL ELSE NULL END / 98 col1 query I rowsort label-807 @@ -14350,7 +14350,7 @@ SELECT ALL + - 39 / + 29 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - 228 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-10\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(19\) \* Int64\(12\) \* 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\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(19\) \* Int64\(12\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 10 + ( COUNT ( * ) ) AS col0, 19 * 12 * + COUNT ( * ) AS col0 query I rowsort label-2741 @@ -15411,7 +15411,7 @@ SELECT ALL + MAX ( 2 ) * - NULLIF ( 75, - - 20 - + COUNT ( * ) ) AS col0 # 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 col0" at position 0 and "Int64\(37\) \+ 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(37\) \+ Int64\(58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col0, 37 + 58 AS col0 query I rowsort label-2945 @@ -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 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\. SELECT + COUNT ( * ), NULLIF ( 94, + CAST ( + 60 AS INTEGER ) * - 78 + ( + - 90 ) ) + + - 34 AS col1, + + COUNT ( * ) AS col1 query II rowsort label-3111 @@ -17738,7 +17738,7 @@ SELECT + 67 + - + 79 + 52 * - 55 * + 15 * 3 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 "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\(54\)\) 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 - + ( + + 54 ) AS col1, COUNT ( * ) AS col1 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 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\. 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 @@ -21086,7 +21086,7 @@ SELECT - 51 * - - 75 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 90 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, + 90 AS col1 query II rowsort @@ -25366,7 +25366,7 @@ SELECT DISTINCT - ( + + 32 ) * - + 38 * + 20, COALESCE ( 68, + COALESCE ( - COUN # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) \- Int64\(57\) 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\(70\) \- Int64\(57\) 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 + 70 - + 57 AS col0, COUNT ( * ) AS col0 query I rowsort @@ -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 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\. 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 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\. 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 @@ -31892,7 +31892,7 @@ SELECT ALL ( + 38 ) * ( + - 68 ) + - + 14 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 "\(\- 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\(\*\)\) 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 ( * ) ) AS col0, COUNT ( * ) col0 query I rowsort label-6102 @@ -34938,7 +34938,7 @@ SELECT COUNT ( * ) + + 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - 558 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-62\) \* 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\(49\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(\-62\) \* Int64\(\-9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 49 + ( COUNT ( * ) ) AS col1, - 62 * + - 9 AS col1 query I rowsort @@ -38495,7 +38495,7 @@ SELECT - 68 * - COALESCE ( + ( + 29 ), + COUNT ( * ) * 97, + SUM ( ALL 41 ) + + # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 128 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col0" at position 0 and "Int64\(\-21\) \+ Int64\(96\) \- Int64\(\-53\) \* 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\(3\) AS col0" at position 0 and "Int64\(\-21\) \+ Int64\(96\) \- Int64\(\-53\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 3 AS col0, - 21 + + 96 - - 53 * COUNT ( * ) AS col0 query I rowsort label-7366 @@ -41469,7 +41469,7 @@ SELECT - NULLIF ( - 54, 50 + - + COALESCE ( - + 81, - 37 ) ) AS col2 # 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 "Int64\(28\) \+ 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 "Int64\(28\) \+ 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 28 + + COUNT ( * ) AS col1, + COUNT ( * ) AS col1 query I rowsort label-7936 @@ -42012,7 +42012,7 @@ SELECT ALL - 54 * + - 50 AS col1 # Datafusion - Expected - 1 # Datafusion - Expected - 83 # Datafusion - Expected - -150 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \- count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 and "Int64\(\-46\) \- min\(nullif\(Int64\(54\), Int64\(56\) \+ Int64\(10\)\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(50\) 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\(84\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 and "Int64\(\-46\) \- min\(nullif\(Int64\(54\), Int64\(56\) \+ Int64\(10\)\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(50\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) + + CAST ( + + 2 AS INTEGER ) AS col1, 84 - + COUNT ( * ) col2, - 46 - + MIN ( NULLIF ( + 54, + 56 + + 10 ) ) + + - COUNT ( * ) * + 50 AS col2 # Datafusion - Datafusion expected results: @@ -44572,7 +44572,7 @@ SELECT ALL NULLIF ( - 77, - COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -30 -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\(\-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 "Int64\(\-30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col1, - 30 col1 query II rowsort @@ -46731,7 +46731,7 @@ SELECT - - 62 * + 20 + + 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 78 -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\(19\)\), Int64\(86\)\) \+ 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\(\*\) )?AS col0" at position 0 and "coalesce\(\(\- Int64\(19\)\), Int64\(86\)\) \+ Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) col0, COALESCE ( - + 19, + + 86 ) + + + 97 col0 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_36.slt b/data/sqlite/random/expr/slt_good_36.slt index 429d3a6..dc5ebd5 100644 --- a/data/sqlite/random/expr/slt_good_36.slt +++ b/data/sqlite/random/expr/slt_good_36.slt @@ -4668,7 +4668,7 @@ SELECT DISTINCT + - 32 + + 37 / 30 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 1 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 90 AS col1, + COUNT ( * ) AS col1 query I rowsort label-885 @@ -15084,7 +15084,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -58 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) 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\(\-58\) 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 - 58 AS col0, COUNT ( * ) AS col0 query I rowsort label-2881 @@ -19073,7 +19073,7 @@ SELECT - 19 AS col2, + COUNT ( * ) * 50 + + - 91 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -52 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-52\), Int64\(11\)\) AS col1" at position 0 and "Int64\(5\) \* 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 "nullif\(Int64\(\-52\), Int64\(11\)\) AS col1" at position 0 and "Int64\(5\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL NULLIF ( - 52, + 11 ) AS col1, + 5 * + COUNT ( * ) AS col1 query II rowsort @@ -21268,7 +21268,7 @@ SELECT ALL + 35 / + + 49 * - 3 # 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 "count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(20\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col0, 20 AS col0 query II rowsort label-4057 @@ -21371,7 +21371,7 @@ SELECT ALL - 38 * + 53 + - 21 * + 6 # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col1" at position 0 and "Int64\(93\) / 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 "Int64\(43\) AS col1" at position 0 and "Int64\(93\) / Int64\(83\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 43 AS col1, + 93 / + + 83 + COUNT ( * ) AS col1 query I rowsort label-4076 @@ -33061,7 +33061,7 @@ SELECT ALL - NULLIF ( + - 64, 98 ) + COALESCE ( + + 12, + COUNT ( * ) / COALESCE # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col2" at position 0 and "sum\(Int64\(58\)\) \+ 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\(56\) AS col2" at position 0 and "sum\(Int64\(58\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 56 AS col2, + SUM ( ALL + 58 ) + COUNT ( * ) AS col2 query I rowsort label-6318 @@ -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 Int32\) \* 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 @@ -35951,7 +35951,7 @@ SELECT - - 63 + 54 - - 82 * COUNT ( * ) # 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\(30\)\) 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\(30\)\) 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 ( ALL 30 ) AS col1, COUNT ( * ) AS col1 query I rowsort label-6863 @@ -36411,7 +36411,7 @@ NULL # Datafusion - Datafusion expected results: # 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 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\(28\) 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 28 AS col0, COUNT ( * ) AS col0 query I rowsort label-6951 @@ -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 Int32\) \* 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 @@ -40481,7 +40481,7 @@ SELECT ALL 73 - MIN ( + - 18 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 48 -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\(\*\)\) \* \(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(48\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col1, - COUNT ( * ) * - + 48 col1 query I rowsort @@ -44441,7 +44441,7 @@ SELECT 29 * + - 79 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - 1 -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\(\*\) AS col1" at position 1 have the 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\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 7 AS col1, COUNT ( * ) col1 query I rowsort label-8483 @@ -46478,7 +46478,7 @@ SELECT DISTINCT COUNT ( * ) * + 53 + - 82 * - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col0" at position 0 and "Int64\(\-80\) \+ Int64\(\-72\) / \(\- Int64\(23\)\) \* 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\) AS col0" at position 0 and "Int64\(\-80\) \+ Int64\(\-72\) / \(\- Int64\(23\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 20 AS col0, - 80 + - 72 / + - ( 23 ) * COUNT ( * ) AS col0 query II rowsort label-8874 @@ -47947,7 +47947,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -63 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-56\) \+ Int64\(62\) / \(\- Int64\(10\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ 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\(\-56\) \+ Int64\(62\) / \(\- Int64\(10\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ 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 + ( + - 56 ) + 62 / - ( 10 ) * + COUNT ( * ) + + - 1 AS col0, + COUNT ( * ) AS col0 query I rowsort @@ -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 Int32\) 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 @@ -51870,7 +51870,7 @@ SELECT 16 + 85 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 51 -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\) AS col1" at position 1 have the same name\. Consider aliasing \("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\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) col1, 51 AS col1 query I rowsort label-9908 diff --git a/data/sqlite/random/expr/slt_good_37.slt b/data/sqlite/random/expr/slt_good_37.slt index 081ec22..40de995 100644 --- a/data/sqlite/random/expr/slt_good_37.slt +++ b/data/sqlite/random/expr/slt_good_37.slt @@ -726,7 +726,7 @@ SELECT ALL + 34 + - - 20 + + 5 * + COUNT ( * ) AS col1, MIN ( DISTINCT - NULLIF # 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 "count\(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 "count\(Int64\(92\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, COUNT ( + 92 ) AS col1 query I rowsort label-130 @@ -10143,7 +10143,7 @@ SELECT + + 74, + 90 - - 75 * 80 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -740 -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\(\-57\) \* 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-57\) \* Int64\(13\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) AS col1, - 57 * 13 + + COUNT ( * ) AS col1 query I rowsort label-1934 @@ -10238,7 +10238,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\(Int64\(45\)\) \* \(\- Int64\(19\)\) \- Int64\(6\) \+ CASE WHEN NOT Int64\(\-43\) IS NOT NULL THEN Int64\(83\) \* sum\(\(\- Int64\(\-32\)\)\) \+ Int64\(30\) ELSE NULL END \* Int64\(25\) 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\(Int64\(45\)\) \* \(\- Int64\(19\)\) \- Int64\(6\) \+ CASE WHEN NOT Int64\(\-43\) IS NOT NULL THEN Int64\(83\) \* sum\(\(\- Int64\(\-32\)\)\) \+ Int64\(30\) ELSE NULL END \* Int64\(25\) 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 AVG ( 45 ) * - + 19 - 6 + + + CASE WHEN NOT - 43 IS NOT NULL THEN + 83 * + SUM ( - - 32 ) + 30 ELSE NULL END * + 25 AS col2, COUNT ( * ) AS col2 query I rowsort label-1951 @@ -11099,7 +11099,7 @@ SELECT DISTINCT + 58 * + + 32 + - 62 AS col1 # Datafusion - Expected - -6317 # Datafusion - Expected - 59 # Datafusion - Expected - 1071 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \* \(\- Int64\(78\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(17\) \* Int64\(63\) 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\(81\) \* \(\- Int64\(78\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(17\) \* Int64\(63\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( 81 ) * - + 78 + COUNT ( * ) AS col1, 59 AS col2, + 17 * 63 AS col1 query I rowsort label-2117 @@ -14196,7 +14196,7 @@ SELECT ALL 26 + 86 # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col2" at position 0 and "Int64\(\-51\) / 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\(31\) AS col2" at position 0 and "Int64\(\-51\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 31 AS col2, - 51 / COUNT ( * ) AS col2 query I rowsort label-2708 @@ -16882,7 +16882,7 @@ SELECT ALL COALESCE ( - - 1, - 70 * - 36 ) AS col0, - 73 * + + 75 + 33 # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - -83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) \- Int64\(\-30\) / Int64\(78\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- coalesce\(Int64\(83\), \(\- count\(Int64\(1\)\) AS 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 "Int64\(\-55\) \- Int64\(\-30\) / Int64\(78\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "\(\- coalesce\(Int64\(83\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(76\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 55 - - 30 / 78 * + COUNT ( * ) col1, ( - COALESCE ( 83, ( - COUNT ( * ) ) * 76 ) ) AS col1 query I rowsort label-3222 @@ -18750,7 +18750,7 @@ SELECT 46 + - 19 * 29 * 58 * + - 74 # Datafusion - Datafusion expected results: # Datafusion - Expected - -78724 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \* Int64\(25\) \* Int64\(\-67\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "nullif\(Int64\(46\), 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\(47\) \* Int64\(25\) \* Int64\(\-67\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "nullif\(Int64\(46\), count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 47 * 25 * - 67 + COUNT ( * ) AS col2, NULLIF ( + + 46, + COUNT ( * ) ) AS col2 query I rowsort label-3571 @@ -19589,7 +19589,7 @@ SELECT ( 88 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -77 # Datafusion - Expected - 23 -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 "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\(\-77\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 77 * COUNT ( * ) AS col1, + 23 col1 query II rowsort label-3730 @@ -20966,7 +20966,7 @@ SELECT DISTINCT - 75 * - 37, 55 col0 # Datafusion - Expected - -66 # 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 col0" at position 1 and "Int64\(23\) \+ Int64\(69\) 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\(23\) \+ Int64\(69\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 66, COUNT ( * ) col0, ( + 23 ) + + 69 AS col0 query II rowsort label-3996 @@ -21174,7 +21174,7 @@ SELECT - 94 + + COUNT ( ALL - 64 ) + + 21 # 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\(\-64\) / Int64\(59\) 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\(\-64\) / Int64\(59\) 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 - 64 / 59 AS col2, COUNT ( * ) col2 query I rowsort label-4035 @@ -22672,7 +22672,7 @@ SELECT 88 + 42 + - 77 - - CAST ( - ( - 90 ) AS INTEGER ) * - + 36 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \- 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 "Int64\(49\) \- 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 DISTINCT + 49 - 43 AS col1, COUNT ( * ) col1 query II rowsort label-4319 @@ -22949,7 +22949,7 @@ SELECT ALL 62 + 57 / - - 60 AS col1 # Datafusion - Expected - 52 # Datafusion - Expected - 1 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(52\) 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\(52\) 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 ( * ) * + 52 AS col1, + COUNT ( * ) AS col1, + 65 col1 query II rowsort label-4371 @@ -24076,7 +24076,7 @@ SELECT ALL - ( - 54 ) / 91 * - + 19 # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + COUNT ( * ) AS col1, COUNT ( * ) AS col1 query I rowsort @@ -26764,7 +26764,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 101 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(14\) / \(\- Int64\(38\)\) \+ count\(Int64\(1\)\) AS count\(\*\) 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\(99\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(14\) / \(\- Int64\(38\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 99 + + COUNT ( * ) - + + 14 / - + ( + 38 ) + COUNT ( * ) AS col2, + 96 AS col2 query I rowsort @@ -29948,7 +29948,7 @@ SELECT DISTINCT 32 col0 # Datafusion - Expected - -2592 # Datafusion - Expected - 8624 # Datafusion - Expected - 1452 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \* Int64\(88\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 and "Int64\(\-22\) \* Int64\(\-66\) 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\(98\) \* Int64\(88\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 and "Int64\(\-22\) \* Int64\(\-66\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 72 * - + MAX ( DISTINCT 36 ) AS col0, + 98 * + 88 * + COUNT ( * ) AS col1, - 22 * + - 66 col1 query I rowsort @@ -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 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\. 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 @@ -32936,7 +32936,7 @@ SELECT ( 99 ) + 9 * + - ( - + 95 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -75 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(70\)\) \- 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 "\(\- Int64\(70\)\) \- 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 - + 70 - + 5 AS col1, COUNT ( * ) AS col1 query I rowsort label-6274 @@ -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 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\. SELECT - - 7 / 18 + + - CAST ( - 63 AS INTEGER ) + - 22 / + COUNT ( * ) + + 20 * + 64 AS col2, COUNT ( * ) AS col2 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_38.slt b/data/sqlite/random/expr/slt_good_38.slt index 92664da..49f3499 100644 --- a/data/sqlite/random/expr/slt_good_38.slt +++ b/data/sqlite/random/expr/slt_good_38.slt @@ -1070,7 +1070,7 @@ SELECT 52 - 35 + - 27 # 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 "Int64\(40\) 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\) 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 AS col2, COUNT ( * ) AS col2 query II rowsort @@ -1452,7 +1452,7 @@ SELECT ALL 37 / + - 97, - 47 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 "\(\- Int64\(\-16\)\) 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\(\-16\)\) 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 + ( - - 16 ) AS col1, + COUNT ( * ) AS col1 query I rowsort @@ -3356,7 +3356,7 @@ SELECT + 64 * - 99 + 67 + - 65 * + NULLIF ( - COALESCE ( + 33, + - 86 - - - 6 + # 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 "count\(Int64\(1\)\) AS count\(\*\) 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\(\*\) )?AS col0" at position 0 and "Int64\(3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) col0, 3 AS col0 query I rowsort label-632 @@ -4859,7 +4859,7 @@ SELECT ALL MIN ( + - 81 ) + - 48 - + 2 AS col1 # 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 "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-27\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* coalesce\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\), count\(\(\- Int64\(\-50\)\)\) \- Int64\(74\)\) / 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 "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-27\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* coalesce\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\), count\(\(\- Int64\(\-50\)\)\) \- Int64\(74\)\) / Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * - 27 / COUNT ( * ) col0, COUNT ( * ) * COALESCE ( - + ( - COUNT ( * ) ), COUNT ( - - 50 ) - + 74 ) / 83 col0 query I rowsort @@ -5898,7 +5898,7 @@ SELECT + 20 AS col1, + 75 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -28 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-28\) AS col0" at position 0 and "Int64\(80\) / Int64\(9\) \+ 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\(\-28\) AS col0" at position 0 and "Int64\(80\) / Int64\(9\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 28 col0, ( + 80 ) / + 9 + COUNT ( * ) AS col0 query I rowsort label-1118 @@ -12678,7 +12678,7 @@ NULL # Datafusion - Expected - 1 # Datafusion - Expected - -4556 # Datafusion - Expected - 52 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(52\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col2, ( - 52 ) * 88 + - - ( 20 ) AS col0, 52 AS col2 query I rowsort @@ -13077,7 +13077,7 @@ SELECT ALL 49 - - 61 AS col2, 34 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2970 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-66\)\) \* Int64\(45\) 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\(\-66\)\) \* Int64\(45\) 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 ( - - 66 ) * + + 45 AS col0, COUNT ( * ) AS col0 query I rowsort label-2492 @@ -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 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\. 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 @@ -17940,7 +17940,7 @@ SELECT + COUNT ( * ) + + - 70 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -16 -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\(69\) \+ sum\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(69\) \+ sum\(Int64\(\-85\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col2, + 69 + SUM ( - 85 ) AS col2 query I rowsort @@ -18555,7 +18555,7 @@ SELECT ALL + ( - - 59 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 6 -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\) AS col1" at position 1 have the same name\. Consider aliasing \("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\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col1, 6 AS col1 query I rowsort @@ -20872,7 +20872,7 @@ SELECT DISTINCT 53 + + - CASE + SUM ( ALL - 64 ) WHEN - 64 THEN 1 * - + 81 * - + # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - -1837 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT Int64\(85\)\) AS col2" at position 0 and "Int64\(\-72\) \- Int64\(98\) \* 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 "min\(DISTINCT Int64\(85\)\) AS col2" at position 0 and "Int64\(\-72\) \- Int64\(98\) \* Int64\(18\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MIN ( DISTINCT + 85 ) AS col2, - 72 - 98 * 18 - + COUNT ( * ) AS col2 query I rowsort @@ -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 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\. 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 @@ -25144,7 +25144,7 @@ SELECT ( ( - COALESCE ( 61, - 76 * 76 ) ) ) AS col1, + 96 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -671 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \* Int64\(\-14\) \+ count\(Int64\(1\)\) AS count\(\*\) 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\(48\) \* Int64\(\-14\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 48 * - 14 + COUNT ( * ) AS col0, 89 AS col0 query I rowsort label-4781 @@ -25204,7 +25204,7 @@ SELECT DISTINCT - + 94 * - - ( - 74 ) + + ( + + 38 ) AS col1 # 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\(\-48\) 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\(\-48\) 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 - 48 AS col1, COUNT ( * ) col1 query I rowsort @@ -26127,7 +26127,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 335 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) \* count\(Int64\(1\)\) AS count\(\*\) \+ coalesce\(\(\- Int64\(\-37\)\), Int64\(43\)\) \+ nullif\(\(\- Int64\(19\)\), max\(DISTINCT Int64\(66\)\) \+ Int64\(25\)\) \* \(\- Int64\(15\)\) \+ 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 "Int64\(12\) \* count\(Int64\(1\)\) AS count\(\*\) \+ coalesce\(\(\- Int64\(\-37\)\), Int64\(43\)\) \+ nullif\(\(\- Int64\(19\)\), max\(DISTINCT Int64\(66\)\) \+ Int64\(25\)\) \* \(\- Int64\(15\)\) \+ 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 12 * + + COUNT ( * ) + COALESCE ( - - 37, 43 ) + + NULLIF ( - + ( 19 ), MAX ( DISTINCT + + 66 ) + + + 25 ) * - + 15 + + COUNT ( * ) AS col1, + ( COUNT ( * ) ) col1 query I rowsort @@ -27076,7 +27076,7 @@ SELECT ALL - ( + 31 ) 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 "count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, + ( 1 ) AS col0 query I rowsort @@ -27458,7 +27458,7 @@ SELECT - 54 * - 88 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -51 -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\(\-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\(\*\) )?AS col0" at position 0 and "Int64\(\-51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col0, - 51 AS col0 query I rowsort label-5224 @@ -27632,7 +27632,7 @@ SELECT DISTINCT 71 col1 # 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 "Int64\(22\) 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\(22\) 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 22 AS col0, + COUNT ( * ) AS col0 query I rowsort label-5257 @@ -32824,7 +32824,7 @@ SELECT 98, COUNT ( * ) AS col1 # 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 "Int64\(\-35\) 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\(\-35\) 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 - 35 AS col0, COUNT ( * ) AS col0 query I rowsort label-6245 @@ -33910,7 +33910,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -166250 -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\) \* \(\- CASE Int64\(93\) WHEN \(\- Int64\(26\)\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) ELSE \(\- coalesce\(Int64\(\-95\), Int64\(50\), Int64\(19\) \+ Int64\(62\)\)\) \* Int64\(50\) 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\(\*\) )?AS col1" at position 0 and "Int64\(35\) \* \(\- CASE Int64\(93\) WHEN \(\- Int64\(26\)\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) ELSE \(\- coalesce\(Int64\(\-95\), Int64\(50\), Int64\(19\) \+ Int64\(62\)\)\) \* Int64\(50\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, + 35 * - CASE 93 WHEN - + 26 THEN - COUNT ( * ) ELSE - COALESCE ( + - 95, 50, + 19 + + 62 ) * + + 50 END AS col1 # Datafusion - Types were automatically converted from: @@ -34089,7 +34089,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- max\(Int64\(75\)\)\)\) 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\(Int64\(75\)\)\)\) 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 - - MAX ( 75 ) AS col1, COUNT ( * ) AS col1 query I rowsort @@ -34896,7 +34896,7 @@ SELECT ALL - 26 - 95 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \* count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(86\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 86 * COUNT ( * ) AS col1, 96 AS col1 query I rowsort @@ -39107,7 +39107,7 @@ SELECT - 96 * - CAST ( + - 57 AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 787 -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\(79\) \+ Int64\(12\) \* coalesce\(Int64\(59\), Int64\(94\) \* \(\- \(\- Int64\(\-10\)\)\) \* 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\(79\) \+ Int64\(12\) \* coalesce\(Int64\(59\), Int64\(94\) \* \(\- \(\- Int64\(\-10\)\)\) \* count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( COUNT ( * ) ) AS col1, + 79 + + 12 * + COALESCE ( 59, + 94 * - - ( - 10 ) * COUNT ( * ) ) col1 query I rowsort label-7448 @@ -40940,7 +40940,7 @@ SELECT 38 + + 37 AS col0 # 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 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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 COUNT ( * ) AS col1, - 74 col1 query II rowsort @@ -42128,7 +42128,7 @@ SELECT DISTINCT - 94 * + 21 # 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\(83\) 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\(83\) 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 + 83 AS col1, COUNT ( * ) AS col1 query I rowsort label-8024 @@ -46220,7 +46220,7 @@ SELECT - MIN ( + 73 ) + COUNT ( ALL - ( CAST ( NULL AS INTEGER ) ) ) - - 85 AS c # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) 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\(58\) 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 + 58 AS col0, COUNT ( * ) AS col0 query I rowsort label-8806 @@ -51308,7 +51308,7 @@ SELECT ( 45 ) * - 92 + - 62 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -54 -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\(\-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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(\-54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, - 54 AS col1 query I rowsort label-9775 diff --git a/data/sqlite/random/expr/slt_good_39.slt b/data/sqlite/random/expr/slt_good_39.slt index d1d337d..c55d2e2 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 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\. 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 @@ -3811,7 +3811,7 @@ SELECT SUM ( ALL - 13 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -2624 -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\(32\) \* 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 "Int64\(32\) \* Int64\(\-82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, 32 * - 82 AS col1 query I rowsort label-726 @@ -3902,7 +3902,7 @@ SELECT 59 + + MIN ( + 47 ) - + 31 * 44 * 47 * - + COUNT ( * ) # 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 "Int64\(9\) / Int64\(\-13\) \- 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\(\-42\) AS col0" at position 0 and "Int64\(9\) / Int64\(\-13\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 42 AS col0, + ( + 9 ) / - 13 - + COUNT ( * ) col0 # Datafusion - Datafusion expected results: @@ -4150,7 +4150,7 @@ SELECT ALL - - 50 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 96 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, 96 AS col2 query I rowsort @@ -5701,7 +5701,7 @@ SELECT + NULLIF ( + + 61, - + 74 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - -1296 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- Int64\(\-58\)\), Int64\(\-20\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(57\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(59\) \* 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 "nullif\(\(\- Int64\(\-58\)\), Int64\(\-20\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(57\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(59\) \* Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + NULLIF ( - - 58, - 20 ) * COUNT ( * ) AS col1, 57 * - COUNT ( * ) - + ( 59 ) * 21 AS col1 query I rowsort label-1084 @@ -6816,7 +6816,7 @@ SELECT ALL + 48 * 48 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -99 -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\) \+ \(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(\-58\) \+ \(\- Int64\(41\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) col0, - 58 + - ( 41 ) AS col0 query I rowsort label-1297 @@ -10802,7 +10802,7 @@ SELECT 39 + + 48 * + - 50 + - 13 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1914 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(87\)\) \* nullif\(Int64\(\-22\), \(\- Int64\(\-50\)\)\) AS col0" at position 0 and "Int64\(54\) \+ Int64\(15\) \+ Int64\(\-37\) \* 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\(87\)\) \* nullif\(Int64\(\-22\), \(\- Int64\(\-50\)\)\) AS col0" at position 0 and "Int64\(54\) \+ Int64\(15\) \+ Int64\(\-37\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - ( 87 ) * NULLIF ( - 22, - - 50 ) AS col0, 54 + + + 15 + - 37 * COUNT ( * ) AS col0 query I rowsort @@ -14476,7 +14476,7 @@ SELECT ALL 47 AS col0, + 75 * - 62 * + 55 # 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 Float64\)\) \* 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "\(\- CAST\(NULL AS Float64\)\) \* Int64\(\-37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, - CAST ( NULL AS FLOAT8 ) * - 37 AS col1 query II 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 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\. 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 @@ -31543,7 +31543,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) 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\(41\) 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 + 41 AS col2, COUNT ( * ) AS col2 query I rowsort label-6015 @@ -32724,7 +32724,7 @@ SELECT ALL 7 * - + 3 + + COUNT ( * ) + - ( 96 ) + + - 63 + + + 41 AS col0 # 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 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, 56 AS col1 query I rowsort label-6237 @@ -33927,7 +33927,7 @@ SELECT 74 + - - 82 - - 17 # Datafusion - Datafusion expected results: # Datafusion - Expected - -75 # Datafusion - Expected - 1 -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 "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\(75\) / \(\- 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 DISTINCT 75 / - COUNT ( * ) AS col0, ( + COUNT ( * ) ) AS col0 query I rowsort @@ -34537,7 +34537,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 93 -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\(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\(Int64\(1\)\) (AS count\(\*\) )?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 + COUNT ( * ) AS col2, 93 AS col2 query I rowsort label-6583 @@ -38967,7 +38967,7 @@ SELECT - CASE COUNT ( * ) WHEN + + 85 THEN NULL WHEN 71 - + 37 * + + 20 + - 76 T # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col0, 89 AS col0 query I rowsort label-7434 @@ -39354,7 +39354,7 @@ SELECT - COUNT ( * ) * + MAX ( + + 15 ) # Datafusion - Expected - -165 # Datafusion - Expected - 18 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \+ Int64\(8\) \* Int64\(\-21\) 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 "Int64\(3\) \+ Int64\(8\) \* Int64\(\-21\) 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 ALL 3 + 8 * - 21 AS col2, 18, COUNT ( * ) AS col2 query II rowsort @@ -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 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\. SELECT - CAST ( NULL AS INTEGER ) AS col0, ( - ( + COALESCE ( 94, + - COUNT ( * ) ) ) ) + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: @@ -40046,7 +40046,7 @@ SELECT ALL ( - 83 ) + - 77 # 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\(Int64\(1\)\) AS count\(\*\) / 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, COUNT ( * ) / - 81 AS col2 query II rowsort @@ -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 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\. SELECT DISTINCT - NULLIF ( 26, CAST ( + COUNT ( * ) AS INTEGER ) ) * - COUNT ( * ) + SUM ( DISTINCT + 96 ) AS col1, + 48 AS col1, 11 col0 query II rowsort label-9055 @@ -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 Int32\) \* 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 @@ -50862,7 +50862,7 @@ SELECT 95 * 36 - + 22 + + 94 * 94 # Datafusion - Datafusion expected results: # Datafusion - Expected - 600 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) \* Int64\(15\) \* count\(Int64\(1\)\) AS count\(\*\) 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\(40\) \* Int64\(15\) \* count\(Int64\(1\)\) (AS count\(\*\) )?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 40 * 15 * + COUNT ( * ) AS col1, + 29 AS col1 query II rowsort diff --git a/data/sqlite/random/expr/slt_good_4.slt b/data/sqlite/random/expr/slt_good_4.slt index cc73b2f..6d0eff6 100644 --- a/data/sqlite/random/expr/slt_good_4.slt +++ b/data/sqlite/random/expr/slt_good_4.slt @@ -1949,7 +1949,7 @@ SELECT ALL - 19 + + 47 + 58 # Datafusion - Datafusion expected results: # Datafusion - Expected - 115 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-29\)\) \+ Int64\(85\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "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\(\-29\)\) \+ Int64\(85\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( - 29 ) + 85 + + COUNT ( * ) AS col2, ( + 32 ) AS col2 query I rowsort @@ -2604,7 +2604,7 @@ SELECT ALL - + 93 - 41 - + + 8 * + 77 * + - 36 # 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 "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( + COUNT ( * ) ) AS col1, - COUNT ( * ) AS col1 query I rowsort label-486 @@ -3666,7 +3666,7 @@ SELECT 27 - 90 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) 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\(63\) 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 63 AS col0, COUNT ( * ) AS col0 query I rowsort label-685 @@ -3798,7 +3798,7 @@ SELECT ALL - 48 * 20 * ( + 20 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) \+ count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(93\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 93 + + COUNT ( * ) AS col1, + 99 AS col1 query I rowsort label-710 @@ -8259,7 +8259,7 @@ SELECT - + MAX ( + + 37 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -112346 -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\(92\) \* CASE Int64\(26\) WHEN \(\- Int64\(\-93\)\) THEN \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) WHEN Int64\(88\) THEN Int64\(\-43\) WHEN Int64\(25\) THEN NULL ELSE Int64\(62\) \+ \(\- Int64\(36\)\) END \* Int64\(\-47\) \+ max\(DISTINCT 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(92\) \* CASE Int64\(26\) WHEN \(\- Int64\(\-93\)\) THEN \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) WHEN Int64\(88\) THEN Int64\(\-43\) WHEN Int64\(25\) THEN NULL ELSE Int64\(62\) \+ \(\- Int64\(36\)\) END \* Int64\(\-47\) \+ max\(DISTINCT Int64\(78\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col0, + 92 * + + CASE + 26 WHEN - - 93 THEN + ( - - COUNT ( * ) ) WHEN + 88 THEN - 43 WHEN + + 25 THEN NULL ELSE + 62 + - ( + 36 ) END * - 47 + MAX ( DISTINCT 78 ) AS col0 query I rowsort label-1561 @@ -9484,7 +9484,7 @@ SELECT + - 87 - 57 / + + 70 AS col0 # 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 col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-56\) \* 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 "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-56\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, COUNT ( * ) * - 56 * + + COUNT ( * ) AS col2 query I rowsort label-1793 @@ -9945,7 +9945,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 "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 32 AS col0, COUNT ( * ) col0 query I rowsort @@ -9956,7 +9956,7 @@ SELECT ALL - + 79 * - 78 # 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 "\(\- max\(Int64\(\-3\)\)\) / min\(Int64\(53\)\) \* CASE \(\- Int64\(\-47\)\) WHEN \(\- Int64\(13\)\) THEN avg\(\(\- nullif\(Int64\(1\), nullif\(Int64\(\-69\), Int64\(37\) \+ Int64\(95\) \+ Int64\(\-77\)\)\)\)\) ELSE NULL END \* Int64\(\-92\) \- Int64\(65\) \+ Int64\(\-51\) \* Int64\(\-61\) \* Int64\(37\) \- 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\(\-55\) AS col1" at position 0 and "\(\- max\(Int64\(\-3\)\)\) / min\(Int64\(53\)\) \* CASE \(\- Int64\(\-47\)\) WHEN \(\- Int64\(13\)\) THEN avg\(\(\- nullif\(Int64\(1\), nullif\(Int64\(\-69\), Int64\(37\) \+ Int64\(95\) \+ Int64\(\-77\)\)\)\)\) ELSE NULL END \* Int64\(\-92\) \- Int64\(65\) \+ Int64\(\-51\) \* Int64\(\-61\) \* Int64\(37\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 55 AS col1, - MAX ( ALL - 3 ) / MIN ( ALL + 53 ) * + CASE - - 47 WHEN - + 13 THEN AVG ( ALL - NULLIF ( 1, + + NULLIF ( - 69, 37 + 95 + - 77 ) ) ) ELSE NULL END * - 92 - 65 + - 51 * - 61 * 37 - COUNT ( * ) col1 query I rowsort label-1882 @@ -10621,7 +10621,7 @@ SELECT + 11 - + 21 AS col0 # 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 col1" at position 0 and "\(\- max\(DISTINCT coalesce\(\(\- Int64\(\-57\)\), \(\- Int64\(\-33\)\), Int64\(38\)\)\)\) \+ 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 "\(\- max\(DISTINCT coalesce\(\(\- Int64\(\-57\)\), \(\- Int64\(\-33\)\), Int64\(38\)\)\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - ( COUNT ( * ) ) AS col1, - MAX ( DISTINCT COALESCE ( ( - - 57 ), - ( + - 33 ), 38 ) ) + + COUNT ( * ) AS col1 query I rowsort @@ -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 Int32\)\) 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 @@ -14035,7 +14035,7 @@ SELECT 83 AS col0, - COALESCE ( + 81, 27 ) AS col2 # 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 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\(18\) 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 18 col2, COUNT ( * ) AS col2 query I rowsort label-2658 @@ -15445,7 +15445,7 @@ SELECT + COALESCE ( + COUNT ( * ), + 71 + + 5, - 62 * + COUNT ( * ) ) * 84 AS co # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 105 -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\(47\) \+ 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\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(47\) \+ Int64\(58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, 47 + 58 AS col1 query I rowsort label-2930 @@ -16876,7 +16876,7 @@ SELECT + - ( + 65 ) - + - SUM ( - 84 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 816 # Datafusion - Expected - -4249 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \* Int64\(24\) AS col2" at position 0 and "coalesce\(Int64\(75\), Int64\(\-14\)\) \+ Int64\(76\) \+ Int64\(88\) \* \(\- Int64\(50\)\) / 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\(34\) \* Int64\(24\) AS col2" at position 0 and "coalesce\(Int64\(75\), Int64\(\-14\)\) \+ Int64\(76\) \+ Int64\(88\) \* \(\- Int64\(50\)\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 34 * 24 col2, COALESCE ( + 75, - 14 ) + 76 + + 88 * - ( + 50 ) / COUNT ( * ) AS col2 query I rowsort label-3205 @@ -18279,7 +18279,7 @@ SELECT ALL - 96 * + 48 * - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) AS col2" at position 0 and "Int64\(22\) \* 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\(52\) AS col2" at position 0 and "Int64\(22\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 52 AS col2, + 22 * + COUNT ( * ) AS col2 query I rowsort @@ -18856,7 +18856,7 @@ SELECT + COUNT ( ALL + ( + + 24 ) ) + - + 61 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 101 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 ALL + COUNT ( * ) AS col0, 50 + 51 col0 query I rowsort label-3577 @@ -19509,7 +19509,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-51\)\) \+ Int64\(\-3\) AS col1" at position 0 and "Int64\(10\) / \(\- Int64\(\-78\)\) \+ Int64\(78\) \+ 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\(\-51\)\) \+ Int64\(\-3\) AS col1" at position 0 and "Int64\(10\) / \(\- Int64\(\-78\)\) \+ Int64\(78\) \+ 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 - - 51 + + - 3 AS col1, 10 / - - 78 + 78 + + COUNT ( * ) + COUNT ( * ) AS col1 query II rowsort label-3702 @@ -20028,7 +20028,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 11 -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\(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\(\*\) )?AS col2" at position 0 and "Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col2, 11 AS col2 query I rowsort @@ -22424,7 +22424,7 @@ SELECT 21 * - - ( COUNT ( 67 ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -3196 -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\(\-94\) \* \(\- 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\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(\-94\) \* \(\- Int64\(\-34\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, - 94 * - - 34 AS col2 query I rowsort label-4258 @@ -24475,7 +24475,7 @@ SELECT + ( COUNT ( * ) ) * ( 81 ) + ( + + 87 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3315 # Datafusion - Expected - 79712 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \* Int64\(39\) AS col0" at position 0 and "Int64\(\-22\) \+ Int64\(4\) \+ Int64\(67\) \* Int64\(\-70\) \* 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 "Int64\(85\) \* Int64\(39\) AS col0" at position 0 and "Int64\(\-22\) \+ Int64\(4\) \+ Int64\(67\) \* Int64\(\-70\) \* Int64\(\-17\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 85 * 39 AS col0, ( + - 22 ) + + 4 + + + 67 * - 70 * - 17 / COUNT ( * ) AS col0 query I rowsort label-4656 @@ -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 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\. SELECT ALL ( + 71 ) * - CAST ( NULL AS INTEGER ) col2, COUNT ( * ) AS col2 query I rowsort label-4741 @@ -25042,7 +25042,7 @@ SELECT + 63 + + 48 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 162 -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\(69\) \+ 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\(\*\) )?AS col1" at position 0 and "Int64\(69\) \+ Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) col1, 69 + 93 AS col1 query II rowsort @@ -28903,7 +28903,7 @@ SELECT + - 6 + + 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 "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 + 53 AS col0, COUNT ( * ) AS col0 query I rowsort @@ -29288,7 +29288,7 @@ SELECT ALL + 85 + - 46 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2131 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) \+ Int64\(31\) \* Int64\(69\) 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\(\-8\) \+ Int64\(31\) \* Int64\(69\) 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 - 8 + + 31 * 69 AS col1, COUNT ( * ) AS col1 query I rowsort label-5567 @@ -31386,7 +31386,7 @@ SELECT + 59 - 18 + - COUNT ( DISTINCT - + 77 ) + - - NULLIF ( 35, + COUNT ( 66 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 4919 -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\(91\) \* Int64\(53\) \+ 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(91\) \* Int64\(53\) \+ Int64\(96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) col1, 91 * + ( + + 53 ) + 96 AS col1 query I rowsort label-5963 @@ -32243,7 +32243,7 @@ SELECT DISTINCT - + ( 86 ) + - 72 + - 72 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 "CASE Int64\(94\) WHEN count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-30\) THEN min\(Int64\(5\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "CASE Int64\(94\) WHEN count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-30\) THEN min\(Int64\(5\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, + CASE ( + 94 ) WHEN + COUNT ( * ) + - 30 THEN + MIN ( 5 ) WHEN COUNT ( * ) THEN NULL END AS col1 query I rowsort label-6130 @@ -34840,7 +34840,7 @@ SELECT - + 37 + + + ( COALESCE ( 26, - - 18 ) ), 64 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 182 -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 "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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(86\) \+ Int64\(96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) + COUNT ( * ) AS col2, + 86 + + 96 AS col2 query I rowsort @@ -36486,7 +36486,7 @@ SELECT - COUNT ( + 61 ) * - 67 AS col1 # 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\(8\) / Int64\(\-94\) 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\(8\) / Int64\(\-94\) 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 8 / + - 94 AS col2, COUNT ( * ) AS col2 query I rowsort label-6929 @@ -38029,7 +38029,7 @@ SELECT ALL COUNT ( - 90 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 4 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 COUNT ( * ) AS col0, + ( 4 ) AS col0 query I rowsort @@ -38867,7 +38867,7 @@ SELECT ALL 35 + + 0 + - + 49 * - - COUNT ( * ) + + 67 # 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 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\(4\) 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 + 4 AS col0, COUNT ( * ) AS col0 query I rowsort label-7386 @@ -38933,7 +38933,7 @@ SELECT ALL - COALESCE ( 1, - - CAST ( NULL AS INTEGER ) - + CASE + COUNT ( * ) W # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-15\) AS col0" at position 0 and "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\(\-15\) AS col0" at position 0 and "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 - 15 AS col0, + 50 + - 77 * COUNT ( * ) AS col0 query II 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 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\. 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 Int32\) \* 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 @@ -43794,7 +43794,7 @@ SELECT 54 * + + COUNT ( - - 63 ) AS col0 # 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 "Int64\(77\) 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\(77\) 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 77 AS col1, COUNT ( * ) AS col1 query I rowsort label-8327 diff --git a/data/sqlite/random/expr/slt_good_40.slt b/data/sqlite/random/expr/slt_good_40.slt index ed425fc..b91e838 100644 --- a/data/sqlite/random/expr/slt_good_40.slt +++ b/data/sqlite/random/expr/slt_good_40.slt @@ -526,7 +526,7 @@ SELECT 29 * - 83 - + 94 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 21 -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\(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\(\*\) )?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 + COUNT ( * ) col1, + 21 AS col1 query II rowsort label-91 @@ -3844,7 +3844,7 @@ SELECT DISTINCT 99 * + - ( - 20 ) * - 26 / COUNT ( * ) + - ( - COUNT ( * ) ) / + # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(\-77\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) 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 "\(\- max\(Int64\(\-77\)\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?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 + - ( + MAX ( + - 77 ) ) + + + COUNT ( * ) AS col1, + COUNT ( - 39 ) AS col1 query II rowsort @@ -5022,7 +5022,7 @@ SELECT ALL 11 AS col0, + 48 + 43 + - - 90 * + 39 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 82 -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\(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\(\*\) )?AS col2" at position 0 and "Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col2, + 82 AS col2 # Datafusion - Types were automatically converted from: @@ -5195,7 +5195,7 @@ SELECT - 17 * - - 57 * - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -21 # Datafusion - Expected - -65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-21\)\) AS col2" at position 0 and "Int64\(\-65\) \* 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\(\-21\)\) AS col2" at position 0 and "Int64\(\-65\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + MIN ( - 21 ) AS col2, - 65 * + COUNT ( * ) AS col2 query I rowsort label-980 @@ -7093,7 +7093,7 @@ SELECT + MIN ( ALL - 49 ) / 59 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -33 -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\(\-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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(\-33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, - 33 AS col1 query I rowsort label-1341 @@ -8890,7 +8890,7 @@ SELECT ALL COUNT ( * ) * 3, - 58 AS col1 # 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\) \* count\(Int64\(1\)\) AS count\(\*\) 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\(\-87\) \* count\(Int64\(1\)\) (AS count\(\*\) )?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 - 87 * + + COUNT ( * ) AS col1, 85 AS col1 query I rowsort label-1680 @@ -9135,7 +9135,7 @@ SELECT DISTINCT + 64 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77805 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) \* Int64\(95\) \* Int64\(\-21\) \* count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(\-39\) \* Int64\(95\) \* Int64\(\-21\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(\-77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 39 * 95 * - 21 * + COUNT ( * ) col0, - 77 AS col0 query I rowsort @@ -12387,7 +12387,7 @@ SELECT ALL - 65 - - + COALESCE ( + 35, + ( 73 ) / 55 * 53 ) - - 8 * 75 # 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 "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\(55\) 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 55 col2, COUNT ( * ) AS col2 query I rowsort @@ -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 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\. SELECT ALL + 48 + CAST ( NULL AS INTEGER ) / - 45 AS col0, 71 + - - 68 + - 88 + + - 95 * + COUNT ( * ) AS col0 query I rowsort label-2803 @@ -16683,7 +16683,7 @@ SELECT ALL ( 33 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 81 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) col0, + 81 AS col0 query I rowsort @@ -17722,7 +17722,7 @@ SELECT ALL + 1 * + + 25 + COUNT ( 65 ) - - 77 # 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 col2" at position 0 and "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(5\) \+ Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, 5 + + 20 AS col2 query II rowsort @@ -27681,7 +27681,7 @@ SELECT DISTINCT 21 * - ( - COUNT ( * ) ) * - - COUNT ( * ) * + 35 * 36 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3003 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) \* Int64\(\-54\) \+ min\(DISTINCT Int64\(\-52\)\) \+ Int64\(81\) \+ \(\- Int64\(63\)\) \+ count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(55\) \* Int64\(\-54\) \+ min\(DISTINCT Int64\(\-52\)\) \+ Int64\(81\) \+ \(\- Int64\(63\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?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 55 * - 54 + MIN ( DISTINCT - 52 ) + 81 + - + 63 + + + COUNT ( * ) AS col0, 66 col0 query II rowsort label-5258 @@ -27801,7 +27801,7 @@ SELECT + 51 * - 90 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 75 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(75\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) col0, 75 AS col0 query I rowsort @@ -39766,7 +39766,7 @@ SELECT DISTINCT ( - 59 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -153272 -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\(92\) \* \(\- count\(\(\- Int64\(5\)\)\)\) \* Int64\(17\) \* 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 "Int64\(92\) \* \(\- count\(\(\- Int64\(5\)\)\)\) \* Int64\(17\) \* Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col2, + 92 * - COUNT ( - + 5 ) * 17 * 98 AS col2 query I rowsort label-7563 @@ -40609,7 +40609,7 @@ SELECT + 6 + - 34 # Datafusion - Datafusion expected results: # Datafusion - Expected - -69 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- min\(Int64\(\-69\)\)\)\) 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 "\(\- \(\- min\(Int64\(\-69\)\)\)\) 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 - ( - MIN ( ALL - 69 ) ) col1, + COUNT ( * ) col1 query I rowsort label-7724 @@ -41760,7 +41760,7 @@ SELECT 25 + - + 28 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 328 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col2" at position 0 and "Int64\(30\) \* Int64\(8\) \+ 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\(63\) AS col2" at position 0 and "Int64\(30\) \* Int64\(8\) \+ Int64\(88\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 63 AS col2, 30 * 8 + 88 * + + COUNT ( * ) AS col2 query I rowsort @@ -43010,7 +43010,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \+ count\(Int64\(1\)\) AS count\(\*\) 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\(9\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?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 + 9 + COUNT ( * ) AS col2, 77 AS col2 query I rowsort label-8181 @@ -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 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\. SELECT ALL - AVG ( + + CAST ( NULL AS INTEGER ) ) col2, + COUNT ( * ) AS col2 query I rowsort @@ -48749,7 +48749,7 @@ SELECT ALL + 53 - 81 AS col2 # Datafusion - Expected - -2162 # Datafusion - Expected - 1 # Datafusion - Expected - -184058 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) AS col2" at position 1 and "Int64\(87\) \* Int64\(\-23\) \* Int64\(92\) \+ Int64\(34\) \* 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 "Int64\(1\) AS col2" at position 1 and "Int64\(87\) \* Int64\(\-23\) \* Int64\(92\) \+ Int64\(34\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 47 * - 46 AS col1, 1 AS col2, + ( 87 ) * - 23 * + + 92 + 34 * COUNT ( * ) AS col2 query I rowsort label-9282 @@ -49008,7 +49008,7 @@ SELECT - 36 + - + 42 + + - 49 * 40 * - 52 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 240 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \* Int64\(40\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* 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 "Int64\(6\) \* Int64\(40\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(80\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 6 * + 40 AS col0, COUNT ( * ) * + 80 + COUNT ( * ) AS col0 query I rowsort label-9330 @@ -49366,7 +49366,7 @@ SELECT ALL ( COUNT ( DISTINCT + 12 ) ) - 25 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) 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\(41\) 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 41 AS col1, + COUNT ( * ) AS col1 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_41.slt b/data/sqlite/random/expr/slt_good_41.slt index c7037ca..da3cd3e 100644 --- a/data/sqlite/random/expr/slt_good_41.slt +++ b/data/sqlite/random/expr/slt_good_41.slt @@ -266,7 +266,7 @@ SELECT ALL COALESCE ( - - 72, - - 52 * + COALESCE ( + 52, + + 1 ) + - + 66 ) * 2 # 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 "Int64\(0\) \* \(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(0\) \* \(\- Int64\(\-97\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col2, + 0 * - - 97 AS col2 query I rowsort @@ -707,7 +707,7 @@ SELECT + COUNT ( DISTINCT - 54 ) AS col2 # Datafusion - Expected - 1200 # Datafusion - Expected - -6080 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(24\) AS col1" at position 0 and "Int64\(84\) \* 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\(50\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(24\) AS col1" at position 0 and "Int64\(84\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 50 * - - COUNT ( * ) * + 24 AS col1, + 76 * + + MAX ( - 80 ) AS col0, 84 * + COUNT ( * ) AS col1 query I rowsort label-127 @@ -5636,7 +5636,7 @@ SELECT ALL 45 + 93 - 14 * + 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - -6876 -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 "Int64\(77\) \* Int64\(\-90\) \- \(\- 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\(4\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(77\) \* Int64\(\-90\) \- \(\- Int64\(54\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 4 + + + COUNT ( * ) AS col0, 77 * - 90 - - + 54 AS col0 query I rowsort label-1068 @@ -5754,7 +5754,7 @@ SELECT ALL + 86 + 84 # 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\(34\) 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\(34\) 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 34 AS col1, COUNT ( * ) col1 query I rowsort label-1091 @@ -6381,7 +6381,7 @@ SELECT ALL 5 AS col1, + 24 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) 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 "Int64\(57\) 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 DISTINCT 57 AS col0, 61 * + COUNT ( * ) AS col0 query I rowsort @@ -8572,7 +8572,7 @@ SELECT ALL 49 * - + 61 + 38 # 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\(87\) / \(\- Int64\(30\)\) 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\(87\) / \(\- Int64\(30\)\) 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 87 / - ( + + 30 ) AS col1, COUNT ( * ) AS col1 query I rowsort @@ -10244,7 +10244,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 71 -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\(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 "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 ( + COUNT ( * ) ) AS col1, + 71 AS col1 query I rowsort label-1940 @@ -10612,7 +10612,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 43 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col0, 43 AS col0 query I rowsort @@ -16876,7 +16876,7 @@ SELECT ALL 44 / 87 * + MAX ( + 3 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \* count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(26\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 26 * COUNT ( * ) AS col2, 89 AS col2 query I rowsort label-3209 @@ -18886,7 +18886,7 @@ SELECT ALL - - COUNT ( * ), 77 * - 93 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -29 # Datafusion - Expected - -102 -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 "Int64\(1\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(73\) \+ Int64\(\-30\) \* 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\(\-28\) AS col2" at position 0 and "Int64\(1\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(73\) \+ Int64\(\-30\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( + COUNT ( * ) ) + - 28 col2, 1 + - COUNT ( * ) * 73 + + - 30 * COUNT ( * ) AS col2 query I rowsort label-3593 @@ -19299,7 +19299,7 @@ SELECT ( + COUNT ( * ) ) + - - 11 * ( - 88 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - 1 -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\(\*\) AS col0" at position 1 have the 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\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 81 AS col0, COUNT ( * ) AS col0 query I rowsort label-3674 @@ -19652,7 +19652,7 @@ SELECT + + 53 * 67 + - 87, 74 / + 7 AS col1 # 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 "\(\- CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(94\) THEN count\(DISTINCT Int64\(80\)\) \+ Int64\(22\) END\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "min\(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 "\(\- CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(94\) THEN count\(DISTINCT Int64\(80\)\) \+ Int64\(22\) END\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "min\(Int64\(88\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CASE - COUNT ( * ) WHEN + 94 THEN COUNT ( DISTINCT 80 ) + 22 END * + COUNT ( * ) AS col0, MIN ( 88 ) AS col0 query I rowsort @@ -23937,7 +23937,7 @@ NULL # Datafusion - Expected - NULL # Datafusion - Expected - 4988 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \* Int64\(86\) 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 "Int64\(58\) \* Int64\(86\) 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 - CAST ( NULL AS INTEGER ) * - - 76, 58 * 86 col2, + COUNT ( * ) AS col2 query I rowsort @@ -29743,7 +29743,7 @@ SELECT ALL MAX ( DISTINCT + 41 ) * - ( + 40 ) - 7 * - 31 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) 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\(74\) 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 74 col0, COUNT ( * ) AS col0 query I rowsort @@ -30299,7 +30299,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 129 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) / sum\(\(\- Int64\(74\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(87\) \- Int64\(82\) \+ \(\- nullif\(Int64\(\-17\), sum\(Int64\(\-99\)\)\)\) \+ \(\- Int64\(\-19\)\) \+ 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\(75\) / sum\(\(\- Int64\(74\)\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(87\) \- Int64\(82\) \+ \(\- nullif\(Int64\(\-17\), sum\(Int64\(\-99\)\)\)\) \+ \(\- Int64\(\-19\)\) \+ Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 75 / + SUM ( - + 74 ) * + COUNT ( * ) AS col1, 87 - 82 + - NULLIF ( + - 17, ( SUM ( ALL - 99 ) ) ) + - ( - 19 ) + 88 AS col1 query I rowsort label-5770 @@ -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 Int32\) 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 @@ -35790,7 +35790,7 @@ SELECT ALL ( - + COUNT ( ALL + ( - + 82 ) ) ) AS col0 # 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 "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 "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 - 29 AS col2, COUNT ( * ) AS col2 query II 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 Int32\)\) 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 @@ -41437,7 +41437,7 @@ SELECT - NULLIF ( 52, - - 13 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -99 -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\(\-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\(\*\) )?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 COUNT ( * ) AS col1, - 99 AS col1 query I rowsort label-7903 @@ -44500,7 +44500,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -70 -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\(\*\) \* Int64\(\-72\) \+ 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 "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-72\) \+ Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COUNT ( * ) AS col1, COUNT ( * ) * - 72 + + 2 AS col1 # Datafusion - Datafusion expected results: @@ -44984,7 +44984,7 @@ SELECT DISTINCT 87 AS col1, 74 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - -2739 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col0" at position 0 and "Int64\(37\) \* \(\- Int64\(74\)\) \- 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\) AS col0" at position 0 and "Int64\(37\) \* \(\- Int64\(74\)\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 6 AS col0, + 37 * - ( + 74 ) - + + COUNT ( * ) col0 query I rowsort @@ -48332,7 +48332,7 @@ SELECT ALL + COUNT ( * ) * - 50 * - - 28, 83 AS col2 # 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\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, 94 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..defd9e2 100644 --- a/data/sqlite/random/expr/slt_good_42.slt +++ b/data/sqlite/random/expr/slt_good_42.slt @@ -1184,7 +1184,7 @@ SELECT - 70 + + + SUM ( ALL + - 28 ), + MIN ( 38 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 50 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(50\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, + 50 AS col1 query I rowsort @@ -2108,7 +2108,7 @@ SELECT DISTINCT CAST ( - + 83 AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-61\), \(\- 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\(Int64\(\-61\), \(\- 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 DISTINCT COALESCE ( - 61, - COUNT ( * ) ) AS col2, + COUNT ( * ) AS col2 query I rowsort label-394 @@ -3540,7 +3540,7 @@ SELECT - 98 * - 53 * + 71 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -690 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \* Int64\(\-69\) 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\(10\) \* Int64\(\-69\) 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 10 * - 69 AS col0, COUNT ( * ) AS col0 query I rowsort label-668 @@ -3642,7 +3642,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \+ Int64\(28\) AS col2" at position 0 and "Int64\(\-47\) \* 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\(33\) \+ Int64\(28\) AS col2" at position 0 and "Int64\(\-47\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 33 + + + 28 AS col2, - 47 * + COUNT ( * ) AS col2 query I rowsort @@ -4865,7 +4865,7 @@ SELECT DISTINCT 73 * - 1 + - - 60 + - + 68 * - COUNT ( * ) * - 30 * - CAST ( 62 # Datafusion - Datafusion expected results: # Datafusion - Expected - 246 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) \* Int64\(\-9\) \+ Int64\(76\) \+ \(\- nullif\(\(\- Int64\(\-47\)\), Int64\(18\) \* Int64\(84\) / Int64\(46\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) 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\(\-24\) \* Int64\(\-9\) \+ Int64\(76\) \+ \(\- nullif\(\(\- Int64\(\-47\)\), Int64\(18\) \* Int64\(84\) / Int64\(46\)\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?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 + - 24 * - 9 + + 76 + - ( NULLIF ( - - 47, + 18 * + 84 / + 46 ) ) + + COUNT ( * ) AS col2, - 82 AS col2 query I rowsort label-919 @@ -9047,7 +9047,7 @@ SELECT DISTINCT + 53 + + ( + 86 ) AS col1, + COUNT ( * ) AS col2, - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col1" at position 0 and "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 "Int64\(59\) AS col1" at position 0 and "Int64\(\-46\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 59 AS col1, - 46 / + COUNT ( * ) col1 query I rowsort @@ -10786,7 +10786,7 @@ SELECT - 54 * + 66 # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - 4365 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(48\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-97\) \* max\(DISTINCT 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 "\(\- max\(Int64\(48\)\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(\-97\) \* max\(DISTINCT Int64\(\-45\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - ( + + MAX ( 48 ) ) + COUNT ( * ) AS col0, - 97 * + MAX ( DISTINCT - 45 ) AS col0 query II rowsort @@ -11110,7 +11110,7 @@ SELECT 56 + - 54 AS col0 # 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 "count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, 60 col1 query I rowsort label-2114 @@ -17711,7 +17711,7 @@ SELECT DISTINCT 78 AS col0, 69 * - + 49 + - + 47 - + COALESCE ( 5, - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -32 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 "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 - 32 AS col0, COUNT ( * ) col0 query II rowsort label-3382 @@ -20636,7 +20636,7 @@ SELECT DISTINCT 11 - + - 1 + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1792 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \* Int64\(64\) AS col0" at position 0 and "Int64\(97\) \+ 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\(28\) \* Int64\(64\) AS col0" at position 0 and "Int64\(97\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 28 * + 64 AS col0, 97 + + + COUNT ( * ) AS col0 query I rowsort label-3938 @@ -22583,7 +22583,7 @@ SELECT 57 * + 83 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-92\) \+ Int64\(8\) AS col2" at position 0 and "Int64\(16\) \+ 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 "count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-92\) \+ Int64\(8\) AS col2" at position 0 and "Int64\(16\) \+ Int64\(45\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) / - 92 + 8 AS col2, + ( + + 16 ) + 45 * + COUNT ( * ) AS col2 query I rowsort @@ -25752,7 +25752,7 @@ SELECT - COALESCE ( + COUNT ( * ), - + 24 / - 87 / - 8 + 16 ) # Datafusion - Expected - 1 # Datafusion - Expected - 1 # Datafusion - Expected - -80 -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\(94\) / 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(94\) / Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, 94 / + 52 AS col2, - ( + 80 ) query I rowsort @@ -28573,7 +28573,7 @@ SELECT DISTINCT + 76 AS col2, 7 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 "nullif\(\(\- Int64\(70\)\), Int64\(61\)\) / Int64\(\-54\) \+ Int64\(59\) \+ 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "nullif\(\(\- Int64\(70\)\), Int64\(61\)\) / Int64\(\-54\) \+ Int64\(59\) \+ Int64\(\-58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col0, + NULLIF ( - ( 70 ), + 61 ) / - 54 + + + 59 + + - 58 col0 query I rowsort label-5453 @@ -29603,7 +29603,7 @@ SELECT - 77 AS col1, + 63 # Datafusion - Expected - 44 # Datafusion - Expected - 1 # 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 "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\(44\) 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 + 44 AS col1, COUNT ( * ) AS col1, 34 + 49 + - CASE - 71 WHEN - 24 THEN NULL WHEN 55 THEN NULL WHEN 45 + - MIN ( - + 64 ) * + 40 * + - 72 THEN - ( 8 ) END / + COUNT ( * ) + ( + + 41 ) AS col1 query I rowsort label-5651 @@ -35123,7 +35123,7 @@ SELECT 42 * + 20 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) 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\) 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 21 AS col2, COUNT ( * ) AS col2 query I rowsort @@ -36616,7 +36616,7 @@ SELECT ALL + ( - - 31 ) + + 35 * + 82 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -58 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) 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\) 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 AS col1, + COUNT ( * ) AS col1 query I rowsort label-6999 @@ -42683,7 +42683,7 @@ SELECT DISTINCT 63 * COUNT ( * ) * + 24 # 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 "count\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "count\(Int64\(57\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col0, + COUNT ( + + 57 ) col0 query II rowsort label-8158 @@ -46757,7 +46757,7 @@ SELECT 1 * + 63 + + 39 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - 1404 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col1" at position 0 and "Int64\(26\) \* Int64\(54\) / 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\(15\) AS col1" at position 0 and "Int64\(26\) \* Int64\(54\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 15 AS col1, + 26 * + 54 / + COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: @@ -47057,7 +47057,7 @@ SELECT ALL + 44 + ( + 40 ) + + 67 # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - -1598 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) \+ Int64\(50\) AS col2" at position 0 and "Int64\(\-94\) \* Int64\(17\) \* 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\(44\) \+ Int64\(50\) AS col2" at position 0 and "Int64\(\-94\) \* Int64\(17\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + 44 + + 50 AS col2, - 94 * + 17 * COUNT ( * ) AS col2 query II rowsort label-8994 @@ -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 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\. SELECT ALL + CAST ( NULL AS INTEGER ) - + COUNT ( * ) AS col2, - NULLIF ( + 92, 57 + + - 7 ) * - - 47 AS col2 query I rowsort @@ -51017,7 +51017,7 @@ SELECT DISTINCT - CAST ( - 19 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -58 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) 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\(\-58\) 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 - 58 AS col0, COUNT ( * ) AS col0 query I rowsort label-9751 diff --git a/data/sqlite/random/expr/slt_good_43.slt b/data/sqlite/random/expr/slt_good_43.slt index d9cacd1..6c8f07e 100644 --- a/data/sqlite/random/expr/slt_good_43.slt +++ b/data/sqlite/random/expr/slt_good_43.slt @@ -1661,7 +1661,7 @@ SELECT - 49 / 38 # Datafusion - Datafusion expected results: # 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 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\(28\) 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 28 AS col0, COUNT ( * ) AS col0 query I rowsort label-319 @@ -2285,7 +2285,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 48 -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\(\*\)\) \* \(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(48\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col1, - COUNT ( * ) * - + 48 col1 query I rowsort @@ -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 Int32\) 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 @@ -3990,7 +3990,7 @@ SELECT ALL + 65 * COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 51 -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\) AS col1" at position 1 have the same name\. Consider aliasing \("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\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) col1, 51 AS col1 query I rowsort label-772 @@ -7626,7 +7626,7 @@ SELECT DISTINCT - 37 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 "\(\- 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\(\*\)\) 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 ( * ) AS col1, COUNT ( * ) AS col1 query I rowsort @@ -15070,7 +15070,7 @@ SELECT + SUM ( DISTINCT 27 ) AS col2 # 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\(\-48\) 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\(\-48\) 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 - 48 AS col1, COUNT ( * ) col1 query I rowsort label-2923 @@ -15364,7 +15364,7 @@ SELECT ALL - ( + 31 ) 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 "count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, + ( 1 ) AS col0 query I rowsort @@ -16283,7 +16283,7 @@ SELECT 1 + - + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- max\(Int64\(75\)\)\)\) 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\(Int64\(75\)\)\)\) 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 - - MAX ( 75 ) AS col1, COUNT ( * ) AS col1 query II rowsort @@ -16413,7 +16413,7 @@ SELECT ALL - 16 * - 86 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \* count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(86\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 86 * COUNT ( * ) AS col1, 96 AS col1 query I rowsort @@ -17501,7 +17501,7 @@ SELECT ALL + + 72 # 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 "nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* 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 "nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* 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 + NULLIF ( - COUNT ( * ), - - COUNT ( * ) * COUNT ( * ) ) col2, COUNT ( * ) AS col2 query I rowsort label-3392 @@ -19391,7 +19391,7 @@ SELECT ALL - - 50 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 96 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, 96 AS col2 query I rowsort label-3760 @@ -25526,7 +25526,7 @@ SELECT + 13 + - MIN ( ALL - 31 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -19 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) 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 "Int64\(\-19\) 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 DISTINCT - 19 AS col1, - COUNT ( * ) + COUNT ( * ) col1 query I rowsort label-4954 @@ -26191,7 +26191,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 21 -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\(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\(\*\) )?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 + COUNT ( * ) col1, + 21 AS col1 query II rowsort label-5083 @@ -26887,7 +26887,7 @@ SELECT 50 AS col2, 48 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 82 -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\(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\(\*\) )?AS col2" at position 0 and "Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col2, + 82 AS col2 query II rowsort label-5216 @@ -27154,7 +27154,7 @@ SELECT 69 - 55 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -33 -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\(\-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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(\-33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, - 33 AS col1 query I rowsort label-5268 @@ -27915,7 +27915,7 @@ NULL # 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 "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\(55\) 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 55 col2, COUNT ( * ) AS col2 query I rowsort label-5413 @@ -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 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\. SELECT ALL - AVG ( + + CAST ( NULL AS INTEGER ) ) col2, + COUNT ( * ) AS col2 query I rowsort @@ -34220,7 +34220,7 @@ SELECT + 67 AS col0, 26 AS col1 # 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\(34\) 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\(34\) 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 34 AS col1, COUNT ( * ) col1 query I rowsort @@ -34801,7 +34801,7 @@ SELECT ALL - ( 98 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 43 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col0, 43 AS col0 query I rowsort @@ -37349,7 +37349,7 @@ SELECT ALL - CAST ( + 16 AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) 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\(74\) 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 74 col0, COUNT ( * ) AS col0 query I rowsort label-7243 @@ -39457,7 +39457,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -70 -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\(\*\) \* Int64\(\-72\) \+ 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 "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-72\) \+ Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COUNT ( * ) AS col1, COUNT ( * ) * - 72 + + 2 AS col1 query I rowsort label-7651 @@ -39978,7 +39978,7 @@ SELECT DISTINCT + ( + 99 ) # 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\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, 94 AS col1 query I rowsort label-7753 @@ -40806,7 +40806,7 @@ SELECT ALL - 42 * 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-61\), \(\- 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\(Int64\(\-61\), \(\- 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 DISTINCT COALESCE ( - 61, - COUNT ( * ) ) AS col2, + COUNT ( * ) AS col2 query I rowsort label-7914 @@ -41761,7 +41761,7 @@ SELECT DISTINCT + 18 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col1" at position 0 and "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 "Int64\(59\) AS col1" at position 0 and "Int64\(\-46\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 59 AS col1, - 46 / + COUNT ( * ) col1 query I rowsort @@ -45348,7 +45348,7 @@ SELECT DISTINCT 40 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) 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\) 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 21 AS col2, COUNT ( * ) AS col2 query I rowsort @@ -45552,7 +45552,7 @@ SELECT + 56 * 78 + + 44 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -58 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) 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\) 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 AS col1, + COUNT ( * ) AS col1 query I rowsort label-8836 @@ -47365,7 +47365,7 @@ SELECT ( + 4 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) 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\(52\) 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 + 52 AS col1, COUNT ( * ) AS col1 query I rowsort @@ -47677,7 +47677,7 @@ SELECT DISTINCT CAST ( - 10 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \+ count\(Int64\(1\)\) AS count\(\*\) 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\(58\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 58 + COUNT ( * ) AS col2, 31 col2 query I rowsort label-9246 @@ -48471,7 +48471,7 @@ SELECT + COUNT ( * ) * - 86 # 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 "\(\- count\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "\(\- count\(Int64\(92\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col0, - COUNT ( ALL 92 ) AS col0 query I rowsort label-9400 @@ -49279,7 +49279,7 @@ SELECT ALL - COUNT ( * ) / + ( COALESCE ( + 94, COUNT ( * ) ) ) 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 "Int64\(\-30\) 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\(\-30\) 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 - 30 AS col0, + COUNT ( * ) AS col0 query I rowsort @@ -49954,7 +49954,7 @@ SELECT DISTINCT 34 + + 77 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\(39\)\)\) AS col0" at position 0 and "Int64\(\-89\) \* 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\(39\)\)\) AS col0" at position 0 and "Int64\(\-89\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( 39 ) AS col0, - 89 * + COUNT ( * ) AS col0 query I rowsort label-9688 @@ -50288,7 +50288,7 @@ SELECT DISTINCT - CAST ( - 7 AS INTEGER ) + + - 48, - 15 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) 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\(52\) 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 + 52 AS col1, COUNT ( * ) AS col1 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..c74fef9 100644 --- a/data/sqlite/random/expr/slt_good_44.slt +++ b/data/sqlite/random/expr/slt_good_44.slt @@ -1460,7 +1460,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \+ count\(Int64\(1\)\) AS count\(\*\) 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\(58\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 58 + COUNT ( * ) AS col2, 31 col2 query I rowsort label-274 @@ -1853,7 +1853,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- Int64\(6\)\) / Int64\(\-29\) \+ 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\(97\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "\(\- Int64\(6\)\) / Int64\(\-29\) \+ Int64\(46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 97 + + COUNT ( * ) col1, ( - + 6 ) / - 29 + 46 AS col1 query I rowsort @@ -2657,7 +2657,7 @@ SELECT - + 63 + - + 64 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -28 # Datafusion - Expected - 1 -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\(\*\) AS col2" at position 1 have the 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\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 28 col2, COUNT ( * ) AS col2 query I rowsort label-499 @@ -7963,7 +7963,7 @@ SELECT DISTINCT + 25 * 3 - - 19 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 "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- count\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "\(\- count\(Int64\(92\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col0, - COUNT ( ALL 92 ) AS col0 query I rowsort label-1515 @@ -10149,7 +10149,7 @@ SELECT ALL + 34 * + 62 + - 51 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1696 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(11\)\)\) \* Int64\(37\) \+ Int64\(\-43\) \* Int64\(30\) \+ count\(Int64\(1\)\) AS count\(\*\) 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 "\(\- max\(Int64\(11\)\)\) \* Int64\(37\) \+ Int64\(\-43\) \* Int64\(30\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?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 - MAX ( + 11 ) * 37 + ( + - 43 ) * 30 + COUNT ( * ) AS col1, ( - 38 ) AS col1 query I rowsort label-1934 @@ -13421,7 +13421,7 @@ SELECT ALL COUNT ( ALL - + 28 ) # 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 "Int64\(\-30\) 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\(\-30\) 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 - 30 AS col0, + COUNT ( * ) AS col0 query II rowsort @@ -17500,7 +17500,7 @@ SELECT ALL 26 + 62 # Datafusion - Datafusion expected results: # Datafusion - Expected - -35 # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(35\)\) AS col2" at position 0 and "Int64\(\-74\) \* 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\)\) AS col2" at position 0 and "Int64\(\-74\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + 35 AS col2, - 74 * COUNT ( * ) AS col2 query I rowsort @@ -17912,7 +17912,7 @@ SELECT ALL + MAX ( - + 16 ) # 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\) 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\(0\) 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 + 0 AS col2, COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: @@ -19319,7 +19319,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 83 -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\(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\(\*\) )?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 ( * ) AS col2, 83 AS col2 query I rowsort label-3686 @@ -27656,7 +27656,7 @@ SELECT DISTINCT MIN ( DISTINCT 6 ) AS col1 # 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 "Int64\(10\) 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\(10\) 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 10 AS col1, + COUNT ( * ) AS col1 query I rowsort @@ -33820,7 +33820,7 @@ SELECT DISTINCT COALESCE ( + - 19, - 4 / - - 87 * 15 / COUNT ( * ) + MIN ( - 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - -31 # Datafusion - Expected - -119 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) \+ Int64\(\-33\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-20\) \+ \(\- Int64\(26\)\) \+ 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\(1\) \+ Int64\(\-33\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(\-20\) \+ \(\- Int64\(26\)\) \+ Int64\(\-73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 1 + + - 33 + COUNT ( * ) AS col1, - 20 + - + 26 + - 73 AS col1 query I rowsort label-6448 @@ -34201,7 +34201,7 @@ SELECT 62 + + - 66 - 5 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - -5074 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \+ Int64\(88\) \- Int64\(81\) \+ Int64\(\-38\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(97\) \+ Int64\(\-38\) \+ Int64\(87\) \* 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 "Int64\(25\) \+ Int64\(88\) \- Int64\(81\) \+ Int64\(\-38\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(97\) \+ Int64\(\-38\) \+ Int64\(87\) \* Int64\(\-59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 25 + + 88 - + 81 + + - 38 / COUNT ( * ) AS col1, 97 + - 38 + 87 * - 59 AS col1 query II rowsort label-6521 @@ -35135,7 +35135,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) \+ \(\- Int64\(\-46\)\) 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\(41\) \+ \(\- Int64\(\-46\)\) 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 41 + - - 46 col0, COUNT ( * ) AS col0 query II rowsort label-6698 @@ -35912,7 +35912,7 @@ SELECT DISTINCT 23 * - NULLIF ( + 69, 24 + + ( - - 23 ) + 43 + 59 * + MAX ( + + # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - -129 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-67\) / Int64\(\-79\) \* Int64\(\-68\) / Int64\(\-8\) \+ \(\- Int64\(\-42\)\) AS col1" at position 0 and "Int64\(\-33\) \- Int64\(97\) \+ 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\(\-67\) / Int64\(\-79\) \* Int64\(\-68\) / Int64\(\-8\) \+ \(\- Int64\(\-42\)\) AS col1" at position 0 and "Int64\(\-33\) \- Int64\(97\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 67 / - 79 * + - 68 / - 8 + - ( - 42 ) AS col1, - 33 - + + 97 + + COUNT ( * ) AS col1 query I rowsort @@ -39264,7 +39264,7 @@ SELECT ALL CAST ( 32 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -7 -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 "max\(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\(\*\) )?AS col1" at position 0 and "max\(Int64\(\-7\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, MAX ( ALL + - 7 ) col1 query I rowsort label-7483 @@ -40203,7 +40203,7 @@ SELECT 49 / + 55 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col1" at position 0 and "Int64\(53\) \- 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\(77\) AS col1" at position 0 and "Int64\(53\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 77 AS col1, + 53 - + + COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: @@ -44003,7 +44003,7 @@ SELECT - - MIN ( ALL + - 73 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3744 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \* Int64\(78\) 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\(48\) \* Int64\(78\) 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 48 * + 78 col0, COUNT ( * ) AS col0 query I rowsort label-8391 @@ -52354,7 +52354,7 @@ SELECT - + COUNT ( * ) AS col2, + 78 + + 83 # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) / \(\- Int64\(80\)\) \+ Int64\(56\) 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\(4\) / \(\- Int64\(80\)\) \+ Int64\(56\) 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 + + 4 / - + 80 + + 56 AS col2, COUNT ( * ) AS col2 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_45.slt b/data/sqlite/random/expr/slt_good_45.slt index a920d7d..6b36217 100644 --- a/data/sqlite/random/expr/slt_good_45.slt +++ b/data/sqlite/random/expr/slt_good_45.slt @@ -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 Int32\) \* 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 @@ -2193,7 +2193,7 @@ SELECT DISTINCT + 38 + + MIN ( ALL + 60 ) / 36 AS col0, COUNT ( * ) - - 91 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) 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\(27\) 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 27 col0, COUNT ( * ) col0 query I rowsort @@ -10695,7 +10695,7 @@ SELECT DISTINCT 48 * - + MIN ( ALL + 92 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1578 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \* \(\- Int64\(51\)\) \- Int64\(99\) 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\(29\) \* \(\- Int64\(51\)\) \- Int64\(99\) 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 29 * - + 51 - 99 AS col1, COUNT ( * ) AS col1 query I rowsort label-2024 @@ -12925,7 +12925,7 @@ SELECT DISTINCT + 60 col0 # 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 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col0, + 19 AS col0 query I rowsort label-2448 @@ -13408,7 +13408,7 @@ SELECT DISTINCT 47 - - - COUNT ( * ) + - 35 # 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 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\(46\) 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 46 AS col1, COUNT ( * ) AS col1 query I rowsort label-2540 @@ -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 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\. 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 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\. SELECT + CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col1, + 94 * + + 37 AS col1 query II rowsort @@ -24300,7 +24300,7 @@ SELECT DISTINCT SUM ( 19 ) * - 36 + - - 28 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-92\)\) \* count\(Int64\(1\)\) AS count\(\*\) 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\(\-92\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 92 * COUNT ( * ) AS col0, 63 AS col0 query I rowsort label-4616 @@ -27530,7 +27530,7 @@ SELECT - + 94 * - + 30 * 25, - 45 * + 94 * - COUNT ( DISTINCT - 82 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -65 -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 "Int64\(14\) \- 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\(\*\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(14\) \- Int64\(79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + ( + COUNT ( * ) ) * + COUNT ( * ) AS col0, 14 - + + 79 AS col0 query II rowsort @@ -28970,7 +28970,7 @@ SELECT NULLIF ( 25, COUNT ( * ) ), - SUM ( DISTINCT 3 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6648 # Datafusion - Expected - 720 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \* Int64\(52\) \+ Int64\(28\) \* \(\- max\(Int64\(75\)\)\) \* \(\- count\(Int64\(\-54\)\)\) \+ Int64\(\-6\) \+ Int64\(76\) \- Int64\(45\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(90\) \* 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\(87\) \* Int64\(52\) \+ Int64\(28\) \* \(\- max\(Int64\(75\)\)\) \* \(\- count\(Int64\(\-54\)\)\) \+ Int64\(\-6\) \+ Int64\(76\) \- Int64\(45\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(90\) \* Int64\(8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 87 * + + 52 + 28 * + - MAX ( + 75 ) * + - COUNT ( ALL - 54 ) + - 6 + + 76 - 45 - COUNT ( * ) AS col0, + 90 * + ( 8 ) col0 query I rowsort @@ -28981,7 +28981,7 @@ SELECT + 49 * 28 AS col0 # 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 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(\-67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col1, - 67 col1 query I rowsort label-5513 @@ -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 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\. SELECT + CAST ( NULL AS INTEGER ) AS col1, + COUNT ( * ) AS col1 query I rowsort label-6254 @@ -34914,7 +34914,7 @@ SELECT - 82 AS col0, 48 + - 50 + 76 * + 53 AS col0 # 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\(83\) 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\(83\) 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 83 AS col1, + COUNT ( * ) AS col1 query I rowsort label-6646 @@ -42726,7 +42726,7 @@ SELECT ALL + + MIN ( + 99 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 2335 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \* Int64\(4\) \+ Int64\(\-87\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-17\) \+ \(\- Int64\(\-56\)\) \* 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\(34\) \* Int64\(4\) \+ Int64\(\-87\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(\-17\) \+ \(\- Int64\(\-56\)\) \* Int64\(42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + 34 * 4 + - 87 * COUNT ( * ) AS col2, - 17 + + - ( - 56 ) * + + 42 col2 query II rowsort @@ -48112,7 +48112,7 @@ SELECT DISTINCT - 66 * - 21 * - COUNT ( * ) + - 32 + - ( 22 ) * + 51 * + - COALE # 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\(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 "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 DISTINCT + 34 AS col2, + COUNT ( * ) AS col2 query I rowsort label-9171 @@ -50998,7 +50998,7 @@ SELECT ALL - 70 col0, - 95 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -42107 # Datafusion - Expected - -78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \* Int64\(44\) \* \(\- Int64\(33\)\) \+ count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(29\) \* Int64\(44\) \* \(\- Int64\(33\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(\-78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 29 * + + 44 * - + 33 + + + COUNT ( * ) AS col0, - 78 col0 query I rowsort label-9721 @@ -51363,7 +51363,7 @@ SELECT + 27 - - - SUM ( ALL - 26 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -72 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(72\), Int64\(79\) / Int64\(12\) \* count\(Int64\(1\)\) AS count\(\*\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(41\) / \(\- Int64\(\-17\)\)\)\) 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\(72\), Int64\(79\) / Int64\(12\) \* count\(Int64\(1\)\) AS count\(\*\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(41\) / \(\- Int64\(\-17\)\)\)\) 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 ( 72, 79 / + 12 * + COUNT ( * ) / - COUNT ( * ) * + 41 / - - 17 ) AS col1, COUNT ( * ) col1 query I rowsort label-9791 diff --git a/data/sqlite/random/expr/slt_good_46.slt b/data/sqlite/random/expr/slt_good_46.slt index d0eb176..02ac6a3 100644 --- a/data/sqlite/random/expr/slt_good_46.slt +++ b/data/sqlite/random/expr/slt_good_46.slt @@ -6289,7 +6289,7 @@ SELECT + 32 + - 41 * 34, - 64 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -1655 -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\(17\) \* Int64\(\-96\) \+ Int64\(\-57\) \+ Int64\(\-5\) \+ Int64\(40\) \+ \(\- count\(DISTINCT 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\(\*\) )?AS col2" at position 0 and "Int64\(17\) \* Int64\(\-96\) \+ Int64\(\-57\) \+ Int64\(\-5\) \+ Int64\(40\) \+ \(\- count\(DISTINCT Int64\(80\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, 17 * - 96 + - 57 + - 5 + 40 + - COUNT ( DISTINCT + 80 ) AS col2 query I rowsort label-1187 @@ -6759,7 +6759,7 @@ SELECT + - COUNT ( * ) AS col2, 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 99 -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\(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\(\*\) )?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 + + COUNT ( * ) AS col2, + 99 AS col2 query I rowsort @@ -8796,7 +8796,7 @@ SELECT + 41 * 66 AS col1 # Datafusion - Expected - 1711 # Datafusion - Expected - 56 # Datafusion - Expected - -83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-30\) \* Int64\(57\) AS col0" at position 0 and "Int64\(\-82\) \- 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 "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-30\) \* Int64\(57\) AS col0" at position 0 and "Int64\(\-82\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) - - 30 * + 57 AS col0, + 55 + + COALESCE ( + COUNT ( + 33 ), 44 ) AS col2, - 82 - COUNT ( * ) AS col0 query I rowsort label-1662 @@ -21826,7 +21826,7 @@ SELECT DISTINCT + 19 * - - 85 AS col2, + 23 # Datafusion - Datafusion expected results: # Datafusion - Expected - -247 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) \+ Int64\(\-27\) \+ Int64\(\-96\) \+ \(\- Int64\(60\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS 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 "Int64\(\-65\) \+ Int64\(\-27\) \+ Int64\(\-96\) \+ \(\- Int64\(60\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 65 + - 27 + - 96 + - + 60 + + COUNT ( * ) AS col0, - COUNT ( * ) * + 22 AS col0 query I rowsort label-4157 @@ -24272,7 +24272,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- Int64\(\-89\)\), 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 "coalesce\(\(\- Int64\(\-89\)\), 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 COALESCE ( - ( - 89 ), + + 60 ) AS col2, + COUNT ( * ) col2 query I rowsort label-4619 @@ -24379,7 +24379,7 @@ SELECT DISTINCT + 91 + + COUNT ( * ) * + 50 * - 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 "Int64\(46\) \* CASE Int64\(\-30\) WHEN \(\- Int64\(43\)\) THEN NULL WHEN Int64\(\-14\) THEN Int64\(33\) \+ sum\(DISTINCT Int64\(67\)\) \* Int64\(\-95\) ELSE NULL 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 "Int64\(46\) \* CASE Int64\(\-30\) WHEN \(\- Int64\(43\)\) THEN NULL WHEN Int64\(\-14\) THEN Int64\(33\) \+ sum\(DISTINCT Int64\(67\)\) \* Int64\(\-95\) ELSE NULL 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 ALL + 46 * CASE - 30 WHEN - + 43 THEN NULL WHEN + - 14 THEN 33 + SUM ( DISTINCT + 67 ) * + + ( - 95 ) ELSE NULL END AS col2, COUNT ( * ) AS col2 query I rowsort @@ -25632,7 +25632,7 @@ SELECT COUNT ( * ) - + ( - 32 ) * - CAST ( - 97 AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -210 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT \(\- nullif\(Int64\(51\), \(\- Int64\(94\)\)\)\)\) \+ Int64\(53\) \* Int64\(\-3\) AS col0" at position 0 and "Int64\(97\) \- Int64\(58\) \+ coalesce\(Int64\(45\), Int64\(67\) \* Int64\(56\), \(\- Int64\(\-9\)\) \* Int64\(40\) \- Int64\(34\) \- Int64\(51\)\) \* 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\(DISTINCT \(\- nullif\(Int64\(51\), \(\- Int64\(94\)\)\)\)\) \+ Int64\(53\) \* Int64\(\-3\) AS col0" at position 0 and "Int64\(97\) \- Int64\(58\) \+ coalesce\(Int64\(45\), Int64\(67\) \* Int64\(56\), \(\- Int64\(\-9\)\) \* Int64\(40\) \- Int64\(34\) \- Int64\(51\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + MIN ( DISTINCT - + NULLIF ( + 51, + + ( - + 94 ) ) ) + 53 * - 3 AS col0, + 97 - + + 58 + COALESCE ( + + 45, 67 * + 56, - - 9 * + 40 - 34 - + + 51 ) * + COUNT ( * ) col0 query I rowsort @@ -28549,7 +28549,7 @@ SELECT ALL 38 + + + 95 # 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\(1\) 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\) 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 1 AS col1, COUNT ( * ) AS col1 query I rowsort @@ -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 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\. SELECT ALL - 22 * - + CAST ( - ( - 12 ) AS INTEGER ) * SUM ( 30 ) + 4 * + COUNT ( * ) AS col2, 58 / 93 + - 80 * 73 AS col2 query II rowsort label-5723 @@ -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 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\. 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 @@ -42527,7 +42527,7 @@ SELECT DISTINCT + 79 + + - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - 396 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) \+ Int64\(79\) AS col0" at position 0 and "Int64\(19\) \* Int64\(21\) \- \(\- Int64\(\-3\)\) \* 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\(\-4\) \+ Int64\(79\) AS col0" at position 0 and "Int64\(19\) \* Int64\(21\) \- \(\- Int64\(\-3\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 4 + + 79 AS col0, + 19 * + 21 - - - 3 * + COUNT ( * ) AS col0 query I rowsort label-8104 @@ -45405,7 +45405,7 @@ SELECT ALL - 59 * 54 + + + 68 - COALESCE ( - 97, + 90 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 15 -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\(92\) \+ \(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(92\) \+ \(\- Int64\(77\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, 92 + - ( 77 ) AS col2 query I rowsort label-8652 @@ -45817,7 +45817,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 154 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col0" at position 0 and "Int64\(79\) \+ Int64\(74\) \+ count\(Int64\(\-64\)\) \* 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\) AS col0" at position 0 and "Int64\(79\) \+ Int64\(74\) \+ count\(Int64\(\-64\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 97 AS col0, 79 + 74 + COUNT ( + - 64 ) * + + COUNT ( * ) col0 # Datafusion - Types were automatically converted from: @@ -48184,7 +48184,7 @@ SELECT DISTINCT - 78 AS col2, 56 / + 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -45 -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\(\-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\(\-45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) col0, - 45 col0 query I rowsort @@ -48351,7 +48351,7 @@ SELECT ALL + 26 * + - 36 # 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 "count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col2, + 20 AS col2 query I rowsort label-9215 @@ -50275,7 +50275,7 @@ SELECT - COALESCE ( + - 43, + + 17, + 55 * - 74 ) AS col0 # 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\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col0, 61 AS col0 query I rowsort label-9582 @@ -50783,7 +50783,7 @@ SELECT DISTINCT + - 56 * - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 846 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \* \(\- \(\- nullif\(Int64\(13\), count\(Int64\(\-1\)\) \+ Int64\(70\)\)\)\) \+ 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\(65\) \* \(\- \(\- nullif\(Int64\(13\), count\(Int64\(\-1\)\) \+ Int64\(70\)\)\)\) \+ 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 DISTINCT + + ( 65 ) * - - NULLIF ( 13, COUNT ( ALL - 1 ) + + 70 ) + + COUNT ( * ) col2, + COUNT ( * ) AS col2 query I rowsort label-9677 @@ -51532,7 +51532,7 @@ NULL # 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 "max\(Int64\(\-35\)\) 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\(Int64\(\-35\)\) 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 ( ALL - 35 ) AS col1, COUNT ( * ) AS col1 query I rowsort label-9820 diff --git a/data/sqlite/random/expr/slt_good_47.slt b/data/sqlite/random/expr/slt_good_47.slt index 37e2f29..0c1c5ce 100644 --- a/data/sqlite/random/expr/slt_good_47.slt +++ b/data/sqlite/random/expr/slt_good_47.slt @@ -1019,7 +1019,7 @@ SELECT - - 24 * - 71 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 32 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, 32 col1 query I rowsort @@ -2777,7 +2777,7 @@ SELECT ALL - COALESCE ( + + 47, 98 + - 17 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(16\)\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- 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\(16\)\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(\-17\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - ( + 16 ) AS col1, - COUNT ( * ) * - - 17 * + + COUNT ( * ) col1 query I rowsort label-529 @@ -7044,7 +7044,7 @@ SELECT - + 35 * - + 36 * 89 # 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 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\(\-4\) 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 - 4 AS col2, COUNT ( * ) AS col2 query I rowsort label-1339 @@ -12688,7 +12688,7 @@ SELECT + SUM ( - - 87 ) + 79 # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(42\) \+ 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\(\-70\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(42\) \+ Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 70 * + COUNT ( * ) AS col2, + ( 42 ) + 12 col2 query I rowsort @@ -17209,7 +17209,7 @@ SELECT ALL - - 44 * - 66 + 65 + + + 85 * - 14 # 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 "count\(Int64\(1\)\) AS count\(\*\) / 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\(\*\) )?AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, COUNT ( * ) / + 23 AS col0 query II rowsort label-3276 @@ -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 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\. 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 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\. SELECT CAST ( + 29 AS INTEGER ) AS col2, + COUNT ( * ) AS col2 query II rowsort label-4376 @@ -25222,7 +25222,7 @@ SELECT DISTINCT - + CAST ( - + 27 AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 833 -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\(89\) \* \(\- CASE Int64\(\-88\) WHEN Int64\(96\) THEN NULL WHEN avg\(DISTINCT Int64\(93\)\) \+ Int64\(5\) THEN NULL ELSE \(\- Int64\(0\)\) END\) / Int64\(\-85\) \+ \(\- Int64\(5\)\) \+ Int64\(20\) \* Int64\(42\) \+ Int64\(43\) / sum\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(89\) \* \(\- CASE Int64\(\-88\) WHEN Int64\(96\) THEN NULL WHEN avg\(DISTINCT Int64\(93\)\) \+ Int64\(5\) THEN NULL ELSE \(\- Int64\(0\)\) END\) / Int64\(\-85\) \+ \(\- Int64\(5\)\) \+ Int64\(20\) \* Int64\(42\) \+ Int64\(43\) / sum\(Int64\(\-18\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, 89 * - + CASE - 88 WHEN 96 THEN NULL WHEN + AVG ( DISTINCT + 93 ) + + 5 THEN NULL ELSE - - 0 END / - 85 + - ( 5 ) + + 20 * 42 + + + 43 / + SUM ( ALL - 18 ) AS col0 query I rowsort label-4809 @@ -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 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\. SELECT ALL 21 * + + 86 + - CAST ( NULL AS INTEGER ) * + 13 AS col2, + COUNT ( * ) AS col2 # Datafusion - Types were automatically converted from: @@ -30876,7 +30876,7 @@ SELECT + 16 * + - 36 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\(43\)\) \+ Int64\(\-46\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(73\) \+ \(\- nullif\(Int64\(\-23\), Int64\(31\)\)\) AS col2" at position 0 and "CAST\(NULL AS Float64\) \* Int64\(77\) \* Int64\(60\) \* 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\(43\)\) \+ Int64\(\-46\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(73\) \+ \(\- nullif\(Int64\(\-23\), Int64\(31\)\)\) AS col2" at position 0 and "CAST\(NULL AS Float64\) \* Int64\(77\) \* Int64\(60\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 43 + - 46 + COUNT ( * ) + + 73 + - + NULLIF ( - 23, 31 ) AS col2, CAST ( NULL AS FLOAT8 ) * 77 * + + 60 * + COUNT ( * ) col2 query I rowsort @@ -35663,7 +35663,7 @@ SELECT ALL 80 * - - CAST ( 8 AS INTEGER ) # 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 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, + 95 AS col0 query I rowsort @@ -36699,7 +36699,7 @@ SELECT ALL - COUNT ( * ) * - 45 * + 52 # Datafusion - Expected - 4698 # Datafusion - Expected - -86 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \* \(\- Int64\(\-54\)\) AS col2" at position 0 and "Int64\(43\) \+ 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 "Int64\(87\) \* \(\- Int64\(\-54\)\) AS col2" at position 0 and "Int64\(43\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 87 * - - 54 AS col2, + NULLIF ( - 86, - 67 ), ( 43 ) + COUNT ( * ) col2 query I rowsort label-6988 @@ -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 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\. SELECT CAST ( NULL AS INTEGER ) AS col1, + COUNT ( * ) AS col1 query I rowsort label-7176 @@ -40113,7 +40113,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 8370 # Datafusion - Expected - -48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) \* Int64\(90\) AS col1" at position 0 and "Int64\(32\) / Int64\(\-87\) \* Int64\(36\) \+ Int64\(\-49\) \+ 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\) \* Int64\(90\) AS col1" at position 0 and "Int64\(32\) / Int64\(\-87\) \* Int64\(36\) \+ Int64\(\-49\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 93 * + 90 AS col1, ( ( 32 ) ) / - 87 * + 36 + - 49 + COUNT ( * ) AS col1 query I rowsort label-7648 @@ -43978,7 +43978,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) 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\(41\) 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 + + 41 AS col0, COUNT ( * ) AS col0 query II rowsort label-8381 @@ -44087,7 +44087,7 @@ SELECT DISTINCT 91 + + - 73 + + 9 * ( + 84 ) * 75 * 25 * SUM ( DISTINCT + 55 ) + # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- Int64\(64\)\) WHEN Int64\(63\) \* Int64\(78\) \+ \(\- Int64\(\-58\)\) \* Int64\(69\) THEN NULL ELSE max\(DISTINCT Int64\(81\)\) 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\(64\)\) WHEN Int64\(63\) \* Int64\(78\) \+ \(\- Int64\(\-58\)\) \* Int64\(69\) THEN NULL ELSE max\(DISTINCT Int64\(81\)\) 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 - + 64 WHEN + ( + 63 ) * 78 + - - 58 * 69 THEN NULL ELSE MAX ( DISTINCT + 81 ) END AS col1, ( COUNT ( * ) ) AS col1 query I rowsort @@ -44128,7 +44128,7 @@ SELECT ALL - 13 * + NULLIF ( - 74, 32 ) - - 3 - 53 / - - 55 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - 103200 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(66\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(15\) \* Int64\(80\) \* 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\(66\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(15\) \* Int64\(80\) \* Int64\(86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 66 + + COUNT ( * ) col2, 15 * 80 * 86 AS col2 query I rowsort @@ -48481,7 +48481,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3397 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \* \(\- 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 "Int64\(79\) \* \(\- 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 79 * - + 43 AS col1, COUNT ( * ) AS col1 query I rowsort label-9246 diff --git a/data/sqlite/random/expr/slt_good_48.slt b/data/sqlite/random/expr/slt_good_48.slt index ebaf890..0e42429 100644 --- a/data/sqlite/random/expr/slt_good_48.slt +++ b/data/sqlite/random/expr/slt_good_48.slt @@ -779,7 +779,7 @@ SELECT ALL 44 - 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) 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\(87\) 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 + 87 col2, + COUNT ( * ) col2 query I rowsort @@ -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 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\. 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 @@ -7996,7 +7996,7 @@ SELECT ALL 68 AS col2, 85 - - + ( 94 ) * - COUNT ( * ) * - - 37 + 9 * + - 45 * 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) 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\(91\) 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 91 col1, COUNT ( * ) AS col1 query I rowsort label-1512 @@ -8934,7 +8934,7 @@ SELECT DISTINCT ( - 12 ) # 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\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 COUNT ( * ) AS col0, - ( - 29 ) AS col0 query I rowsort @@ -14319,7 +14319,7 @@ SELECT ALL 20 + + 96 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3776 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \+ Int64\(\-86\) \* Int64\(44\) 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\(8\) \+ Int64\(\-86\) \* Int64\(44\) 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 8 + - 86 * + 44 AS col1, COUNT ( * ) AS col1 query I rowsort label-2722 @@ -15417,7 +15417,7 @@ SELECT DISTINCT - + 5 * - MIN ( DISTINCT - + 11 ), 96 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 col1" at position 0 and "\(\- min\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "\(\- min\(DISTINCT Int64\(89\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col1, - MIN ( DISTINCT ( + 89 ) ) AS col1 query I rowsort label-2931 @@ -18118,7 +18118,7 @@ SELECT ALL - ( - 16 ) * + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -2759 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) \* Int64\(\-60\) \+ count\(Int64\(1\)\) AS count\(\*\) 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\(46\) \* Int64\(\-60\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 46 * + - 60 + + COUNT ( * ) AS col1, 92 col1 query II rowsort label-3445 @@ -18513,7 +18513,7 @@ SELECT + NULLIF ( - 12, + 16 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) 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\(41\) 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 + 41 col1, COUNT ( * ) AS col1 query I rowsort @@ -24768,7 +24768,7 @@ SELECT DISTINCT + 53 * 94 * - 77 * MAX ( - 25 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 "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 32 col0, COUNT ( * ) AS col0 query II rowsort label-4713 @@ -27220,7 +27220,7 @@ SELECT 88 * 41 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) 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 "Int64\(81\) 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 81 AS col1, 17 + + COUNT ( * ) AS col1 query I rowsort @@ -27985,7 +27985,7 @@ SELECT DISTINCT 63 * MIN ( DISTINCT + 84 ) AS col1 # Datafusion - Expected - 0 # Datafusion - Expected - -76 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-76\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 and "Int64\(44\) \+ 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 "\(\- \(\- Int64\(\-76\)\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 and "Int64\(44\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + ( + 20 ) + - 20, - ( - - 76 ) * + COUNT ( * ) AS col2, 44 + + COUNT ( * ) AS col2 query I rowsort @@ -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 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\. SELECT ALL - COALESCE ( - 96, + - 80 ) * - - 84 * - CAST ( NULL AS INTEGER ) * - 38 AS col2, COUNT ( * ) AS col2 query I rowsort @@ -28187,7 +28187,7 @@ SELECT DISTINCT NULLIF ( 47, + - CASE + 71 WHEN 78 THEN NULL WHEN + CAST ( NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col1" at position 0 and "Int64\(55\) \* 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 "Int64\(55\) \* 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, 55 * COUNT ( * ) AS col1 query I rowsort @@ -30917,7 +30917,7 @@ SELECT ALL COUNT ( * ) * - 69 # Datafusion - Datafusion expected results: # Datafusion - Expected - 53250 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \* Int64\(71\) \* Int64\(25\) 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\(30\) \* Int64\(71\) \* Int64\(25\) 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 30 * 71 * 25 col0, COUNT ( * ) AS col0 query I rowsort @@ -33845,7 +33845,7 @@ SELECT - ( - CAST ( - 64 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 "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\(\*\) )?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 ( * ) col1, COUNT ( * ) AS col1 query I rowsort @@ -34106,7 +34106,7 @@ SELECT 68 * ( - - 21 ) + - NULLIF ( 39, - + CAST ( 13 AS FLOAT8 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -2294 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) \* sum\(Int64\(37\)\) AS col0" at position 0 and "Int64\(52\) \+ 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\(\-62\) \* sum\(Int64\(37\)\) AS col0" at position 0 and "Int64\(52\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 62 * + SUM ( ALL + 37 ) AS col0, 52 + + COUNT ( * ) AS col0 query I rowsort @@ -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 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\. 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 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\. SELECT + ( + + CAST ( - - 87 AS INTEGER ) ) * 17 AS col0, - 28 - 72 + + COUNT ( * ) AS col0 query I rowsort label-7386 @@ -42464,7 +42464,7 @@ SELECT + 39 + - - 44 + + 29 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -90 -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\(\-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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 COUNT ( * ) col1, - 90 AS col1 query II rowsort label-8100 @@ -45344,7 +45344,7 @@ SELECT DISTINCT - - 41 * 60 / + + 79 - + 14, 68 + + NULLIF ( - + 28, - + MIN ( D # 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\(\-93\) / Int64\(4\) 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\(\-93\) / Int64\(4\) 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 - 93 / 4 AS col1, COUNT ( * ) AS col1 query I rowsort @@ -48994,7 +48994,7 @@ SELECT ALL 35 AS col0, 79 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 "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\(\*\) )?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 ( * ) AS col1, + COUNT ( * ) AS col1 query I rowsort @@ -49793,7 +49793,7 @@ SELECT ALL + 73 * - 64 + + 10 + + 62 + 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -1640 -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\(65\) \+ Int64\(95\) \+ \(\- Int64\(20\)\) \* 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 "Int64\(65\) \+ Int64\(95\) \+ \(\- Int64\(20\)\) \* Int64\(90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col0, 65 + 95 + + - ( 20 ) * + 90 AS col0 query I rowsort label-9503 diff --git a/data/sqlite/random/expr/slt_good_49.slt b/data/sqlite/random/expr/slt_good_49.slt index 4d20235..d25b1ce 100644 --- a/data/sqlite/random/expr/slt_good_49.slt +++ b/data/sqlite/random/expr/slt_good_49.slt @@ -3673,7 +3673,7 @@ NULL # Datafusion - Expected - 1 # Datafusion - Expected - 3520 # Datafusion - Expected - 81 -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\(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 "Int64\(88\) \* Int64\(40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col0, + 88 * 40 col0, 29 + - - 52 query I rowsort label-697 @@ -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 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\. SELECT - - 70 + - CAST ( NULL AS INTEGER ) AS col2, 20 + + 52 + - - COUNT ( * ) * + + 45 * + COUNT ( * ) col2 query I rowsort label-1118 @@ -11490,7 +11490,7 @@ SELECT ALL ( - 2 ) * 15 + - + 40 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -47 -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\(\-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\(1\)\) (AS count\(\*\) )?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 ( * ) AS col0, - 47 AS col0 query II rowsort label-2183 @@ -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 Int32\)\) \* 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 @@ -16801,7 +16801,7 @@ SELECT DISTINCT - 54 * + 71 * 27 AS col1, + 67 AS col1 # 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 "\(\- Int64\(97\)\) 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\)\) 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 AS col2, COUNT ( * ) col2 query I rowsort label-3196 @@ -20368,7 +20368,7 @@ SELECT DISTINCT + + 44 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 35 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, 35 AS col2 query I rowsort label-3866 @@ -26221,7 +26221,7 @@ SELECT ALL ( + 62 ) * + - 80 + - 88 + + + 17 + + + 0 * 11 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - -3768 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col0" at position 0 and "\(\- max\(Int64\(\-49\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(77\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(69\) \+ \(\- Int64\(64\)\) \* 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\) AS col0" at position 0 and "\(\- max\(Int64\(\-49\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(77\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(69\) \+ \(\- Int64\(64\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 23 AS col0, - MAX ( - 49 ) * COUNT ( * ) * + COUNT ( * ) * + + 77 * - COUNT ( * ) + 69 + - + 64 * + COUNT ( * ) AS col0 query I rowsort @@ -26715,7 +26715,7 @@ SELECT ALL 18 / 83 + + 62 AS col1 # 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\(73\) 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\(73\) 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 + 73 AS col1, COUNT ( * ) AS col1 query I rowsort @@ -28390,7 +28390,7 @@ SELECT - 88 * - - MIN ( - - 64 ) # 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 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\(\*\) )?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 ( * ) AS col2, COUNT ( * ) AS col2 query I rowsort @@ -29018,7 +29018,7 @@ SELECT + 0 + - 63 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-6\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* 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\(\-6\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 6 * COUNT ( * ) AS col1, - COUNT ( * ) * - 49 AS col1 query I rowsort @@ -32483,7 +32483,7 @@ SELECT - NULLIF ( + SUM ( 64 ), + + MAX ( DISTINCT + 90 ) * ( + 9 ) + + COUNT ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 5824 -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\(\-29\) \+ sum\(\(\- Int64\(\-60\)\)\) \+ Int64\(\-72\) \+ sum\(Int64\(85\)\) \* 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(\-29\) \+ sum\(\(\- Int64\(\-60\)\)\) \+ Int64\(\-72\) \+ sum\(Int64\(85\)\) \* Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) col0, - 29 + SUM ( - - 60 ) + - 72 + + SUM ( + 85 ) * + 69 col0 query I rowsort label-6187 @@ -43230,7 +43230,7 @@ SELECT ALL - - COUNT ( * ) col0, 29 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3900 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \* Int64\(52\) 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\(75\) \* Int64\(52\) 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 75 * 52 AS col0, COUNT ( * ) AS col0 query II rowsort label-8234 @@ -46300,7 +46300,7 @@ SELECT + 10, 60 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -33 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(87\)\) \+ Int64\(54\) AS col0" at position 0 and "Int64\(82\) \+ 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\(87\)\) \+ Int64\(54\) AS col0" at position 0 and "Int64\(82\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - ( + 87 ) + + 54 AS col0, + 82 + COUNT ( * ) AS col0 query I rowsort label-8817 @@ -46390,7 +46390,7 @@ SELECT ALL + 45 / + NULLIF ( - - 61, 29 ) * + 49 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 111 -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\(78\) \+ 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 "Int64\(78\) \+ Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) col0, 78 + 33 AS col0 query I rowsort label-8834 @@ -50041,7 +50041,7 @@ SELECT - 54 * + NULLIF ( + CAST ( + 4 AS INTEGER ), - + 30 + + + ( + 77 ) ) AS c # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 96 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col1, 96 AS col1 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_5.slt b/data/sqlite/random/expr/slt_good_5.slt index 0f7fe9e..601316d 100644 --- a/data/sqlite/random/expr/slt_good_5.slt +++ b/data/sqlite/random/expr/slt_good_5.slt @@ -1648,7 +1648,7 @@ SELECT DISTINCT NULLIF ( 11, + SUM ( + 68 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \- count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(12\) \+ 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\(83\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(12\) \+ Int64\(\-43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 83 - + COUNT ( * ) AS col1, + 12 + - 43 AS col1 query I rowsort label-302 @@ -10271,7 +10271,7 @@ SELECT + 91 * COUNT ( * ) AS col0, - COUNT ( ALL + + 28 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col2" at position 0 and "Int64\(60\) / 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\(41\) AS col2" at position 0 and "Int64\(60\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 41 AS col2, 60 / + COUNT ( * ) AS col2 query I rowsort label-1941 @@ -13684,7 +13684,7 @@ SELECT DISTINCT + + 54 + - 94 + 16 * - 8 AS col0 # 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 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COUNT ( * ) AS col2, 25 AS col2 query I rowsort label-2587 @@ -16738,7 +16738,7 @@ SELECT 1 + - 46 # Datafusion - Datafusion expected results: # Datafusion - Expected - -29361 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* Int64\(14\) \* Int64\(\-25\) \+ Int64\(\-3\) \+ Int64\(42\) \+ Int64\(\-32\) / Int64\(76\) \* Int64\(18\) \* 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 "Int64\(84\) \* Int64\(14\) \* Int64\(\-25\) \+ Int64\(\-3\) \+ Int64\(42\) \+ Int64\(\-32\) / Int64\(76\) \* Int64\(18\) \* 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 ALL 84 * + 14 * - 25 + - 3 + + 42 + - 32 / 76 * 18 * + COUNT ( * ) AS col2, 63 col2 query I rowsort @@ -18261,7 +18261,7 @@ SELECT 92 / - 57 - + - NULLIF ( - + 94, - CAST ( - NULLIF ( 64, - 43 ) AS INTEGE # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 381840 -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\(67\) \* Int64\(77\) \* Int64\(74\) \+ 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(67\) \* Int64\(77\) \* Int64\(74\) \+ Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, 67 * 77 * 74 + + 74 AS col1 query I rowsort label-3456 @@ -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 Int32\) \* 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 @@ -25009,7 +25009,7 @@ SELECT COUNT ( * ) * + 28 / + 57 # 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 "\(\- Int64\(\-30\)\) 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\(\-30\)\) 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 - - 30 AS col2, COUNT ( * ) col2 query I rowsort label-4745 @@ -25088,7 +25088,7 @@ SELECT + 33 * - - 24 # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) \+ Int64\(98\) 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\(\-42\) \+ Int64\(98\) 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 - 42 + + 98 AS col2, + 6 * COUNT ( * ) AS col2 query I rowsort label-4760 @@ -29547,7 +29547,7 @@ SELECT ALL + 1 * - 10 + + + ( - - 39 ) + 35 * + 93 + - 88 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1302 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \* Int64\(30\) \+ Int64\(26\) \+ Int64\(66\) \- Int64\(\-41\) \+ Int64\(\-1\) AS col1" at position 0 and "CASE \(\- min\(DISTINCT Int64\(72\)\)\) WHEN \(\- Int64\(61\)\) THEN NULL WHEN Int64\(\-20\) THEN count\(Int64\(\-27\)\) ELSE \(\- count\(Int64\(1\)\) AS count\(\*\)\) END \+ Int64\(\-81\) \* 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\(39\) \* Int64\(30\) \+ Int64\(26\) \+ Int64\(66\) \- Int64\(\-41\) \+ Int64\(\-1\) AS col1" at position 0 and "CASE \(\- min\(DISTINCT Int64\(72\)\)\) WHEN \(\- Int64\(61\)\) THEN NULL WHEN Int64\(\-20\) THEN count\(Int64\(\-27\)\) ELSE \(\- count\(Int64\(1\)\) AS count\(\*\)\) END \+ Int64\(\-81\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 39 * + 30 + 26 + + 66 - - 41 + - 1 col1, + CASE + - MIN ( DISTINCT 72 ) WHEN - ( 61 ) THEN NULL WHEN - 20 THEN + + COUNT ( - 27 ) ELSE + - COUNT ( * ) END + - 81 * + ( + COUNT ( * ) ) col1 # Datafusion - Datafusion expected results: @@ -32690,7 +32690,7 @@ SELECT 76 * + 24 + 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 71 -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\(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 "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 ( COUNT ( * ) ) AS col1, 71 AS col1 query I rowsort label-6209 @@ -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 Int32\) \* 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 @@ -35613,7 +35613,7 @@ SELECT ALL - SUM ( - 44 ) - + + COUNT ( * ) + - - 5 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) AS col1" at position 0 and "Int64\(53\) \* 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\(\-71\) AS col1" at position 0 and "Int64\(53\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 71 AS col1, 53 * + ( COUNT ( * ) ) AS col1 query I rowsort label-6762 @@ -36392,7 +36392,7 @@ SELECT + 21 * - 74 AS col2, 24 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2835 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \* \(\- Int64\(\-63\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(1\)\) AS count\(\*\) 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\(45\) \* \(\- Int64\(\-63\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 45 * - - 63 + + - COUNT ( * ) + COUNT ( * ) AS col0, + 90 AS col0 query I rowsort @@ -39337,7 +39337,7 @@ SELECT - 51 * 91 AS col2 # Datafusion - Expected - 1180 # Datafusion - Expected - 70 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col0" at position 1 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\(70\) AS col0" at position 1 and "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 59 * 20, 70 AS col0, + COUNT ( * ) AS col0 query II rowsort label-7470 @@ -39367,7 +39367,7 @@ SELECT ALL 15 - 39 - - 16 + - 63 + + COALESCE ( - 76, + 39 ) * + 10 * 31 * - 84 # Datafusion - Datafusion expected results: # Datafusion - Expected - -468422 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \* \(\- Int64\(70\)\) \* Int64\(69\) \+ \(\- Int64\(\-88\)\) 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\(97\) \* \(\- Int64\(70\)\) \* Int64\(69\) \+ \(\- Int64\(\-88\)\) 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 + 97 * ( - + 70 ) * 69 + - - 88 AS col1, + COUNT ( * ) AS col1 query I rowsort @@ -41604,7 +41604,7 @@ SELECT ALL + NULLIF ( + - ( + 53 ), - 27 ) AS col0 # 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 "\(\- \(\- Int64\(\-96\)\)\) 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\(\-96\)\)\) 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 - - ( - 96 ) AS col0, COUNT ( * ) AS col0 query I rowsort @@ -42888,7 +42888,7 @@ SELECT DISTINCT - ( + + 7 ) col1 # 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 "Int64\(\-91\) AS col2" at position 0 and "Int64\(\-96\) / 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\(\-91\) AS col2" at position 0 and "Int64\(\-96\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 91 col2, - 96 / COUNT ( * ) AS col2 query I rowsort label-8141 @@ -47416,7 +47416,7 @@ SELECT COUNT ( * ) - + - 80 AS col1 # Datafusion - Expected - 1 # Datafusion - Expected - 5092 # Datafusion - Expected - -945 -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\(27\) \+ Int64\(12\) \* Int64\(\-81\) 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\(\*\) )?AS col2" at position 0 and "Int64\(27\) \+ Int64\(12\) \* Int64\(\-81\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col2, 76 * 67 AS col0, + + 27 + + + ( + 12 ) * - 81 AS col2 query I rowsort label-9011 @@ -49288,7 +49288,7 @@ SELECT DISTINCT + 18 + 40 * + ( ( - 93 ) ) + 87 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col1" at position 0 and "Int64\(75\) \+ 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\(22\) AS col1" at position 0 and "Int64\(75\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 22 AS col1, 75 + + COUNT ( * ) AS col1 query II rowsort label-9364 @@ -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 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\. SELECT CAST ( CASE - + 66 WHEN + 68 * - 85 THEN NULL ELSE 85 + + 65 - - 50 END AS INTEGER ) AS col1, COUNT ( * ) AS col1 query I rowsort @@ -50751,7 +50751,7 @@ SELECT - 73 AS col1, 27 * 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - 12667 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) \+ \(\- Int64\(22\)\) \* coalesce\(Int64\(63\), Int64\(22\) \+ Int64\(\-97\) / Int64\(\-64\), Int64\(8\)\) \* \(\- Int64\(9\)\) \+ Int64\(76\) \- Int64\(\-79\) \+ \(\- nullif\(Int64\(2\), Int64\(0\)\)\) 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\(40\) \+ \(\- Int64\(22\)\) \* coalesce\(Int64\(63\), Int64\(22\) \+ Int64\(\-97\) / Int64\(\-64\), Int64\(8\)\) \* \(\- Int64\(9\)\) \+ Int64\(76\) \- Int64\(\-79\) \+ \(\- nullif\(Int64\(2\), Int64\(0\)\)\) 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 40 + - + ( + 22 ) * + COALESCE ( + 63, + 22 + - 97 / - 64, + + 8 ) * - + 9 + + + 76 - + - 79 + - NULLIF ( + 2, ( + 0 ) ) AS col1, COUNT ( * ) AS col1 query I rowsort @@ -52059,7 +52059,7 @@ SELECT DISTINCT - 31 + 91 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col1" at position 0 and "Int64\(53\) \+ 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\) AS col1" at position 0 and "Int64\(53\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 58 AS col1, 53 + + COUNT ( * ) AS col1 query II rowsort label-9893 diff --git a/data/sqlite/random/expr/slt_good_50.slt b/data/sqlite/random/expr/slt_good_50.slt index 0ec424a..c867719 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 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\. SELECT - 26 / 59 / - - COUNT ( * ) + - 32 * - - COUNT ( * ) + + 36 + + CAST ( - + 66 AS INTEGER ) col1, - CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col1 query I rowsort @@ -4884,7 +4884,7 @@ SELECT DISTINCT 83 + - ( - COUNT ( * ) ) + + 31 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 91 -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\(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 "Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col0, 91 AS col0 query I rowsort @@ -5632,7 +5632,7 @@ SELECT SUM ( DISTINCT - - 84 ), + 72 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) AS col2" at position 0 and "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 "Int64\(\-71\) AS col2" at position 0 and "Int64\(\-73\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 71 AS col2, - 73 + COUNT ( * ) AS col2 query I rowsort label-1071 @@ -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 Int32\) 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 @@ -9629,7 +9629,7 @@ SELECT + 30 * COUNT ( * ) - 74 * - 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2352 # Datafusion - Expected - -95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(42\)\) \* Int64\(56\) \* count\(Int64\(1\)\) AS count\(\*\) 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\(42\)\) \* Int64\(56\) \* count\(Int64\(1\)\) (AS count\(\*\) )?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 - + 42 * 56 * COUNT ( * ) col1, - 95 AS col1 query I rowsort label-1829 @@ -11121,7 +11121,7 @@ SELECT + COUNT ( * ) * + COUNT ( * ) + + 75 AS col2 # Datafusion - Expected - 2670 # Datafusion - Expected - -210 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) \* Int64\(30\) 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 "Int64\(89\) \* Int64\(30\) 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 89 * + 30 AS col2, + 5 * + - 42, COUNT ( * ) AS col2 query II rowsort @@ -11842,7 +11842,7 @@ SELECT ALL + 91 + + - COUNT ( - 68 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 65 -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\(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\(\*\) )?AS col2" at position 0 and "Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, 65 AS col2 query I rowsort label-2252 @@ -12030,7 +12030,7 @@ SELECT - 56 * 62 * - 74 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -98 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT Int64\(\-98\)\) AS col2" at position 0 and "Int64\(\-1\) \+ 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\(DISTINCT Int64\(\-98\)\) AS col2" at position 0 and "Int64\(\-1\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT SUM ( DISTINCT - 98 ) AS col2, - 1 + + + COUNT ( * ) AS col2 query I rowsort @@ -18076,7 +18076,7 @@ SELECT ALL + MIN ( - + 17 ) 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 col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col1, - COUNT ( * ) + + 20 AS col1 query II rowsort @@ -18682,7 +18682,7 @@ SELECT ALL COUNT ( * ) * 31 / + 18 + + + 9 + + 19 * - 15 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 23 -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\(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\(\*\) )?AS col0" at position 0 and "\(\- sum\(Int64\(\-23\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, - SUM ( - 23 ) AS col0 query I rowsort label-3560 @@ -20778,7 +20778,7 @@ SELECT DISTINCT + 45 + - COUNT ( * ) + 68 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \+ 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 "Int64\(62\) \+ 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 DISTINCT 62 + + COUNT ( * ) AS col1, 71 col1 query I rowsort @@ -29399,7 +29399,7 @@ SELECT CAST ( - ( 15 ) AS INTEGER ) * + 86 * - + 96 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 144 -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\(87\) \+ 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(87\) \+ Int64\(57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col2, 87 + 57 AS col2 query II rowsort @@ -31331,7 +31331,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 6 -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\) AS col1" at position 1 have the same name\. Consider aliasing \("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\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, 6 AS col1 query I rowsort label-5975 @@ -31659,7 +31659,7 @@ SELECT DISTINCT - - COUNT ( * ) * - 90 + - MAX ( DISTINCT + 47 ) + + 52 + 13 - + # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 100 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) / Int64\(39\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(5\) \* \(\- 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 "Int64\(95\) / Int64\(39\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(5\) \* \(\- Int64\(\-20\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 95 / 39 + COUNT ( * ) AS col1, 5 * - - 20 AS col1 query I rowsort label-6038 @@ -32519,7 +32519,7 @@ SELECT - ( 93 ) * + - ( - ( - 29 ) ) / NULLIF ( + COUNT ( * ), - + 64 * - COUNT # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(43\) / 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\(\-40\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(43\) / count\(Int64\(\-98\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 40 * - COUNT ( * ) - + COUNT ( * ) AS col1, 43 / COUNT ( ALL - 98 ) AS col1 query I rowsort label-6200 @@ -33595,7 +33595,7 @@ SELECT SUM ( DISTINCT 96 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 68 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, 68 AS col0 query I rowsort label-6402 @@ -35175,7 +35175,7 @@ SELECT ALL + 0 AS col2, COUNT ( * ) - - 24 + + + 15 + + + 83 # 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\(48\) 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\(48\) 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 + 48 AS col2, + COUNT ( * ) AS col2 query II rowsort label-6703 @@ -36001,7 +36001,7 @@ SELECT ALL - SUM ( + 47 ) * - COUNT ( + NULLIF ( - 17, + 3 ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - 11231 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- max\(Int64\(89\)\)\)\) AS col2" at position 0 and "Int64\(6\) \* Int64\(93\) \* Int64\(20\) \+ Int64\(70\) \+ 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\(Int64\(89\)\)\)\) AS col2" at position 0 and "Int64\(6\) \* Int64\(93\) \* Int64\(20\) \+ Int64\(70\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - - MAX ( + + 89 ) AS col2, + 6 * 93 * + ( + + 20 ) + 70 + + COUNT ( * ) AS col2 query I rowsort @@ -36054,7 +36054,7 @@ SELECT ALL 55 + + COUNT ( * ) + - 34 - CASE + + 96 WHEN + 39 THEN NULL WHEN 39 T # 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 "Int64\(45\) 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\(45\) 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 45 AS col0, + COUNT ( * ) AS col0 query I rowsort label-6871 @@ -39053,7 +39053,7 @@ SELECT + 96 + + 42 # 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 "count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 COUNT ( * ) AS col2, - 37 AS col2 query I rowsort @@ -40968,7 +40968,7 @@ SELECT ALL COUNT ( * ), - 42 + - - 54 / + + NULLIF ( - 30, 92 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 167 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(88\) \- Int64\(\-80\) \* count\(Int64\(1\)\) AS count\(\*\) 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\(\-2\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(88\) \- Int64\(\-80\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 2 + + + COUNT ( * ) + 88 - - 80 * COUNT ( * ) AS col0, 89 AS col0 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_51.slt b/data/sqlite/random/expr/slt_good_51.slt index 4e525a3..275c563 100644 --- a/data/sqlite/random/expr/slt_good_51.slt +++ b/data/sqlite/random/expr/slt_good_51.slt @@ -1342,7 +1342,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -91 # Datafusion - Expected - -8813 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) AS col2" at position 0 and "Int64\(19\) \+ Int64\(\-96\) \* \(\- 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\(\-91\) AS col2" at position 0 and "Int64\(19\) \+ Int64\(\-96\) \* \(\- Int64\(\-92\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 91 col2, 19 + - 96 * - - 92 * COUNT ( * ) AS col2 query I rowsort label-245 @@ -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 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\. 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 @@ -2748,7 +2748,7 @@ SELECT ALL + - NULLIF ( 12, - 63 * 32 ) * + 29 / + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 2992 -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\(\-88\) \* 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(\-88\) \* Int64\(\-34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col1, - 88 * - 34 AS col1 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 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\. 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 @@ -8917,7 +8917,7 @@ SELECT DISTINCT - ( - 56 ) + 1 + + + 96 * MAX ( 27 ) + + 58 * - 63, 84 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - -49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-48\) \- nullif\(count\(Int64\(1\)\) AS count\(\*\), 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\(\-62\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(\-48\) \- nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-68\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 62 * COUNT ( * ) AS col0, - 48 - NULLIF ( + + COUNT ( * ), - 68 ) col0 query I rowsort @@ -9976,7 +9976,7 @@ SELECT - + 4 col1, - 78 + + 68 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -63 -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\(\-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 "Int64\(\-63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) col2, - 63 AS col2 query I rowsort @@ -23409,7 +23409,7 @@ SELECT - + COUNT ( * ) + - - 21 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -1594 -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\(56\) \* \(\- Int64\(\-99\)\) \+ Int64\(83\) \* 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\(\*\) )?AS col2" at position 0 and "Int64\(56\) \* \(\- Int64\(\-99\)\) \+ Int64\(83\) \* Int64\(\-86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col2, 56 * - - 99 + + 83 * - 86 AS col2 query I rowsort label-4454 @@ -25059,7 +25059,7 @@ SELECT ALL - - 63 + + + CAST ( 28 AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -68 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) 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\(\-68\) 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 - 68 AS col1, COUNT ( * ) AS 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 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\. SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) AS col0, + COUNT ( * ) col0 query I rowsort label-4791 @@ -26094,7 +26094,7 @@ SELECT DISTINCT - + 55 * - + 77 + + + 97, - 16 * - 44 * 84 AS col0 # 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 "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\(\-80\)\) 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 - - 80 AS col1, + COUNT ( * ) AS col1 query I rowsort label-4968 @@ -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 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\. SELECT DISTINCT + COUNT ( * ) AS col0, 70 + CAST ( 40 AS INTEGER ) - - - 75 * + 65 * + 58 + - + 87 * - - 52 AS col0 query I rowsort @@ -27525,7 +27525,7 @@ SELECT + COUNT ( * ) + + 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) 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\) 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 col2, + ( + COUNT ( * ) ) AS col2 query I rowsort @@ -27612,7 +27612,7 @@ SELECT - COUNT ( - + 69 ) 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 "CASE Int64\(26\) WHEN \(\- coalesce\(Int64\(\-47\), \(\- avg\(Int64\(83\)\)\), Int64\(\-84\)\)\) THEN Int64\(86\) WHEN Int64\(\-36\) \+ Int64\(44\) THEN CASE count\(Int64\(1\)\) AS count\(\*\) WHEN \(\- Int64\(\-98\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-30\)\) THEN NULL ELSE \(\- \(\- Int64\(\-98\)\)\) END \+ Int64\(1\) 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\(26\) WHEN \(\- coalesce\(Int64\(\-47\), \(\- avg\(Int64\(83\)\)\), Int64\(\-84\)\)\) THEN Int64\(86\) WHEN Int64\(\-36\) \+ Int64\(44\) THEN CASE count\(Int64\(1\)\) AS count\(\*\) WHEN \(\- Int64\(\-98\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-30\)\) THEN NULL ELSE \(\- \(\- Int64\(\-98\)\)\) END \+ Int64\(1\) 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 CASE + 26 WHEN + - COALESCE ( + - 47, - AVG ( ALL ( 83 ) ), - 84 ) THEN 86 WHEN - 36 + 44 THEN + + CASE COUNT ( * ) WHEN - - 98 + + COUNT ( * ) + - ( - 30 ) THEN NULL ELSE - ( - - 98 ) END + + 1 ELSE NULL END AS col1, + COUNT ( * ) AS col1 query I rowsort @@ -29168,7 +29168,7 @@ SELECT + 27 col1, 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) 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\(86\) 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 + 86 AS col2, COUNT ( * ) AS col2 query II rowsort label-5553 @@ -30338,7 +30338,7 @@ SELECT ALL - NULLIF ( - 19, - 40 ) * 42 - 40 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col2" at position 0 and "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 "Int64\(98\) AS col2" at position 0 and "Int64\(\-33\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 98 AS col2, - 33 + COUNT ( * ) col2 query I rowsort label-5774 @@ -34346,7 +34346,7 @@ SELECT CASE + - 34 WHEN CAST ( 30 AS INTEGER ) THEN - NULLIF ( COUNT ( - 0 ), + # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - 2201 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col1" at position 0 and "Int64\(50\) \* Int64\(44\) \* count\(Int64\(13\)\) \+ Int64\(0\) \+ 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\) AS col1" at position 0 and "Int64\(50\) \* Int64\(44\) \* count\(Int64\(13\)\) \+ Int64\(0\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 89 AS col1, 50 * + 44 * COUNT ( + 13 ) + + - 0 + + + COUNT ( * ) col1 query I rowsort label-6543 @@ -36729,7 +36729,7 @@ SELECT ALL 90 / + - 11 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -99 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) 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\(\-99\) 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 - 99 AS col0, COUNT ( * ) AS col0 query II rowsort label-6993 @@ -38530,7 +38530,7 @@ SELECT - - ( - 92 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -258876 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) \* Int64\(54\) \* \(\- 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 "Int64\(\-94\) \* Int64\(54\) \* \(\- 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 - 94 * 54 * - - 51 AS col0, COUNT ( * ) AS col0 query I rowsort label-7335 @@ -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 Int32\) \* 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 @@ -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 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\. SELECT ALL + 77 * - - 58 + + - 52 + ( + CAST ( NULL AS INTEGER ) ) AS col0, 14 + + COUNT ( * ) AS col0 query II rowsort label-8814 @@ -47758,7 +47758,7 @@ SELECT - + 14 col0, + 2 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 "Int64\(30\) 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\(30\) 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 30 AS col2, + COUNT ( * ) AS col2 query I rowsort @@ -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 Int32\) 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: @@ -49566,7 +49566,7 @@ SELECT 51, 82 * - + 41 + + ( - 88 ) AS col0 # Datafusion - Expected - -2 # Datafusion - Expected - 70 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) 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 "Int64\(70\) 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 - + 2, + 70 AS col2, COUNT ( * ) AS col2 query II rowsort label-9438 diff --git a/data/sqlite/random/expr/slt_good_52.slt b/data/sqlite/random/expr/slt_good_52.slt index 9a64da9..3a5afef 100644 --- a/data/sqlite/random/expr/slt_good_52.slt +++ b/data/sqlite/random/expr/slt_good_52.slt @@ -3614,7 +3614,7 @@ SELECT 78 / - + 63 + - 26 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 col2" at position 0 and "Int64\(2\) \* \(\- min\(DISTINCT 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(2\) \* \(\- min\(DISTINCT Int64\(\-21\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col2, 2 * - MIN ( DISTINCT - 21 ) col2 query I rowsort @@ -8123,7 +8123,7 @@ SELECT - 79 / 53 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -1671 -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\(43\) \* coalesce\(\(\- Int64\(39\)\), Int64\(12\), Int64\(\-44\)\) \+ Int64\(55\) \+ 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(43\) \* coalesce\(\(\- Int64\(39\)\), Int64\(12\), Int64\(\-44\)\) \+ Int64\(55\) \+ Int64\(\-49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, 43 * + COALESCE ( - + 39, 12, - 44 ) + + 55 + - 49 AS col2 query I rowsort label-1547 @@ -8701,7 +8701,7 @@ SELECT ALL - 85 AS col0, - MAX ( 10 ) + 52 # 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 "Int64\(42\) \* Int64\(3\) \+ \(\- sum\(Int64\(53\)\)\) \+ \(\- 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\(\*\) )?AS col1" at position 0 and "Int64\(42\) \* Int64\(3\) \+ \(\- sum\(Int64\(53\)\)\) \+ \(\- Int64\(\-22\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, + 42 * 3 + - SUM ( 53 ) + - - 22 AS col1 query I rowsort label-1658 @@ -9834,7 +9834,7 @@ SELECT SUM ( DISTINCT + 98 ) / - 27 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 81 -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 "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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) * COUNT ( * ) AS col2, 81 AS col2 query I rowsort @@ -17656,7 +17656,7 @@ SELECT DISTINCT + 54 + + 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - 893 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \* coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(37\)\) \+ \(\- Int64\(\-41\)\) \+ Int64\(73\) \* Int64\(13\) 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\(97\) \* coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(37\)\) \+ \(\- Int64\(\-41\)\) \+ Int64\(73\) \* Int64\(13\) 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 97 * COALESCE ( - COUNT ( * ), + 37 ) + - - 41 + 73 * + 13 AS col0, COUNT ( * ) AS col0 query I rowsort @@ -17688,7 +17688,7 @@ SELECT - - NULLIF ( - + 77, - COUNT ( * ) * - 9 + + ( 39 ) + 21 * + + COUNT ( * # 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 "\(\- Int64\(77\)\) 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\(77\)\) 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 - + 77 AS col1, COUNT ( * ) AS col1 query I rowsort label-3372 @@ -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 Int32\) \* 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 @@ -21906,7 +21906,7 @@ SELECT ALL 6 * + + 35 * 67 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) / Int64\(\-60\) AS col1" at position 0 and "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\(76\) / Int64\(\-60\) AS col1" at position 0 and "Int64\(62\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 76 / + - 60 AS col1, + 62 * + COUNT ( * ) col1 query II rowsort label-4178 @@ -21945,7 +21945,7 @@ SELECT + + 20 - NULLIF ( - SUM ( ALL - 69 ), COUNT ( * ) + - 0 ) AS col0 # Datafusion - Expected - -89 # Datafusion - Expected - 1 # Datafusion - Expected - 6 -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 "Int64\(6\) 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 "Int64\(6\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 89, COUNT ( * ) AS col1, + 6 AS col1 query I rowsort @@ -33090,7 +33090,7 @@ SELECT - 43 * 53 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -144 -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\(17\) \+ 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(17\) \+ Int64\(\-72\) \- Int64\(89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, 17 + - 72 - + 89 AS col1 query I rowsort label-6316 @@ -35716,7 +35716,7 @@ SELECT DISTINCT + 94 * + 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - 2080 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col1" at position 0 and "Int64\(\-25\) \* \(\- Int64\(87\)\) \+ Int64\(\-95\) \* 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\(44\) AS col1" at position 0 and "Int64\(\-25\) \* \(\- Int64\(87\)\) \+ Int64\(\-95\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 44 AS col1, - 25 * - + 87 + - 95 * + COUNT ( * ) AS col1 query I rowsort @@ -36315,7 +36315,7 @@ SELECT ALL + 57 - + + 66 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) 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\) 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 + 7 AS col2, COUNT ( * ) AS col2 query I rowsort label-6929 @@ -38858,7 +38858,7 @@ SELECT ALL + 33 + - 67 * - NULLIF ( + 65, + + 77 - - 84 ) - - + 52 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 776 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) \- Int64\(\-85\) / \(\- Int64\(\-7\)\) \+ Int64\(20\) \* Int64\(40\) AS col2" at position 0 and "Int64\(77\) \* 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\(\-36\) \- Int64\(\-85\) / \(\- Int64\(\-7\)\) \+ Int64\(20\) \* Int64\(40\) AS col2" at position 0 and "Int64\(77\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 36 - + - 85 / - - 7 + + 20 * + ( 40 ) AS col2, + 77 * COUNT ( * ) AS col2 query I rowsort @@ -39337,7 +39337,7 @@ SELECT ALL + 63 + - NULLIF ( ( 62 ), + + 95 ) col1, + 13 * - 16 # 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\(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\(15\) 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 + 15 AS col1, + COUNT ( * ) AS col1 query I rowsort label-7500 @@ -41402,7 +41402,7 @@ SELECT DISTINCT CASE + 46 WHEN + + 40 THEN - 14 ELSE + 90 + - + 44 + + + SUM ( A # 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 "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(30\) 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\(30\) 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 ( * ) * 30 AS col1, + COUNT ( * ) AS col1 query I rowsort label-7892 @@ -42066,7 +42066,7 @@ NULL # Datafusion - Expected - 97 # Datafusion - Expected - 6232 # Datafusion - Expected - -57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) \* Int64\(76\) AS col1" at position 1 and "\(\- Int64\(57\)\) \* 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\(82\) \* Int64\(76\) AS col1" at position 1 and "\(\- Int64\(57\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 97, 82 * + 76 AS col1, - ( ( + + 57 ) ) * + COUNT ( * ) AS col1 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 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\. 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 @@ -45863,7 +45863,7 @@ SELECT ALL 84 AS col1, - 42 + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2885 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \* Int64\(86\) \+ Int64\(\-38\) \- count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(34\) \* Int64\(86\) \+ Int64\(\-38\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 34 * 86 + - 38 - COUNT ( * ) AS col2, 6 AS col2 # Datafusion - Datafusion expected results: @@ -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 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\. 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 diff --git a/data/sqlite/random/expr/slt_good_53.slt b/data/sqlite/random/expr/slt_good_53.slt index 5a43a07..1de63a2 100644 --- a/data/sqlite/random/expr/slt_good_53.slt +++ b/data/sqlite/random/expr/slt_good_53.slt @@ -2056,7 +2056,7 @@ SELECT - ( + COUNT ( * ) ) + + 22 * 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) 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\(50\) 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 50 AS col1, COUNT ( * ) AS col1 query I rowsort @@ -2875,7 +2875,7 @@ SELECT ( - + COALESCE ( - 90, MIN ( DISTINCT + 10 ) ) ) + ( - COUNT ( * ) ) * - # Datafusion - Datafusion expected results: # Datafusion - Expected - -75 # Datafusion - Expected - 1 -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\(\*\) AS col0" at position 1 have the 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\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 75 AS col0, COUNT ( * ) col0 query I rowsort label-539 @@ -7140,7 +7140,7 @@ SELECT 6 + - - 50 AS col2, 78 * - 86 * + ( + 81 ) + + 44 * - 56 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) 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\(78\) 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 78 AS col1, COUNT ( * ) AS col1 query I rowsort @@ -8958,7 +8958,7 @@ SELECT DISTINCT - + ( + MAX ( - ( + 40 ) ) ) + + + 17 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) 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\(86\) 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 86 AS col0, + COUNT ( * ) AS col0 query II rowsort label-1694 @@ -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 Int32\)" 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 @@ -14063,7 +14063,7 @@ SELECT ALL 23 / + 15 + ( - 75 ) + - 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col0" at position 0 and "\(\- CASE \(\- Int64\(14\)\) WHEN Int64\(43\) THEN Int64\(30\) \+ Int64\(1\) \* Int64\(87\) \+ Int64\(\-17\) ELSE Int64\(\-89\) 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\(64\) AS col0" at position 0 and "\(\- CASE \(\- Int64\(14\)\) WHEN Int64\(43\) THEN Int64\(30\) \+ Int64\(1\) \* Int64\(87\) \+ Int64\(\-17\) ELSE Int64\(\-89\) END\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 64 AS col0, - CASE - + 14 WHEN + 43 THEN 30 + + 1 * + 87 + + - 17 ELSE + - 89 END + + COUNT ( * ) AS col0 query I rowsort label-2667 @@ -16440,7 +16440,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # 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\(7\) \+ 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(7\) \+ Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, 7 + + 31 AS col0 query I rowsort label-3124 @@ -18546,7 +18546,7 @@ SELECT ALL - - 70 + 52 AS col1, + 29 * COUNT ( * ) + - + 33 * 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(27\) / 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\(95\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(27\) / Int64\(\-80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 95 * COUNT ( * ) AS col0, 27 / - 80 col0 query I rowsort label-3522 @@ -19716,7 +19716,7 @@ SELECT ALL + 55 * + 49 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) 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\(26\) 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 26 AS col0, COUNT ( * ) AS col0 query II rowsort label-3743 @@ -25741,7 +25741,7 @@ SELECT ALL + COUNT ( * ) AS col0, 79 * - ( - 29 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 359660 -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\(90\) \* Int64\(74\) \* Int64\(54\) \+ \(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(90\) \* Int64\(74\) \* Int64\(54\) \+ \(\- Int64\(\-20\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, + COUNT ( * ) * + 90 * 74 * + + 54 + - - 20 col2 query I rowsort @@ -29109,7 +29109,7 @@ SELECT 82 - 99 * - 93 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3864 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-46\)\) \* Int64\(\-84\) 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\(\-46\)\) \* Int64\(\-84\) 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 - - 46 * - 84 AS col2, + COUNT ( * ) col2 query II rowsort label-5530 @@ -31015,7 +31015,7 @@ SELECT 39 * - 46 # 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\(0\) \* count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(0\) \* count\(Int64\(1\)\) (AS count\(\*\) )?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 + 0 * + COUNT ( * ) AS col1, 65 col1 query I rowsort label-5893 @@ -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 Int32\)\) 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 @@ -39512,7 +39512,7 @@ SELECT DISTINCT - 15 * - - CAST ( - 56 AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 113 # Datafusion - Expected - 858 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \+ Int64\(53\) AS col0" at position 0 and "Int64\(\-13\) \* \(\- Int64\(66\)\) / 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\(60\) \+ Int64\(53\) AS col0" at position 0 and "Int64\(\-13\) \* \(\- Int64\(66\)\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 60 + + + 53 AS col0, - 13 * - ( + 66 ) / COUNT ( * ) AS col0 query I rowsort label-7520 @@ -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 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\. 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 @@ -42833,7 +42833,7 @@ SELECT ALL + 51 * + - 57 AS col0 # 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\(\-84\) 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\(\-84\) 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 - 84 AS col0, COUNT ( * ) AS col0 query I rowsort @@ -47368,7 +47368,7 @@ SELECT + CAST ( COUNT ( * ) AS INTEGER ) AS col1 # Datafusion - Expected - 49 # Datafusion - Expected - -5413 # Datafusion - Expected - 8436 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col2" at position 0 and "sum\(\(\- \(\- Int64\(\-98\)\)\)\) \+ Int64\(3\) \+ Int64\(93\) \+ Int64\(\-82\) \* 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\(49\) AS col2" at position 0 and "sum\(\(\- \(\- Int64\(\-98\)\)\)\) \+ Int64\(3\) \+ Int64\(93\) \+ Int64\(\-82\) \* Int64\(66\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 49 AS col2, SUM ( ALL - - ( + - 98 ) ) + + 3 + + 93 + - 82 * 66 + COUNT ( * ) AS col2, - 52 * - 71 * COUNT ( * ) + + 13 + - 57 * - 83 AS col0 query I rowsort label-9017 @@ -48411,7 +48411,7 @@ SELECT + + 12 * - COUNT ( * ) + + 83 * 68 - - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -36 -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\(23\) \+ 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 "Int64\(23\) \+ Int64\(\-59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col2, + 23 + - 59 AS col2 query II rowsort label-9216 @@ -48703,7 +48703,7 @@ SELECT + - 89 AS col0, ( + 4 ) + 2 * 65 * + 98 # 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\(8\) \* \(\- CASE \(\- Int64\(\-94\)\) WHEN \(\- max\(Int64\(60\)\)\) \+ Int64\(54\) THEN Int64\(93\) \+ \(\- Int64\(\-32\)\) ELSE NULL END\) \* Int64\(\-13\) \+ Int64\(21\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- min\(Int64\(26\)\)\) \+ Int64\(92\) AS col0" at position 0 and "Int64\(\-44\) \* 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\(8\) \* \(\- CASE \(\- Int64\(\-94\)\) WHEN \(\- max\(Int64\(60\)\)\) \+ Int64\(54\) THEN Int64\(93\) \+ \(\- Int64\(\-32\)\) ELSE NULL END\) \* Int64\(\-13\) \+ Int64\(21\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- min\(Int64\(26\)\)\) \+ Int64\(92\) AS col0" at position 0 and "Int64\(\-44\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 8 * - CASE - - 94 WHEN - MAX ( 60 ) + + 54 THEN + 93 + - - 32 ELSE NULL END * - 13 + + 21 + - ( COUNT ( * ) ) * - + MIN ( + 26 ) + + 92 AS col0, - 44 * COUNT ( * ) AS col0 query I rowsort label-9272 @@ -49143,7 +49143,7 @@ SELECT ALL 44 * 64 # 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 "CASE Int64\(39\) WHEN count\(Int64\(32\)\) \- \(\- Int64\(\-40\)\) THEN Int64\(92\) END AS col0" at position 0 and "\(\- count\(\(\- Int64\(\-98\)\)\)\) \+ \(\- Int64\(88\)\) \+ 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 "CASE Int64\(39\) WHEN count\(Int64\(32\)\) \- \(\- Int64\(\-40\)\) THEN Int64\(92\) END AS col0" at position 0 and "\(\- count\(\(\- Int64\(\-98\)\)\)\) \+ \(\- Int64\(88\)\) \+ 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 CASE + + 39 WHEN COUNT ( ALL 32 ) - - - 40 THEN + 92 END AS col0, - COUNT ( - - 98 ) + - + 88 + + COUNT ( * ) * + COUNT ( * ) AS col0 query I rowsort label-9357 @@ -50371,7 +50371,7 @@ SELECT ALL + 74 / + - COUNT ( * ) AS col0 # 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\) 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\(0\) 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 + 0 AS col2, COUNT ( * ) AS col2 query I rowsort @@ -50543,7 +50543,7 @@ SELECT ALL + + 92 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 83 -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\(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\(\*\) )?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 ( * ) AS col2, 83 AS col2 query I rowsort label-9630 diff --git a/data/sqlite/random/expr/slt_good_54.slt b/data/sqlite/random/expr/slt_good_54.slt index 53da9e2..bede293 100644 --- a/data/sqlite/random/expr/slt_good_54.slt +++ b/data/sqlite/random/expr/slt_good_54.slt @@ -677,7 +677,7 @@ SELECT ALL CAST ( 32 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -7 -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 "max\(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\(\*\) )?AS col1" at position 0 and "max\(Int64\(\-7\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, MAX ( ALL + - 7 ) col1 query I rowsort label-126 @@ -856,7 +856,7 @@ SELECT COUNT ( * ) col1, 24 # 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 "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\(\*\)\) 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 DISTINCT + - COUNT ( * ) AS col1, COUNT ( * ) * + COUNT ( * ) AS col1 query I rowsort label-159 @@ -2798,7 +2798,7 @@ SELECT 35 * - 46 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) 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\(27\) 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 27 col0, COUNT ( * ) col0 query I rowsort @@ -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 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\. SELECT + CAST ( NULL AS INTEGER ) AS col1, + COUNT ( * ) AS col1 query I rowsort label-1343 @@ -10394,7 +10394,7 @@ SELECT 18 * + + ( + 91 ) + - 87 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 99 -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\(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\(\*\) )?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 + + COUNT ( * ) AS col2, + 99 AS col2 query I rowsort @@ -13452,7 +13452,7 @@ SELECT COUNT ( * ) * + + 66 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 "Int64\(1\) 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\) 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 1 AS col1, COUNT ( * ) AS col1 query II rowsort @@ -16347,7 +16347,7 @@ NULL # 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 "max\(Int64\(\-35\)\) 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\(Int64\(\-35\)\) 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 ( ALL - 35 ) AS col1, COUNT ( * ) AS col1 query I rowsort @@ -16630,7 +16630,7 @@ SELECT - - 24 * - 71 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 32 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, 32 col1 query I rowsort @@ -18600,7 +18600,7 @@ SELECT CAST ( - 22 AS INTEGER ) # 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 "count\(Int64\(1\)\) AS count\(\*\) / 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\(\*\) )?AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, COUNT ( * ) / + 23 AS col0 query I rowsort label-3610 @@ -21039,7 +21039,7 @@ SELECT DISTINCT 54 * 70 - + + 98 AS col1 # 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 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, + 95 AS col0 query I rowsort label-4081 @@ -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 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\. SELECT CAST ( NULL AS INTEGER ) AS col1, + COUNT ( * ) AS col1 query I rowsort label-4133 @@ -23417,7 +23417,7 @@ SELECT ALL 44 - 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) 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\(87\) 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 + 87 col2, + COUNT ( * ) col2 query I rowsort @@ -24444,7 +24444,7 @@ SELECT 69 * - 44 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) 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\(91\) 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 91 col1, COUNT ( * ) AS col1 query I rowsort label-4740 @@ -24575,7 +24575,7 @@ NULL # 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\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 COUNT ( * ) AS col0, - ( - 29 ) AS col0 query I rowsort label-4765 @@ -27969,7 +27969,7 @@ SELECT ALL - 44 * - 18 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 "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\(\*\) )?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 ( * ) col1, COUNT ( * ) AS col1 query I rowsort label-5421 @@ -29093,7 +29093,7 @@ SELECT + 39 + - - 44 + + 29 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -90 -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\(\-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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 COUNT ( * ) col1, - 90 AS col1 query I rowsort label-5639 @@ -29897,7 +29897,7 @@ SELECT - 94 / + - MIN ( ALL + ( - + ( + - 32 ) ) ) # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col1, + COUNT ( * ) AS col1 query I rowsort @@ -31870,7 +31870,7 @@ SELECT DISTINCT - COUNT ( * ) + - 72 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -47 -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\(\-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\(1\)\) (AS count\(\*\) )?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 ( * ) AS col0, - 47 AS col0 query II rowsort label-6179 @@ -33890,7 +33890,7 @@ SELECT DISTINCT 89 * - COUNT ( * ) 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 "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 "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 COUNT ( * ) AS col2, COUNT ( * ) AS col2 query II rowsort @@ -36824,7 +36824,7 @@ SELECT ALL + - 28 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 96 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col1, 96 AS col1 query I rowsort @@ -38276,7 +38276,7 @@ SELECT DISTINCT 30 * + + 1 AS col2 # 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\(\-34\) 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\(\-34\) 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 - 34 col1, COUNT ( * ) AS col1 query II rowsort @@ -39337,7 +39337,7 @@ SELECT ALL + MIN ( - + 17 ) 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 col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col1, - COUNT ( * ) + + 20 AS col1 query I rowsort @@ -39423,7 +39423,7 @@ SELECT + 66 / + + 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 23 -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\(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\(\*\) )?AS col0" at position 0 and "\(\- sum\(Int64\(\-23\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, - SUM ( - 23 ) AS col0 query I rowsort label-7638 @@ -41746,7 +41746,7 @@ SELECT 72, + 98 col0 # 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 "Int64\(45\) 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\(45\) 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 45 AS col0, + COUNT ( * ) AS col0 query I rowsort label-8089 @@ -45282,7 +45282,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -63 -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\(\-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 "Int64\(\-63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) col2, - 63 AS col2 query I rowsort @@ -47406,7 +47406,7 @@ SELECT + COUNT ( - 50 ) + + - 79 # Datafusion - Datafusion expected results: # Datafusion - Expected - -68 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) 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\(\-68\) 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 - 68 AS col1, COUNT ( * ) AS col1 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 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\. SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) AS col0, + COUNT ( * ) col0 query I rowsort @@ -47517,7 +47517,7 @@ SELECT - 62 * 10 AS col0 # 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 "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\(\-80\)\) 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 - - 80 AS col1, + COUNT ( * ) AS col1 query I rowsort label-9208 @@ -47870,7 +47870,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) 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\(86\) 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 + 86 AS col2, COUNT ( * ) AS col2 query II rowsort label-9276 diff --git a/data/sqlite/random/expr/slt_good_55.slt b/data/sqlite/random/expr/slt_good_55.slt index 50ea41e..7b792e1 100644 --- a/data/sqlite/random/expr/slt_good_55.slt +++ b/data/sqlite/random/expr/slt_good_55.slt @@ -1839,7 +1839,7 @@ SELECT + + 49 * 68 - + - 38 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) 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\(\-47\) 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 - 47 AS col2, COUNT ( * ) col2 query I rowsort label-344 @@ -2945,7 +2945,7 @@ SELECT - 2 - + NULLIF ( - + 29, - - NULLIF ( - + 94, - 95 + + COUNT ( * ) + + 87 # Datafusion - Datafusion expected results: # Datafusion - Expected - 561600 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \* Int64\(36\) \* Int64\(26\) \* Int64\(25\) 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\(24\) \* Int64\(36\) \* Int64\(26\) \* Int64\(25\) 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 + 24 * 36 * + 26 * + 25 AS col2, + COUNT ( * ) AS col2 query I rowsort @@ -4107,7 +4107,7 @@ SELECT + 78 AS col0, 49 # 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 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\(15\) 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 15 AS col2, COUNT ( * ) col2 query II rowsort @@ -11925,7 +11925,7 @@ SELECT + - 95 + - 13 * + + 28 - - 56 * + + 36 * + 85 + - ( + - ( 24 ) ) - + 66 c # Datafusion - Datafusion expected results: # Datafusion - Expected - 218700 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \* Int64\(2\) \* Int64\(15\) \* 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 "Int64\(90\) \* Int64\(2\) \* Int64\(15\) \* 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 + + 90 * 2 * 15 * + + 81 AS col1, COUNT ( * ) AS col1 query I rowsort label-2261 @@ -13912,7 +13912,7 @@ SELECT ALL - MAX ( - 72 ) # Datafusion - Expected - -35 # Datafusion - Expected - 1 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 and "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 and "Int64\(32\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 35, + COUNT ( * ) AS col2, 32 AS col2 # Datafusion - Datafusion expected results: @@ -15261,7 +15261,7 @@ SELECT ALL 87 + - - SUM ( ALL + 67 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 49 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, + 49 AS col2 query I rowsort label-2902 @@ -16196,7 +16196,7 @@ SELECT DISTINCT + - 37 * 39 - - ( + COALESCE ( 31, - 88 ) ) 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 "\(\- 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\(\*\)\) 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 ( * ) col0, COUNT ( * ) AS col0 query I rowsort label-3081 @@ -16626,7 +16626,7 @@ SELECT 98 + + 55 - - 49 # Datafusion - Expected - 34 # Datafusion - Expected - 1 # Datafusion - Expected - -22161 -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\(79\) \+ Int64\(\-91\) \* Int64\(\-3\) \* Int64\(\-86\) \+ Int64\(\-96\) \- Int64\(72\) \+ Int64\(\-74\) \* Int64\(\-19\) 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\(79\) \+ Int64\(\-91\) \* Int64\(\-3\) \* Int64\(\-86\) \+ Int64\(\-96\) \- Int64\(72\) \+ Int64\(\-74\) \* Int64\(\-19\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 34, COUNT ( * ) AS col0, 79 + - 91 * - 3 * - 86 + + - 96 - 72 + - 74 * - 19 AS col0 query I rowsort @@ -17007,7 +17007,7 @@ SELECT + 49 / - 81 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 4 -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\(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\(4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col1, + 4 AS col1 query I rowsort @@ -17364,7 +17364,7 @@ SELECT DISTINCT 99 + + 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 "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\(\-43\) 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 - 43 col0, + COUNT ( * ) AS col0 query I rowsort @@ -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 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\. 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 @@ -35308,7 +35308,7 @@ SELECT ALL 17 * - 39 + 84 AS col1 # 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 "\(\- Int64\(\-29\)\) / count\(Int64\(50\)\) 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\)\) / count\(Int64\(50\)\) 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 ) / COUNT ( 50 ) AS col0, COUNT ( * ) AS col0 query II rowsort label-6728 @@ -35615,7 +35615,7 @@ NULL # 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 "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\(\-80\) 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 - 80 AS col1, COUNT ( * ) AS col1 query I rowsort label-6787 @@ -35800,7 +35800,7 @@ SELECT 98 * + 42 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 172 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \+ Int64\(84\) 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\(88\) \+ Int64\(84\) 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 88 + + 84 col0, COUNT ( * ) AS col0 query I rowsort label-6823 @@ -38363,7 +38363,7 @@ SELECT 95 / 79 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \+ Int64\(78\) 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\(10\) \+ Int64\(78\) 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 10 + + + 78 AS col1, COUNT ( * ) AS col1 query I rowsort label-7308 @@ -39776,7 +39776,7 @@ SELECT ALL 58 + - + 97 # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col0, COUNT ( * ) AS col0 query I rowsort @@ -44515,7 +44515,7 @@ SELECT 93, 62 / - - NULLIF ( + + 70, + - 89 ) * - COUNT ( * ) + CAST ( + - COUNT # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \+ Int64\(32\) \* 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\(39\) \+ Int64\(32\) \* 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 + 39 + 32 * COUNT ( * ) AS col0, - COUNT ( * ) AS col0 query I rowsort @@ -44779,7 +44779,7 @@ SELECT 89 * - ( - MIN ( DISTINCT + 30 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col2" at position 0 and "Int64\(\-22\) \- 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\(24\) AS col2" at position 0 and "Int64\(\-22\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 24 AS col2, ( - 22 ) - + COUNT ( * ) AS col2 query I rowsort label-8539 @@ -45305,7 +45305,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\(1\) AS col0" at position 0 and "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\(1\) AS col0" at position 0 and "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 DISTINCT 1 AS col0, CAST ( NULL AS FLOAT8 ) * + COUNT ( * ) AS col0 query I rowsort label-8639 @@ -45357,7 +45357,7 @@ SELECT DISTINCT 37 / - 77 * + + 95 + + + 60 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 194560 -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\) \* Int64\(\-80\) \* 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(\-38\) \* Int64\(\-80\) \* Int64\(64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col2, - 38 * - 80 * + + 64 AS col2 query I rowsort label-8649 @@ -46329,7 +46329,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 2409 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(86\)\) \* Int64\(\-28\) \+ 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\(86\)\) \* Int64\(\-28\) \+ 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 ( - + 86 ) * - 28 + COUNT ( * ) col2, - COUNT ( * ) AS col2 query I rowsort @@ -48058,7 +48058,7 @@ SELECT 66 + - COUNT ( * ) 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\(28\) \* min\(Int64\(27\)\) \* CASE Int64\(\-94\) WHEN Int64\(\-46\) THEN Int64\(76\) \* CAST\(NULL AS Float64\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(96\) WHEN Int64\(28\) \* nullif\(\(\- Int64\(76\)\), \(\- Int64\(\-20\)\)\) THEN NULL ELSE NULL END / 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 "Int64\(28\) \* min\(Int64\(27\)\) \* CASE Int64\(\-94\) WHEN Int64\(\-46\) THEN Int64\(76\) \* CAST\(NULL AS Float64\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(96\) WHEN Int64\(28\) \* nullif\(\(\- Int64\(76\)\), \(\- Int64\(\-20\)\)\) THEN NULL ELSE NULL END / 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 ALL + 28 * + MIN ( ALL 27 ) * CASE + - 94 WHEN - 46 THEN + 76 * + CAST ( NULL AS FLOAT8 ) * COUNT ( * ) * 96 WHEN + 28 * + + NULLIF ( ( - + 76 ), - - 20 ) THEN NULL ELSE NULL END / + 77 AS col0, COUNT ( * ) AS col0 query I rowsort label-9167 @@ -48645,7 +48645,7 @@ SELECT ALL ( - NULLIF ( + - SUM ( DISTINCT 23 ), CAST ( CASE - + 80 WHEN - 78 TH # Datafusion - Datafusion expected results: # Datafusion - Expected - -67 # Datafusion - Expected - -38 -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 "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\(\-68\) \+ 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 - 68 + + COUNT ( * ) AS col0, - 38 AS col0 query II rowsort label-9278 diff --git a/data/sqlite/random/expr/slt_good_56.slt b/data/sqlite/random/expr/slt_good_56.slt index 6239de4..086eade 100644 --- a/data/sqlite/random/expr/slt_good_56.slt +++ b/data/sqlite/random/expr/slt_good_56.slt @@ -1441,7 +1441,7 @@ SELECT ALL + MAX ( DISTINCT - - 7 ) / 51 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -33 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(DISTINCT Int64\(33\)\)\) 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 Int64\(33\)\)\) 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 + - MAX ( DISTINCT + 33 ) AS col1, + COUNT ( * ) AS col1 query I rowsort label-267 @@ -4587,7 +4587,7 @@ SELECT DISTINCT + 3 * + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - -54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) / Int64\(71\) \+ count\(Int64\(1\)\) AS count\(\*\) 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\(91\) / Int64\(71\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?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 91 / + 71 + + + COUNT ( * ) AS col2, - 54 AS col2 query I rowsort @@ -7294,7 +7294,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 1 -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\(\*\) AS col2" at position 1 have the 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\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 6 AS col2, COUNT ( * ) AS col2 query I rowsort @@ -9141,7 +9141,7 @@ SELECT ALL - 56 * + 96 * + 95 + - + 46 - 5 + COUNT ( DISTINCT - 68 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(67\), Int64\(\-7\) \+ Int64\(\-27\) \+ Int64\(\-58\)\) AS col0" at position 0 and "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 "nullif\(Int64\(67\), Int64\(\-7\) \+ Int64\(\-27\) \+ Int64\(\-58\)\) AS col0" at position 0 and "Int64\(69\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + NULLIF ( + 67, - 7 + + - 27 + - 58 ) AS col0, + ( + 69 ) / + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: @@ -10723,7 +10723,7 @@ SELECT DISTINCT - COALESCE ( - - 42, + - NULLIF ( + 40, + 42 * + 93 / + + 65 * + # Datafusion - Datafusion expected results: # Datafusion - Expected - -1942 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(37\)\) \* Int64\(52\) \- Int64\(18\) \* 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\(37\)\) \* Int64\(52\) \- Int64\(18\) \* 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 DISTINCT - + 37 * 52 - 18 * + COUNT ( * ) AS col0, - COUNT ( * ) AS col0 query II rowsort label-2036 @@ -18394,7 +18394,7 @@ SELECT DISTINCT COALESCE ( - - 98, + - 42 * + - 71 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) 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\(98\) 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 98 AS col1, + COUNT ( * ) AS col1 query I rowsort label-3501 @@ -22086,7 +22086,7 @@ SELECT ALL - NULLIF ( - 35, - 76 + - 22 ) AS col0 # 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 "Int64\(60\) 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\(60\) 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 + 60 AS col0, COUNT ( * ) AS col0 query I rowsort label-4199 @@ -25866,7 +25866,7 @@ SELECT ALL + 16 + + + 78 * 22 + - 19 AS col1, - 33 # 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\(57\) \+ \(\- \(\- max\(Int64\(1\)\)\)\) \* Int64\(68\) 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\(57\) \+ \(\- \(\- max\(Int64\(1\)\)\)\) \* Int64\(68\) 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 + 57 + - - MAX ( 1 ) * + + 68 AS col1, COUNT ( * ) AS col1 query I rowsort label-4926 @@ -26249,7 +26249,7 @@ SELECT ALL + 14, - 51 AS col2 # Datafusion - Expected - 1 # Datafusion - Expected - -105300 # Datafusion - Expected - 38 -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\(45\) \* Int64\(39\) \* 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\(\*\) )?AS col1" at position 0 and "Int64\(45\) \* Int64\(39\) \* Int64\(\-60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COUNT ( * ) col1, + 45 * 39 * - 60 col1, - - 38 AS col1 query I rowsort label-4997 @@ -26442,7 +26442,7 @@ SELECT - 90 / - 48 - - 57 # Datafusion - Expected - -7346 # Datafusion - Expected - 17 # Datafusion - Expected - -132 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col2" at position 1 and "\(\- Int64\(65\)\) \+ Int64\(\-67\) / 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 "Int64\(17\) AS col2" at position 1 and "\(\- Int64\(65\)\) \+ Int64\(\-67\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 93 * - 79 + - - COUNT ( * ), 17 AS col2, + ( - ( + ( + 65 ) ) ) + + - 67 / + COUNT ( * ) AS col2 query I rowsort @@ -29721,7 +29721,7 @@ SELECT + 99 * + 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - -36 # Datafusion - Expected - 77 -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\(36\) \* count\(Int64\(1\)\) AS count\(\*\) 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(36\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) * - - COUNT ( * ) * 36 * COUNT ( * ) AS col1, 77 AS col1 query II rowsort label-5653 @@ -34437,7 +34437,7 @@ SELECT + COUNT ( - - 95 ) - - MIN ( + 71 ) * MAX ( - 78 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 23 -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 "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 "count\(Int64\(1\)\) AS count\(\*\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) / COUNT ( * ) col2, 23 AS col2 query I rowsort label-6552 @@ -38799,7 +38799,7 @@ SELECT ALL 37 * - - 15 + - ( + - 46 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -272 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) \+ Int64\(\-70\) \* Int64\(4\) \- 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 "Int64\(\-26\) \+ Int64\(\-70\) \* Int64\(4\) \- 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 + ( - 26 ) + + - 70 * + + 4 - - 34 AS col2, + COUNT ( * ) col2 query I rowsort @@ -41589,7 +41589,7 @@ SELECT DISTINCT + + ( 8 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\) 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\(0\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?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 0 * - COUNT ( * ) * COUNT ( * ) AS col1, 68 AS col1 query I rowsort label-7911 @@ -47099,7 +47099,7 @@ SELECT ( + 3 ) * - 74 * CAST ( NULL AS INTEGER ) AS col1, + 74 + + 54 + COUNT ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 65 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(66\) 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\(66\) 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 ( * ) ) ) + + + 66 AS col1, COUNT ( * ) AS col1 query I rowsort @@ -47575,7 +47575,7 @@ SELECT ALL - MAX ( DISTINCT - 79 ) col2, - ( + 89 ) * COUNT ( + 4 ) / NULLIF ( - # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) \+ count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(53\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 53 + + COUNT ( * ) AS col1, + 41 AS col1 query I rowsort label-9056 @@ -48142,7 +48142,7 @@ SELECT - 19 / ( 94 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) 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\) 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 + 66 AS col2, COUNT ( * ) AS col2 query I rowsort @@ -48261,7 +48261,7 @@ SELECT - + ( + SUM ( - 73 ) ) # 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 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\(80\) 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 + 80 AS col0, + COUNT ( * ) AS col0 query I rowsort @@ -51826,7 +51826,7 @@ SELECT ALL 13 * - + 47 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 62 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, + 62 AS col1 query I rowsort label-9869 diff --git a/data/sqlite/random/expr/slt_good_57.slt b/data/sqlite/random/expr/slt_good_57.slt index a42f84c..563064c 100644 --- a/data/sqlite/random/expr/slt_good_57.slt +++ b/data/sqlite/random/expr/slt_good_57.slt @@ -473,7 +473,7 @@ SELECT DISTINCT - 24 + + + 65 * - 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1081 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \* Int64\(\-23\) AS col0" at position 0 and "Int64\(\-23\) \+ 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\(\-23\) AS col0" at position 0 and "Int64\(\-23\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 47 * - 23 AS col0, - 23 + + COUNT ( * ) AS col0 query I rowsort @@ -1844,7 +1844,7 @@ SELECT + CAST ( + 95 AS INTEGER ) * 44 - - COUNT ( * ) + + COUNT ( * ) + NULLIF # 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 "CASE max\(Int64\(23\)\) WHEN Int64\(31\) \+ \(\- Int64\(21\)\) THEN Int64\(14\) 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\(\-71\) AS col2" at position 0 and "CASE max\(Int64\(23\)\) WHEN Int64\(31\) \+ \(\- Int64\(21\)\) THEN Int64\(14\) ELSE NULL END \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 71 AS col2, CASE + MAX ( ALL 23 ) WHEN + 31 + - + 21 THEN 14 ELSE NULL END * + COUNT ( * ) AS col2 query I rowsort label-346 @@ -6097,7 +6097,7 @@ SELECT ALL + CASE - - 1 WHEN - 42 / COUNT ( * ) * - - COUNT ( * ) - - COALESCE ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) 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\(58\) 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 + 58 AS col0, + COUNT ( * ) AS col0 query I rowsort label-1153 @@ -6201,7 +6201,7 @@ SELECT ALL + 26 + + ( COUNT ( DISTINCT 97 ) ) 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\(57\) AS col0" at position 0 and "Int64\(87\) / Int64\(\-94\) \* \(\- CASE Int64\(\-69\) WHEN Int64\(\-75\) THEN Int64\(21\) \* \(\- Int64\(\-21\)\) \- Int64\(92\) \* Int64\(5\) / \(\- Int64\(\-63\)\) \- avg\(Int64\(52\)\) END\) \+ Int64\(\-93\) \+ 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\(57\) AS col0" at position 0 and "Int64\(87\) / Int64\(\-94\) \* \(\- CASE Int64\(\-69\) WHEN Int64\(\-75\) THEN Int64\(21\) \* \(\- Int64\(\-21\)\) \- Int64\(92\) \* Int64\(5\) / \(\- Int64\(\-63\)\) \- avg\(Int64\(52\)\) END\) \+ Int64\(\-93\) \+ Int64\(\-69\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 57 AS col0, 87 / - 94 * - CASE + - 69 WHEN - 75 THEN + + 21 * + - ( - 21 ) - 92 * + 5 / - - 63 - AVG ( 52 ) END + - 93 + - 69 - COUNT ( * ) AS col0 query I rowsort @@ -8172,7 +8172,7 @@ SELECT DISTINCT COUNT ( * ) + - 84 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 35 -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\(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 "Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col0, 35 AS col0 query I rowsort @@ -10167,7 +10167,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col1" at position 0 and "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 "Int64\(97\) AS col1" at position 0 and "Int64\(\-46\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 97 col1, - 46 * COUNT ( * ) AS col1 query I rowsort @@ -10203,7 +10203,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) 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\(94\) 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 + 94 col0, - COUNT ( * ) + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: @@ -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 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\. SELECT - + 59 + - 76 + - 25 * COUNT ( * ) AS col2, + CAST ( + ( - + 58 ) AS INTEGER ) * + + 24 - + CAST ( NULL AS INTEGER ) / - + 42 + + 71 AS col2 query I rowsort @@ -20850,7 +20850,7 @@ SELECT ALL SUM ( ALL - 39 ) / + - MIN ( DISTINCT - 56 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col1" at position 0 and "Int64\(55\) \+ 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\(74\) AS col1" at position 0 and "Int64\(55\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 74 col1, 55 + + + COUNT ( * ) col1 query II rowsort label-3973 @@ -21784,7 +21784,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 2622 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) \* Int64\(61\) \- count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "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 "Int64\(43\) \* Int64\(61\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(50\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 43 * + 61 - ( COUNT ( * ) ) AS col1, 50 col1 query I rowsort label-4150 @@ -22171,7 +22171,7 @@ SELECT - - 51 * MAX ( ALL - - 23 ) * - ( - 64 ) AS col2, 16 - MIN ( - 25 ) + 28 # Datafusion - Expected - NULL # Datafusion - Expected - -27 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(\-50\) WHEN \(\- Int64\(\-76\)\) \+ Int64\(\-41\) THEN NULL WHEN Int64\(\-4\) THEN Int64\(23\) END \+ min\(DISTINCT Int64\(1\)\) \* count\(Int64\(1\)\) AS count\(\*\) 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 "CASE Int64\(\-50\) WHEN \(\- Int64\(\-76\)\) \+ Int64\(\-41\) THEN NULL WHEN Int64\(\-4\) THEN Int64\(23\) END \+ min\(DISTINCT Int64\(1\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(\-27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CASE + - 50 WHEN - - 76 + + ( + - 41 ) THEN NULL WHEN - 4 THEN 23 END + MIN ( DISTINCT + 1 ) * + COUNT ( * ) AS col2, - 27 AS col2, + + 0 AS col2 query I rowsort label-4224 @@ -26927,7 +26927,7 @@ SELECT + CAST ( + 5 AS INTEGER ) / 15 - 81 # Datafusion - Expected - -57 # Datafusion - Expected - -57 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-57\)\) AS col2" at position 0 and "Int64\(\-38\) \- Int64\(19\) / 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\(Int64\(\-57\)\) AS col2" at position 0 and "Int64\(\-38\) \- Int64\(19\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MAX ( ALL - 57 ) col2, - 38 - 19 / COUNT ( * ) AS col2, - + CAST ( NULL AS INTEGER ) * + 24 + + - 23 col1 query I rowsort label-5134 @@ -27337,7 +27337,7 @@ SELECT 31 + + CAST ( 18 AS INTEGER ) * + 95 # 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 "Int64\(\-60\) \- Int64\(32\) 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\) \- Int64\(32\) 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 - + 32 AS col1, COUNT ( * ) AS col1 query I rowsort @@ -29370,7 +29370,7 @@ SELECT + COUNT ( * ) AS col1, + 33 # Datafusion - Datafusion expected results: # Datafusion - Expected - -94 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(CASE WHEN NULL IS NULL THEN Int64\(\-94\) ELSE NULL END, Int64\(69\) \- \(\- Int64\(\-63\)\)\) 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\(CASE WHEN NULL IS NULL THEN Int64\(\-94\) ELSE NULL END, Int64\(69\) \- \(\- Int64\(\-63\)\)\) 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 + COALESCE ( CASE WHEN NULL IS NULL THEN - 94 ELSE NULL END, 69 - - - 63 ) col0, + COUNT ( * ) AS col0 query I rowsort label-5599 @@ -31864,7 +31864,7 @@ SELECT DISTINCT 36, 97 + 56 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2721 # Datafusion - Expected - 806 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \+ Int64\(30\) \* Int64\(\-93\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(13\) \* 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\(69\) \+ Int64\(30\) \* Int64\(\-93\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(13\) \* Int64\(62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 69 + + 30 * - 93 * COUNT ( * ) col1, + 13 * + + 62 AS col1 # Datafusion - Types were automatically converted from: @@ -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 Int32\)\) \* 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 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\. SELECT + ( + 63 ) - - 78 - - CAST ( NULL AS INTEGER ) + - 7 * + - 96 col1, + COUNT ( * ) AS col1 query I rowsort label-7230 @@ -38025,7 +38025,7 @@ SELECT + - CASE + COUNT ( * ) WHEN - 44 THEN NULL WHEN CAST ( NULL AS INTEGER ) # 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\(\-18\) \* \(\- CASE Int64\(\-77\) WHEN Int64\(90\) \* \(\- Int64\(\-78\)\) THEN Int64\(42\) END\) \+ Int64\(83\) \* count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(\-18\) \* \(\- CASE Int64\(\-77\) WHEN Int64\(90\) \* \(\- Int64\(\-78\)\) THEN Int64\(42\) END\) \+ Int64\(83\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(\-41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 18 * - CASE - 77 WHEN + 90 * - - 78 THEN + 42 END + 83 * COUNT ( * ) AS col1, - 41 AS col1 query I rowsort @@ -39331,7 +39331,7 @@ SELECT DISTINCT + - 80 + 48 + - - 56 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -81 # Datafusion - Expected - -5 -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\(82\) \+ count\(Int64\(1\)\) AS count\(\*\) 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\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(82\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(\-5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) + COUNT ( * ) - 82 + COUNT ( * ) col0, - 5 col0 query I rowsort label-7495 @@ -40532,7 +40532,7 @@ SELECT - 5 + + 13, 37 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 "\(\- 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\(\*\)\) 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 ( * ) AS col0, + COUNT ( * ) AS col0 query I rowsort @@ -48416,7 +48416,7 @@ SELECT + 86 * 81 * 32 * 47 * COUNT ( * ) 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 "Int64\(35\) \- Int64\(\-51\) \+ \(\- nullif\(Int64\(87\), Int64\(87\) \- \(\- \(\- Int64\(45\)\)\)\)\) 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\(35\) \- Int64\(\-51\) \+ \(\- nullif\(Int64\(87\), Int64\(87\) \- \(\- \(\- Int64\(45\)\)\)\)\) 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 + 35 - - 51 + - NULLIF ( + 87, + + 87 - + - ( - + 45 ) ) AS col1, ( + COUNT ( * ) ) col1 query II rowsort @@ -50117,7 +50117,7 @@ SELECT DISTINCT COALESCE ( 2, + 36 + 59 + + 87 * - COUNT ( ALL - - 14 ), - 79 ) # Datafusion - Expected - 1 # 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\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col1, + 78 AS col1, - 78 + + - 93 + - 75 * + CASE + - COUNT ( * ) WHEN 1 * 34 THEN - + COUNT ( * ) WHEN + 58 THEN NULL WHEN - SUM ( DISTINCT NULLIF ( 22, 24 * 41 ) ) + + + CAST ( - - 65 AS INTEGER ) * 83 THEN NULL END query I rowsort diff --git a/data/sqlite/random/expr/slt_good_58.slt b/data/sqlite/random/expr/slt_good_58.slt index d83fdd5..3d00a38 100644 --- a/data/sqlite/random/expr/slt_good_58.slt +++ b/data/sqlite/random/expr/slt_good_58.slt @@ -4574,7 +4574,7 @@ SELECT ALL + 96 * + + 52 * + + ( + MIN ( ALL 53 ) ) col2 # Datafusion - Expected - 7 # Datafusion - Expected - 94 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) \+ Int64\(47\) AS col2" at position 0 and "Int64\(9\) \- Int64\(\-84\) \+ 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\(47\) AS col2" at position 0 and "Int64\(9\) \- Int64\(\-84\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 40 + + 47 AS col2, 9 - - 84 + + COUNT ( * ) AS col2, + 49 / - 3 col2 query I rowsort @@ -7879,7 +7879,7 @@ SELECT + 72 / COUNT ( * ) * - 35 - + SUM ( ALL - + ( 51 ) ) + 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -76 -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\(\-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\(\*\) )?AS col1" at position 0 and "Int64\(\-76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, - 76 AS col1 # Datafusion - Types were automatically converted from: @@ -8302,7 +8302,7 @@ SELECT 54 / + 66 AS col2 # Datafusion - Expected - -50 # Datafusion - Expected - 2 # Datafusion - Expected - -36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- coalesce\(Int64\(36\), 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\(\-50\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "\(\- coalesce\(Int64\(36\), Int64\(51\)\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 50 * COUNT ( * ) AS col0, ( + 60 ) / + 28, - COALESCE ( 36, + 51 ) AS col0 query II rowsort @@ -10842,7 +10842,7 @@ SELECT ALL 50 + 40 * COUNT ( * ) * - 40 + + 87 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 "\(\- 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\(\*\)\) 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 ( * ) AS col1, + COUNT ( * ) AS col1 query I rowsort label-2062 @@ -11380,7 +11380,7 @@ SELECT DISTINCT - + 75 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -88 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) 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\(\-88\) 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 - 88 AS col1, COUNT ( * ) AS col1 query I rowsort @@ -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 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\. SELECT DISTINCT - 3 AS col2, 2 * - - COUNT ( + CAST ( NULL AS INTEGER ) ) * - + COUNT ( * ) + + COUNT ( * ) AS col2 query I rowsort @@ -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 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\. 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 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\. SELECT - CAST ( + + COUNT ( * ) AS INTEGER ) AS col0, 24 * + 37 AS col0 query I rowsort @@ -18822,7 +18822,7 @@ SELECT ALL 64 * 42 - + COUNT ( * ) + 58 / CAST ( - + 46 AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - 1 -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\(\*\) AS col1" at position 1 have the 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\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 66 AS col1, + COUNT ( * ) AS col1 query I rowsort @@ -19030,7 +19030,7 @@ SELECT + 22 * - 43 * - - COUNT ( ALL 40 ) * - NULLIF ( - + 91, 93 + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -633 # Datafusion - Expected - -98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) \* Int64\(\-15\) \- Int64\(\-26\) \+ count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(44\) \* Int64\(\-15\) \- Int64\(\-26\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(\-98\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 44 * - 15 - - 26 + COUNT ( * ) AS col1, - 98 AS col1 query II rowsort @@ -24207,7 +24207,7 @@ SELECT ALL 48 * + COUNT ( * ) - - 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5742 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \* 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\(87\) \* 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 87 * 66 AS col0, COUNT ( * ) AS col0 query I rowsort label-4610 @@ -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 Int32\)\) 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 @@ -26207,7 +26207,7 @@ SELECT ALL + 36 - 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 98 -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\(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 "Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, 98 AS col0 query I rowsort @@ -28377,7 +28377,7 @@ SELECT + 4 * - + 96 + - 9 col1, 56 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - 2 -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\(\*\) \+ 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\) 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 + 95 AS col0, + COUNT ( * ) + + + COUNT ( * ) AS col0 query I rowsort label-5410 @@ -31349,7 +31349,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 468863 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-74\) \* Int64\(\-72\) \* Int64\(88\) \- count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(\-74\) \* Int64\(\-72\) \* Int64\(88\) \- count\(Int64\(1\)\) (AS count\(\*\) )?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 - 74 * ( + - 72 ) * 88 - + COUNT ( * ) AS col2, - 15 AS col2 # Datafusion - Types were automatically converted from: @@ -41046,7 +41046,7 @@ SELECT ALL + 34 / ( 93 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col1" at position 0 and "Int64\(\-75\) \+ 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\(19\) AS col1" at position 0 and "Int64\(\-75\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 19 AS col1, - 75 + + + COUNT ( * ) AS col1 query I rowsort @@ -41125,7 +41125,7 @@ SELECT MAX ( ALL 50 ) + COUNT ( * ) # 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 col0" at position 0 and "Int64\(83\) \+ 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 "Int64\(83\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, ( ( + + 83 ) ) + + COUNT ( * ) AS col0 query II 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 Int32\), 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 @@ -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 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\. 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 @@ -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 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\. SELECT 29 / + CAST ( 89 AS INTEGER ) AS col2, 50 + + + 10 + + COUNT ( * ) col2, 0 / + + 83 * - COUNT ( * ) * 82 query II rowsort label-9064 @@ -50475,7 +50475,7 @@ SELECT + COALESCE ( + + SUM ( - + 49 ), NULLIF ( - ( - COUNT ( * ) ), - 78 ) + + # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -54 -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\(\-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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(\-54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, - 54 AS col2 query I rowsort @@ -51304,7 +51304,7 @@ SELECT + COALESCE ( - 37, + CASE - 93 WHEN + 68 THEN + COUNT ( * ) / + 30 WHEN - # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) / Int64\(\-87\) AS col1" at position 0 and "Int64\(26\) \* 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\(97\) / Int64\(\-87\) AS col1" at position 0 and "Int64\(26\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 97 / + - 87 AS col1, 26 * + COUNT ( * ) AS col1 query I rowsort label-9781 diff --git a/data/sqlite/random/expr/slt_good_59.slt b/data/sqlite/random/expr/slt_good_59.slt index d69cd81..2bf9f9a 100644 --- a/data/sqlite/random/expr/slt_good_59.slt +++ b/data/sqlite/random/expr/slt_good_59.slt @@ -2067,7 +2067,7 @@ SELECT - + 19, - 45 + 82 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1995 -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\(63\) \+ Int64\(71\) \+ Int64\(34\) \* Int64\(56\) \+ Int64\(6\) \+ \(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(63\) \+ Int64\(71\) \+ Int64\(34\) \* Int64\(56\) \+ Int64\(6\) \+ \(\- Int64\(49\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, 63 + + 71 + + 34 * + 56 + + 6 + - + 49 col2 query II rowsort @@ -9546,7 +9546,7 @@ SELECT 63 + - + 61 # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) \+ min\(DISTINCT Int64\(67\)\) \* count\(Int64\(1\)\) AS count\(\*\) 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\(\-48\) \+ min\(DISTINCT Int64\(67\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 48 + MIN ( DISTINCT + + 67 ) * COUNT ( * ) AS col0, 89 AS col0 query II rowsort @@ -9855,7 +9855,7 @@ SELECT + 91 * 67 + + 58 + - 35 + 85 * + - 30 # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - -2761 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(84\) \* Int64\(\-16\) \* Int64\(2\) \+ \(\- max\(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\(55\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(84\) \* Int64\(\-16\) \* Int64\(2\) \+ \(\- max\(Int64\(73\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 55 / + COUNT ( * ) AS col0, 84 * + - 16 * + 2 + - ( + MAX ( ALL 73 ) ) AS col0 query I rowsort @@ -15063,7 +15063,7 @@ SELECT - ( + + 85 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 46 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, 46 AS col2 query I rowsort label-2870 @@ -15396,7 +15396,7 @@ SELECT ( - 49 ) + + 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-38\)\) AS col2" at position 0 and "Int64\(39\) \* 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\(\-38\)\) AS col2" at position 0 and "Int64\(39\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 38 AS col2, 39 * + COUNT ( * ) AS col2 query I rowsort label-2934 @@ -17569,7 +17569,7 @@ SELECT - 17 / + 43 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -4 -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\(\-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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(\-4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col0, - 4 col0 query I rowsort label-3352 @@ -17738,7 +17738,7 @@ SELECT - CAST ( + 23 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 "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 "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 COUNT ( * ) AS col2, COUNT ( * ) AS col2 query I rowsort @@ -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 Int32\) 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 @@ -20311,7 +20311,7 @@ SELECT + 51 - + 2 # 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 "Int64\(30\) 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\(30\) 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 + 30 AS col0, + COUNT ( * ) AS col0 # Datafusion - Types were automatically converted from: @@ -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 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\. SELECT DISTINCT + + 37 + - 96 * CAST ( - 65 AS INTEGER ) + + + 92 / COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) AS col0 query I rowsort label-4626 @@ -26321,7 +26321,7 @@ SELECT + SUM ( DISTINCT + 90 ) * + - 84 AS col1, 7 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - -54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col0" at position 0 and "Int64\(\-55\) \+ 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\(11\) AS col0" at position 0 and "Int64\(\-55\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 11 AS col0, ( - 55 ) + COUNT ( * ) AS col0 query I rowsort @@ -31043,7 +31043,7 @@ SELECT ALL 74 col0, - 78 * - 56 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1242 -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\(\-46\) \* 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(\-46\) \* Int64\(\-27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, - 46 * - 27 AS col1 query II rowsort label-5920 @@ -31055,7 +31055,7 @@ SELECT - 77, - CAST ( + 13 AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -126 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-57\) \- Int64\(69\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(76\) 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 "Int64\(\-57\) \- Int64\(69\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(76\) 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 - 57 - + 69 + - COUNT ( * ) / 76 AS col2, + COUNT ( * ) * + COUNT ( * ) AS col2 query II rowsort @@ -32958,7 +32958,7 @@ SELECT ALL 13 * - 71, 42 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - -25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \+ count\(Int64\(1\)\) AS count\(\*\) 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\(8\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(\-25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 8 + COUNT ( * ) col1, - 25 AS col1 query I rowsort @@ -35414,7 +35414,7 @@ SELECT DISTINCT SUM ( + - NULLIF ( - - 20, + 4 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(\-7\), Int64\(87\), Int64\(\-6\)\)\) \- 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 "\(\- coalesce\(Int64\(\-7\), Int64\(87\), Int64\(\-6\)\)\) \- 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 - ( + COALESCE ( - 7, + + 87, - 6 ) ) - + + COUNT ( * ) AS col1, COUNT ( * ) AS col1 query II rowsort label-6751 @@ -35989,7 +35989,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 160 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \+ Int64\(61\) 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\(99\) \+ Int64\(61\) 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 ( + + 99 ) + 61 AS col2, COUNT ( * ) AS col2 query I rowsort label-6860 @@ -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 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\. SELECT + - 8 * + + 94 + COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) * - + 38 - + MAX ( ALL - - 89 ) * MAX ( DISTINCT + 31 ) AS col0 query I rowsort label-7261 @@ -38119,7 +38119,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - 118 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-32\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(80\) \+ 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\(\-32\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(80\) \+ Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + ( - 32 ) + + COUNT ( * ) col0, 80 + + 38 AS col0 query I rowsort @@ -39293,7 +39293,7 @@ SELECT + COUNT ( * ) + - 15 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -25 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) 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\(\-25\) 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 - 25 AS col2, + COUNT ( * ) col2 query I rowsort @@ -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 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\. 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 @@ -40121,7 +40121,7 @@ SELECT ALL 19 * - + 11 AS col2, 62 # Datafusion - Expected - 1 # Datafusion - Expected - 92 # Datafusion - Expected - 97 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(97\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( + COUNT ( * ) ) AS col2, 92, 97 AS col2 query II rowsort @@ -43093,7 +43093,7 @@ SELECT ALL - + ( - 69 ) - - 14 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col1" at position 0 and "count\(DISTINCT \(\- Int64\(\-9\)\)\) \* 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\(86\) AS col1" at position 0 and "count\(DISTINCT \(\- Int64\(\-9\)\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 86 AS col1, + COUNT ( DISTINCT - - 9 ) * COUNT ( * ) col1 query I rowsort @@ -45693,7 +45693,7 @@ SELECT - - 31, SUM ( - - 44 ) * 25 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 "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\(\*\) )?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 ( * ) AS col0, COUNT ( * ) col0 query I rowsort label-8716 @@ -49657,7 +49657,7 @@ SELECT + 20 * 9 + + 98 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col0" at position 0 and "count\(Int64\(\-18\)\) \+ 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\(24\) AS col0" at position 0 and "count\(Int64\(\-18\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 24 AS col0, + COUNT ( - 18 ) + + COUNT ( * ) AS col0 query I rowsort @@ -50439,7 +50439,7 @@ NULL # Datafusion - Expected - 1 # Datafusion - Expected - -34 # Datafusion - Expected - -56 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "\(\- Int64\(56\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, + ( - 75 ) + 41 AS col1, - + 56 AS col2 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_6.slt b/data/sqlite/random/expr/slt_good_6.slt index 835044a..316e359 100644 --- a/data/sqlite/random/expr/slt_good_6.slt +++ b/data/sqlite/random/expr/slt_good_6.slt @@ -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 Int32\)\)\)\) 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 @@ -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 Int32\) 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 @@ -14980,7 +14980,7 @@ SELECT COUNT ( * ) - + + 43 + - 93 # 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\(42\) / Int64\(\-92\) 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\(42\) / Int64\(\-92\) 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 42 / - 92 AS col1, COUNT ( * ) AS col1 query I rowsort @@ -22459,7 +22459,7 @@ SELECT 78 - - 36 - - 69 + - CAST ( - 53 AS INTEGER ) - + 30 + + - 76 - + + 87 - # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - -2549 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \- count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-85\) \* \(\- min\(DISTINCT Int64\(\-30\)\)\) \+ 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\(87\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(\-85\) \* \(\- min\(DISTINCT Int64\(\-30\)\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 87 - COUNT ( * ) AS col2, - 85 * - MIN ( DISTINCT + - 30 ) + + COUNT ( * ) AS col2 query I rowsort label-4263 @@ -24092,7 +24092,7 @@ SELECT + + 53 AS col2, 94 * 34 / - 6 - + 15 - + - 42 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 "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\(\*\) )?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 ( * ) AS col1, - COUNT ( * ) AS col1 query I rowsort label-4573 @@ -28469,7 +28469,7 @@ SELECT COUNT ( * ) * - + 57 + + COUNT ( * ) # 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 "Int64\(22\) 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\(22\) 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 + 22 AS col0, + COUNT ( * ) AS col0 query I rowsort @@ -32448,7 +32448,7 @@ SELECT CAST ( - 19 AS INTEGER ) + ( - + 5 ) + ( - 90 ) - - - COUNT ( * ) * + - ( # 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\(\-34\) 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\(\-34\) 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 - 34 AS col0, + COUNT ( * ) AS col0 query I rowsort @@ -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 Int32\) / 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 @@ -35406,7 +35406,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -1880 -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\(20\) \* 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\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(20\) \* Int64\(\-94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, 20 * - 94 AS col2 # Datafusion - Datafusion expected results: @@ -38723,7 +38723,7 @@ SELECT 24 - - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) 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\(98\) 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 98 col1, COUNT ( * ) AS col1 query I rowsort label-7351 @@ -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 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\. 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 @@ -43418,13 +43418,13 @@ SELECT + COALESCE ( - 21, - AVG ( ALL 93 ) * - 26 + 4 * - 70, 8 * 99 + COUNT ( * # 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\(0\)\) \* Int64\(34\) \- Int64\(86\) / \(\- coalesce\(Int64\(63\), \(\- Int64\(\-9\)\), Int64\(\-69\)\)\) 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\(0\)\) \* Int64\(34\) \- Int64\(86\) / \(\- coalesce\(Int64\(63\), \(\- Int64\(\-9\)\), Int64\(\-69\)\)\) 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 - + 0 * + 34 - 86 / - COALESCE ( 63, - - 9, + - 69 ) col1, COUNT ( * ) 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 col1" at position 0 and "CASE coalesce\(\(\- \(\- Int64\(\-2\)\)\), count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(4\) \* \(\- CASE Int64\(7\) WHEN Int64\(75\) THEN Int64\(17\) END\) THEN Int64\(\-75\) / CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Float64\) \+ Int64\(40\) \+ Int64\(\-28\) 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 coalesce\(\(\- \(\- Int64\(\-2\)\)\), count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(4\) \* \(\- CASE Int64\(7\) WHEN Int64\(75\) THEN Int64\(17\) END\) THEN Int64\(\-75\) / CAST\(count\(Int64\(1\)\) (AS count\(\*\) )?AS Float64\) \+ Int64\(40\) \+ Int64\(\-28\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + - 22 AS col1, + CASE COALESCE ( - ( - - 2 ), + COUNT ( * ) ) WHEN + 4 * - CASE 7 WHEN + 75 THEN + + 17 END THEN - 75 / + CAST ( + COUNT ( * ) AS FLOAT8 ) + 40 + - 28 END AS col1 query I rowsort @@ -45265,7 +45265,7 @@ SELECT + - COUNT ( * ) + - 87 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 23 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 COUNT ( * ) col1, + 23 col1 query I rowsort label-8595 @@ -47997,7 +47997,7 @@ NULL # 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\(\-41\) \- Int64\(\-25\) \+ 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\(\-41\) \- Int64\(\-25\) \+ 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 - 41 - - 25 + COUNT ( * ) AS col0, + COUNT ( * ) AS col0 query I rowsort label-9119 @@ -49754,7 +49754,7 @@ SELECT DISTINCT + COUNT ( * ) * + CASE + - 86 WHEN + COUNT ( * ) THEN NULL ELSE # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 43 -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\(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 "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 DISTINCT + + COUNT ( * ) AS col1, 43 AS col1 query I rowsort label-9452 diff --git a/data/sqlite/random/expr/slt_good_60.slt b/data/sqlite/random/expr/slt_good_60.slt index 3ec0678..63a607f 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 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\. 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 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\. SELECT + - 68 * 84 * - + CAST ( NULL AS INTEGER ) + + COUNT ( - ( 72 ) ) + - - 79 * + - 87 + + - 14 + - 6 + 9 + COUNT ( * ) col0, - 0 AS col0 query I rowsort @@ -1457,7 +1457,7 @@ SELECT ALL 32 + - 17 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 104 # Datafusion - Expected - 141120 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \+ Int64\(66\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(60\) \* \(\- max\(Int64\(\-56\)\)\) \* 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\(38\) \+ Int64\(66\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(60\) \* \(\- max\(Int64\(\-56\)\)\) \* Int64\(42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 38 + + 66 * COUNT ( * ) AS col1, 60 * - MAX ( - 56 ) * 42 AS col1 query I rowsort @@ -1724,7 +1724,7 @@ SELECT DISTINCT - 54 + + + 76 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - -7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(84\) / 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\(93\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(84\) / Int64\(\-12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 93 + COUNT ( * ) AS col1, 84 / - 12 AS col1 query I rowsort label-320 @@ -1766,7 +1766,7 @@ SELECT ALL - NULLIF ( + 66, - 11 * + COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -72 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(72\)\) 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\(72\)\) 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 - ( 72 ) col2, + COUNT ( * ) AS col2 query I rowsort label-328 @@ -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 Int32\)\) 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 @@ -3082,7 +3082,7 @@ SELECT ALL NULLIF ( + + 70, - 83 - - MIN ( + 63 ) * - COUNT ( * ) + 62 * + 17 ) # 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 "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(63\) \- \(\- 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\(\*\) )?AS col1" at position 0 and "Int64\(63\) \- \(\- Int64\(\-76\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col1, + 63 - - - 76 col1 query I rowsort @@ -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 Int32\) \+ 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 @@ -4966,7 +4966,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) 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\(19\) 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 19 AS col1, COUNT ( * ) col1 query II rowsort label-938 @@ -5465,7 +5465,7 @@ SELECT ALL COUNT ( ALL 58 ) # Datafusion - Expected - -364455 # Datafusion - Expected - 1 # Datafusion - Expected - -6716451 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 and "Int64\(83\) \* Int64\(35\) \* Int64\(2\) \* Int64\(\-34\) \* \(\- Int64\(\-34\)\) \+ Int64\(95\) \- Int64\(92\) \+ Int64\(\-95\) \+ count\(Int64\(17\)\) 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\(\*\) )?AS col2" at position 1 and "Int64\(83\) \* Int64\(35\) \* Int64\(2\) \* Int64\(\-34\) \* \(\- Int64\(\-34\)\) \+ Int64\(95\) \- Int64\(92\) \+ Int64\(\-95\) \+ count\(Int64\(17\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - MAX ( + 89 ) * - 45 * - 91 AS col1, COUNT ( * ) AS col2, 83 * 35 * 2 * - 34 * - - 34 + + 95 - 92 + - 95 + COUNT ( + ( ( 17 ) ) ) AS col2 query I rowsort @@ -10682,7 +10682,7 @@ SELECT DISTINCT + 16 + - + 10 + - 50 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - -1626 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \+ Int64\(\-74\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(38\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(18\) \- Int64\(52\) \+ nullif\(Int64\(44\), Int64\(47\) \+ \(\- Int64\(20\)\) \+ Int64\(\-8\) \- Int64\(72\)\) \+ \(\- Int64\(\-33\)\) \* min\(DISTINCT Int64\(\-26\)\) \- 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\(92\) \+ Int64\(\-74\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(38\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(18\) \- Int64\(52\) \+ nullif\(Int64\(44\), Int64\(47\) \+ \(\- Int64\(20\)\) \+ Int64\(\-8\) \- Int64\(72\)\) \+ \(\- Int64\(\-33\)\) \* min\(DISTINCT Int64\(\-26\)\) \- Int64\(76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 92 + - 74 + + COUNT ( * ) AS col1, 38 * + - COUNT ( * ) * + + 18 - 52 + NULLIF ( 44, + 47 + - + 20 + - 8 - 72 ) + + - ( ( - 33 ) ) * + MIN ( DISTINCT + - 26 ) - + 76 col1 query I rowsort @@ -10748,7 +10748,7 @@ SELECT NULLIF ( - - ( 32 ), - CAST ( NULL AS INTEGER ) ) / - - 90 - - 94 / - ( + # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - -28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-71\)\) AS col2" at position 0 and "\(\- Int64\(\-25\)\) / Int64\(\-26\) \+ \(\- Int64\(29\)\) \+ 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\)\) AS col2" at position 0 and "\(\- Int64\(\-25\)\) / Int64\(\-26\) \+ \(\- Int64\(29\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - 71 AS col2, - ( - 25 ) / - 26 + - + 29 + + ( + COUNT ( * ) ) AS col2 query I rowsort @@ -23361,7 +23361,7 @@ SELECT + 40 + + 66 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 106 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(96\) AS col2" at position 0 and "Int64\(\-97\) \* 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\(10\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(96\) AS col2" at position 0 and "Int64\(\-97\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 10 - - + COUNT ( * ) * + + 96 col2, - 97 * + COUNT ( * ) AS col2 query I rowsort @@ -25101,7 +25101,7 @@ SELECT - 48 + - CAST ( 52 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(25\) \+ 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\(8\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(25\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 8 AS col0, - COUNT ( * ) + + 25 + COUNT ( * ) AS col0 query I rowsort @@ -27074,7 +27074,7 @@ SELECT ALL + ( + - 82 ) * - + ( 73 ) # 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\(39\) WHEN Int64\(13\) THEN Int64\(1\) ELSE NULL 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 "CASE Int64\(39\) WHEN Int64\(13\) THEN Int64\(1\) ELSE NULL 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 + CASE + + 39 WHEN + 13 THEN 1 ELSE NULL END AS col2, COUNT ( * ) AS col2 query I rowsort label-5152 @@ -27803,7 +27803,7 @@ SELECT ALL - 48 * + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \- CASE Int64\(35\) WHEN Int64\(\-78\) THEN NULL ELSE count\(Int64\(1\)\) AS count\(\*\) END \+ Int64\(\-12\) \+ 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\(52\) \- CASE Int64\(35\) WHEN Int64\(\-78\) THEN NULL ELSE count\(Int64\(1\)\) AS count\(\*\) END \+ Int64\(\-12\) \+ 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 + 52 - CASE + 35 WHEN - 78 THEN NULL ELSE + COUNT ( * ) END + - 12 + + - 66 AS col0, COUNT ( * ) AS col0 query I rowsort @@ -30911,7 +30911,7 @@ SELECT - 95 * - 67 # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 51 AS col2, COUNT ( * ) AS col2 # Datafusion - Types were automatically converted from: @@ -32628,7 +32628,7 @@ SELECT ALL + + 50 AS col0, ( - + 41 ) + 28 + COUNT ( ALL CAST ( + - 54 AS INTEGE # Datafusion - Expected - 25 # Datafusion - Expected - 2160 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \* Int64\(76\) \+ Int64\(\-44\) AS col0" at position 1 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\(29\) \* Int64\(76\) \+ Int64\(\-44\) AS col0" at position 1 and "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 25 col1, 29 * + 76 + - 44 AS col0, COUNT ( * ) AS col0 query I rowsort label-6203 @@ -33115,7 +33115,7 @@ SELECT DISTINCT - ( 35 ) # 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\(\-58\)\) 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\(\-58\)\) 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 ( ALL - 58 ) col0, COUNT ( * ) AS col0 query I rowsort @@ -35261,7 +35261,7 @@ SELECT + MIN ( - - ( + - 86 ) ) # 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 "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\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, 0 AS col0 # Datafusion - Datafusion expected results: @@ -38393,7 +38393,7 @@ SELECT DISTINCT - 80 / - - 14 # 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\(\-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 "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 - 83 AS col2, + COUNT ( * ) AS col2 query I rowsort @@ -40883,7 +40883,7 @@ SELECT ALL + 23 + - 8 / 80 # Datafusion - Expected - -1 # Datafusion - Expected - 67 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-1\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "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\(\-1\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(88\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 1 * + COUNT ( * ) AS col2, 67 AS col0, + 88 AS col2 query I rowsort @@ -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 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\. SELECT 73 / + CAST ( - 35 AS INTEGER ) AS col2, 21 / + + COUNT ( * ) AS col2 query I rowsort @@ -44347,7 +44347,7 @@ SELECT DISTINCT - 8 + - 48 * 19 + + 16 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -89 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) \+ 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\(\-90\) \+ 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 - 90 + + + COUNT ( * ) col0, COUNT ( * ) AS col0 # Datafusion - Types were automatically converted from: @@ -48613,7 +48613,7 @@ SELECT DISTINCT - 24 + + COUNT ( DISTINCT 8 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \+ Int64\(20\) \+ min\(Int64\(97\)\) / Int64\(\-25\) \* count\(Int64\(1\)\) AS count\(\*\) 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\(35\) \+ Int64\(20\) \+ min\(Int64\(97\)\) / Int64\(\-25\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( 35 ) + 20 + + MIN ( + 97 ) / + - 25 * COUNT ( * ) AS col2, ( 54 ) AS col2 query I rowsort label-9254 @@ -48677,7 +48677,7 @@ SELECT 75 * 44 - - - 40 + + 58 - - 65 + - 11 / - 12 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(7\) \+ 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\(\-71\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(7\) \+ Int64\(\-71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 71 * + COUNT ( * ) AS col2, + 7 + - 71 AS col2 query I rowsort label-9266 @@ -49734,7 +49734,7 @@ SELECT COALESCE ( + MAX ( + 59 ), + + ( + - 13 ) / COUNT ( * ), CASE + COUNT ( * # 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 "count\(Int64\(1\)\) AS count\(\*\) / Int64\(19\) / 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 "count\(Int64\(1\)\) AS count\(\*\) / Int64\(19\) / 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 + COUNT ( * ) / 19 / + 23 AS col1, COUNT ( * ) col1 query II rowsort diff --git a/data/sqlite/random/expr/slt_good_61.slt b/data/sqlite/random/expr/slt_good_61.slt index b01cc05..7080009 100644 --- a/data/sqlite/random/expr/slt_good_61.slt +++ b/data/sqlite/random/expr/slt_good_61.slt @@ -206,7 +206,7 @@ SELECT + + 29 + - MIN ( - ( + 16 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2897 # Datafusion - Expected - -7527990 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) \* Int64\(61\) \+ Int64\(92\) AS col0" at position 0 and "Int64\(99\) \* Int64\(\-32\) \* Int64\(27\) \* Int64\(88\) \+ Int64\(\-83\) \- Int64\(74\) \+ \(\- Int64\(7\)\) \* 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\(\-49\) \* Int64\(61\) \+ Int64\(92\) AS col0" at position 0 and "Int64\(99\) \* Int64\(\-32\) \* Int64\(27\) \* Int64\(88\) \+ Int64\(\-83\) \- Int64\(74\) \+ \(\- Int64\(7\)\) \* Int64\(95\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 49 * 61 + 92 AS col0, + 99 * - 32 * + 27 * + 88 + - 83 - 74 + - + 7 * + 95 * ( COUNT ( * ) ) AS col0 query II rowsort @@ -1156,7 +1156,7 @@ SELECT + 46, + 15 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -52 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-52\) AS col2" at position 0 and "Int64\(\-81\) \+ 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\(\-52\) AS col2" at position 0 and "Int64\(\-81\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 52 AS col2, - 81 + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: @@ -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 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\. 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 @@ -5553,7 +5553,7 @@ SELECT - 37 * - 14 * + COUNT ( * ) # 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\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col2, 18 AS col2 query II rowsort label-1051 @@ -6628,7 +6628,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 "Int64\(96\) / Int64\(\-51\) 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\(96\) / Int64\(\-51\) 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 + 96 / - 51 col1, COUNT ( * ) AS col1 query I rowsort @@ -6828,7 +6828,7 @@ SELECT ALL ( - - 21 ) AS col1 # 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 "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\(42\) 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 42 AS col0, COUNT ( * ) AS col0 query II rowsort label-1291 @@ -7650,7 +7650,7 @@ SELECT ALL 8 + - 29 # 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 "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\(\*\) )?AS col2" at position 0 and "Int64\(\-19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, - 19 AS col2 query I rowsort label-1450 @@ -9148,7 +9148,7 @@ SELECT 54 * - 57 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \+ count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(88\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(\-27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 88 + + COUNT ( * ) AS col1, - 27 AS col1 query I rowsort label-1738 @@ -10212,7 +10212,7 @@ SELECT - 23 + 40 - 66 AS col0, + 21 + + 83 AS col2, 50 * 41 + + CAST ( NULL AS I # 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 "Int64\(29\) \- Int64\(58\) 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\) \- Int64\(58\) 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 - 58 AS col0, COUNT ( * ) col0 query I rowsort @@ -12092,7 +12092,7 @@ SELECT ALL + 71, + 91 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -1209 -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\(31\) \* 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\(\*\) )?AS col2" at position 0 and "Int64\(31\) \* Int64\(\-39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col2, 31 * - 39 AS col2 query I rowsort @@ -16975,7 +16975,7 @@ SELECT 87 + + 70 AS col1 # 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\(\-73\) 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\(\-73\) 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 - 73 AS col1, COUNT ( * ) AS col1 query II rowsort label-3235 @@ -17424,7 +17424,7 @@ SELECT - 4 * - 29 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 55 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 COUNT ( * ) AS col2, 55 AS col2 query I rowsort label-3320 @@ -18011,7 +18011,7 @@ NULL # 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\(34\) 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\(34\) 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 34 col1, COUNT ( * ) AS col1 query I rowsort @@ -18246,7 +18246,7 @@ SELECT ALL + 82 * - 73 + - 58 * 21 / CAST ( + 42 AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - -76 -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 "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 "count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(\-76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) + + COUNT ( * ) AS col0, ( - 76 ) AS col0 query I rowsort @@ -19102,7 +19102,7 @@ SELECT ALL 46 + - 85 * + + 88 * - 89 * + 6 AS col1, - 79 * - - 72 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 83 -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\(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 "count\(Int64\(1\)\) AS count\(\*\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(82\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) / - COUNT ( * ) AS col1, + 82 + + COUNT ( * ) AS col1 query I rowsort label-3637 @@ -20314,7 +20314,7 @@ SELECT ALL + 58 * 34 + 68 AS col0 # 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\(2\) \* \(\- Int64\(\-39\)\) \+ Int64\(\-57\) \- \(\- Int64\(\-39\)\) 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 "Int64\(2\) \* \(\- Int64\(\-39\)\) \+ Int64\(\-57\) \- \(\- Int64\(\-39\)\) 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 DISTINCT ( 2 ) * - - 39 + + - 57 - - - 39 col2, COUNT ( * ) * + COUNT ( * ) AS col2 query I rowsort label-3867 @@ -22099,7 +22099,7 @@ SELECT - 38 + - 37 # Datafusion - Datafusion expected results: # Datafusion - Expected - -42 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(42\)\) 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\(42\)\) 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 - + 42 col2, 66 * COUNT ( * ) AS col2 query I rowsort label-4210 @@ -22822,7 +22822,7 @@ SELECT ALL + + 4 * + 14 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - -42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \* count\(Int64\(1\)\) AS count\(\*\) 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\(75\) \* count\(Int64\(1\)\) (AS count\(\*\) )?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 75 * + COUNT ( * ) AS col2, - 42 AS col2 query II 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 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\. SELECT DISTINCT COUNT ( * ) AS col1, 64 * + 3 + - CAST ( 58 AS INTEGER ) + - COALESCE ( + - 94, + + 79 ) * 64 * + 2 AS col1 query I rowsort @@ -26740,7 +26740,7 @@ SELECT ALL + - 83 * + 79 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - 1 -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 "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\(\-47\) \* 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 - 47 * COUNT ( * ) AS col2, COUNT ( * ) AS col2 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 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\. 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 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\. SELECT 23 + - + 21 * + - CAST ( NULL AS INTEGER ) AS col0, 98 * + + 62 * + + COUNT ( * ) AS col0 query I rowsort label-5199 @@ -28131,7 +28131,7 @@ SELECT DISTINCT + 46 * + 63 * 95 - 98 - 3 * + 43 + 34 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -3168 -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\(\-72\) \* 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(\-72\) \* Int64\(44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col1, - 72 * 44 AS col1 query I rowsort label-5360 @@ -30023,7 +30023,7 @@ SELECT 11 + + 24 # 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 "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-18\) \+ Int64\(3\) \* 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-18\) \+ Int64\(3\) \* Int64\(18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col1, + COUNT ( * ) + - 18 + + + 3 * 18 AS col1 query I rowsort @@ -30034,7 +30034,7 @@ SELECT + 61 * + 0 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 126 -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\(14\) \+ Int64\(25\) \+ nullif\(Int64\(87\), \(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(14\) \+ Int64\(25\) \+ nullif\(Int64\(87\), \(\- Int64\(\-4\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col0, 14 + + + 25 + + NULLIF ( 87, - - 4 ) AS col0 query I rowsort label-5722 @@ -32672,7 +32672,7 @@ SELECT + 30 * + 76 + + 62 * - + 46 - + NULLIF ( - 71, AVG ( ( - 88 ) ) ) * + 62 # 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 "count\(DISTINCT 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "count\(DISTINCT Int64\(67\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, + COUNT ( DISTINCT + + 67 ) AS col1 query I rowsort @@ -37524,7 +37524,7 @@ SELECT ALL ( 23 ) + - - 71 * - - 83 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) 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\(91\) 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 91 AS col0, + COUNT ( * ) AS col0 query I rowsort @@ -37787,7 +37787,7 @@ SELECT - 25 * + COALESCE ( - 68, + 6 * - ( CASE + + 55 WHEN - COUNT ( * ) / - CO # Datafusion - Datafusion expected results: # Datafusion - Expected - -5327 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(88\)\) \* Int64\(60\) \+ Int64\(\-31\) \+ Int64\(\-16\) 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\(88\)\) \* Int64\(60\) \+ Int64\(\-31\) \+ Int64\(\-16\) 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 - + 88 * 60 + - 31 + - 16 col0, COUNT ( * ) AS col0 query I rowsort @@ -43642,7 +43642,7 @@ SELECT ALL - COALESCE ( - 62, COUNT ( * ) * - CASE + 48 WHEN + 52 * + 63 THEN 94 # 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\(\*\) / 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 "count\(Int64\(1\)\) AS count\(\*\) / 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 COUNT ( * ) / + COUNT ( * ) AS col2, COUNT ( * ) col2 query I rowsort @@ -44109,7 +44109,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\(88\) WHEN Int64\(2\) THEN max\(DISTINCT Int64\(\-42\)\) WHEN Int64\(\-60\) THEN NULL 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 Int64\(88\) WHEN Int64\(2\) THEN max\(DISTINCT Int64\(\-42\)\) WHEN Int64\(\-60\) THEN NULL 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 CASE 88 WHEN + 2 THEN + + MAX ( DISTINCT - 42 ) WHEN + - 60 THEN NULL END AS col0, COUNT ( * ) AS col0 query I rowsort @@ -44357,7 +44357,7 @@ SELECT - 51 * + + ( + + COUNT ( * ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -88 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) AS col1" at position 0 and "Int64\(60\) / 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\(\-88\) AS col1" at position 0 and "Int64\(60\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 88 AS col1, 60 / + COUNT ( * ) AS col1 query I rowsort @@ -49834,7 +49834,7 @@ SELECT - + 21 + + 36 + 54 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - -19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col0" at position 0 and "Int64\(\-19\) / 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\) AS col0" at position 0 and "Int64\(\-19\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 95 AS col0, - 19 / COUNT ( * ) AS col0 query I rowsort label-9486 diff --git a/data/sqlite/random/expr/slt_good_62.slt b/data/sqlite/random/expr/slt_good_62.slt index 8aa60df..7285daf 100644 --- a/data/sqlite/random/expr/slt_good_62.slt +++ b/data/sqlite/random/expr/slt_good_62.slt @@ -1982,7 +1982,7 @@ SELECT + - 30 * + + 14 - + ( - 64 ) + - 0 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) 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 "Int64\(94\) 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 ALL + + 94 col1, COUNT ( * ) + COUNT ( * ) col1 # Datafusion - Types were automatically converted from: @@ -3828,7 +3828,7 @@ NULL # 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 "Int64\(36\) / Int64\(3\) / Int64\(39\) AS col1" at position 0 and "Int64\(\-43\) \+ 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\(36\) / Int64\(3\) / Int64\(39\) AS col1" at position 0 and "Int64\(\-43\) \+ Int64\(\-62\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 36 / 3 / + 39 AS col1, - 43 + - 62 + COUNT ( * ) AS col1 query II rowsort label-721 @@ -6225,7 +6225,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 "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(18\) \+ Int64\(41\) 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\(18\) \+ Int64\(41\) 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 ( * ) + + + 18 + + 41 AS col1, COUNT ( * ) AS col1 query I rowsort @@ -9892,7 +9892,7 @@ SELECT - + 38 * + COALESCE ( - 29, NULLIF ( - 2, 51 * 72 ), - 75, + 27 * 96 + + # Datafusion - Datafusion expected results: # Datafusion - Expected - -78 # Datafusion - Expected - -1729768 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) AS col0" at position 0 and "Int64\(32\) \- Int64\(41\) \+ Int64\(\-26\) \* Int64\(28\) \* Int64\(54\) \* coalesce\(Int64\(44\), \(\- count\(Int64\(51\)\)\)\) \+ Int64\(52\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-83\) / 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\) AS col0" at position 0 and "Int64\(32\) \- Int64\(41\) \+ Int64\(\-26\) \* Int64\(28\) \* Int64\(54\) \* coalesce\(Int64\(44\), \(\- count\(Int64\(51\)\)\)\) \+ Int64\(52\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-83\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - 78 AS col0, 32 - + 41 + - 26 * 28 * + 54 * COALESCE ( 44, - COUNT ( ALL + 51 ) ) + 52 - - + COUNT ( * ) * - 83 / COUNT ( * ) AS col0 query I rowsort label-1883 @@ -13755,7 +13755,7 @@ SELECT - 45 / - 70 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -16 -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\(\-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\(\*\) )?AS col2" at position 0 and "Int64\(\-16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, - 16 AS col2 query I rowsort label-2615 @@ -20733,7 +20733,7 @@ SELECT DISTINCT COUNT ( ALL - 16 ) + + 52 # 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\(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 "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 ALL + COUNT ( * ) AS col0, 10 AS col0 query I rowsort label-3952 @@ -22134,7 +22134,7 @@ SELECT + 86 / - 96 + - 30 # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(82\)\) AS col2" at position 0 and "Int64\(12\) \- 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\(82\)\) AS col2" at position 0 and "Int64\(12\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 82 AS col2, 12 - + COUNT ( * ) AS col2 query I rowsort @@ -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 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\. SELECT - 77 * + MAX ( ALL 14 ) - + CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col2, 6 * COUNT ( * ) AS col2 query I rowsort @@ -36510,7 +36510,7 @@ SELECT ALL - + 63 + + - 37 # Datafusion - Datafusion expected results: # Datafusion - Expected - -37 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-37\)\) 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 "max\(Int64\(\-37\)\) 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 MAX ( ALL - 37 ) AS col0, COUNT ( * ) AS col0 query I rowsort @@ -38015,7 +38015,7 @@ SELECT + ( + ( + 90 ) ) * COALESCE ( - 42, 61 ) - 53 - 23 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -97 -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\(97\), Int64\(91\), Int64\(\-69\) / Int64\(\-96\) \* \(\- coalesce\(Int64\(\-18\), Int64\(59\)\)\) \* 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\(\*\) )?AS col1" at position 0 and "\(\- coalesce\(Int64\(97\), Int64\(91\), Int64\(\-69\) / Int64\(\-96\) \* \(\- coalesce\(Int64\(\-18\), Int64\(59\)\)\) \* Int64\(\-80\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) col1, - COALESCE ( 97, + 91, + - 69 / - 96 * - COALESCE ( + - 18, + ( 59 ) ) * + ( + - 80 ) ) AS col1 query I rowsort @@ -38901,7 +38901,7 @@ SELECT DISTINCT + + 74 AS col1, 60 * + 94 col1 # 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 "count\(Int64\(1\)\) AS count\(\*\) / Int64\(79\) \* \(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(79\) \* \(\- Int64\(\-65\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col0, + COUNT ( * ) / 79 * - - 65 col0 query I rowsort @@ -40977,7 +40977,7 @@ SELECT - 55 * + 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - -504 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) \* Int64\(36\) 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\(\-14\) \* Int64\(36\) 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 - 14 * 36 AS col2, COUNT ( * ) AS col2 query I rowsort label-7799 @@ -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 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\. 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 @@ -45980,7 +45980,7 @@ SELECT DISTINCT + 8 + ( - COUNT ( * ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -69 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) \+ Int64\(\-17\) \+ count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(\-53\) \+ Int64\(\-17\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?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 - 53 + - 17 + + COUNT ( * ) col1, 59 AS col1 query I rowsort label-8756 @@ -49616,7 +49616,7 @@ SELECT ALL COUNT ( * ) * + - NULLIF ( + 69, + + 55 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -81 -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\(\-81\), \(\- Int64\(43\)\) \* 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "coalesce\(Int64\(\-81\), \(\- Int64\(43\)\) \* Int64\(83\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col1, COALESCE ( + - 81, - + 43 * 83 ) col1 query II rowsort label-9445 @@ -51952,7 +51952,7 @@ SELECT DISTINCT - - 97 + + NULLIF ( + 25, 36 * + 52 + ( 59 ) ) * + 68 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4312 # Datafusion - Expected - -35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \* Int64\(88\) AS col0" at position 0 and "Int64\(29\) \+ \(\- max\(Int64\(64\)\)\) \* 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\) AS col0" at position 0 and "Int64\(29\) \+ \(\- max\(Int64\(64\)\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 49 * + 88 AS col0, 29 + - + MAX ( + 64 ) * COUNT ( * ) AS col0 query I rowsort label-9897 diff --git a/data/sqlite/random/expr/slt_good_63.slt b/data/sqlite/random/expr/slt_good_63.slt index 38c72ac..eea28f3 100644 --- a/data/sqlite/random/expr/slt_good_63.slt +++ b/data/sqlite/random/expr/slt_good_63.slt @@ -5279,7 +5279,7 @@ SELECT NULLIF ( + + 92, - - 5 ) / - + 99 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 47 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 COUNT ( * ) AS col2, 47 AS col2 query I rowsort label-997 @@ -6877,7 +6877,7 @@ NULL # 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 "Int64\(31\) AS col1" at position 0 and "Int64\(63\) / Int64\(44\) / 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\(31\) AS col1" at position 0 and "Int64\(63\) / Int64\(44\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 31 AS col1, 63 / 44 / + COUNT ( * ) AS col1 query I rowsort label-1299 @@ -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 Int32\) 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 @@ -10808,7 +10808,7 @@ SELECT NULLIF ( - 38, + 18 + - CASE - 84 WHEN + MIN ( 13 ) THEN 19 + - + 50 END # 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 "coalesce\(Int64\(46\), Int64\(56\)\) AS col0" at position 0 and "Int64\(\-91\) \- 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\(46\), Int64\(56\)\) AS col0" at position 0 and "Int64\(\-91\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COALESCE ( 46, 56 ) AS col0, - 91 - COUNT ( * ) col0 query I rowsort label-2051 @@ -11659,7 +11659,7 @@ SELECT - COALESCE ( - 30, 27, + - 25 / + + 88 + 97 ) + 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 16 -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\(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\(\*\) )?AS col2" at position 0 and "Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, + 16 col2 query II rowsort label-2211 @@ -12510,7 +12510,7 @@ SELECT 95 + + - 36 * 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - -72 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-72\) 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\(\-72\) 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 - 72 AS col2, + COUNT ( * ) AS col2 query I rowsort @@ -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 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\. SELECT CAST ( NULL AS INTEGER ) * - + COUNT ( * ) + + COUNT ( + 29 ) / + + COUNT ( * ) AS col1, + 20 - - 8 AS col1 query I rowsort @@ -19244,7 +19244,7 @@ SELECT ALL 55 + - 39 col2 # Datafusion - Expected - -38 # Datafusion - Expected - 1 # Datafusion - Expected - 114 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* sum\(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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* sum\(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 + - COUNT ( * ) * SUM ( ALL + 38 ) AS col2, + COUNT ( * ) col2, + + 63 / 49 / 48 + 79 + - COUNT ( * ) + 36 query I rowsort @@ -21590,7 +21590,7 @@ SELECT ALL - COUNT ( DISTINCT - 6 ) + - 34 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\(50\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(18\) \* \(\- CASE Int64\(\-85\) WHEN \(\- Int64\(77\)\) THEN NULL WHEN Int64\(\-80\) THEN \(\- Int64\(86\)\) ELSE NULL END\) \+ CASE Int64\(19\) WHEN Int64\(6\) / Int64\(4\) \- Int64\(18\) \+ Int64\(\-15\) \- Int64\(\-17\) THEN Int64\(7\) WHEN Int64\(\-82\) 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\(50\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(18\) \* \(\- CASE Int64\(\-85\) WHEN \(\- Int64\(77\)\) THEN NULL WHEN Int64\(\-80\) THEN \(\- Int64\(86\)\) ELSE NULL END\) \+ CASE Int64\(19\) WHEN Int64\(6\) / Int64\(4\) \- Int64\(18\) \+ Int64\(\-15\) \- Int64\(\-17\) THEN Int64\(7\) WHEN Int64\(\-82\) THEN NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 50 + COUNT ( * ) AS col1, 18 * - + CASE - 85 WHEN ( - + 77 ) THEN NULL WHEN - 80 THEN - + 86 ELSE NULL END + CASE 19 WHEN + 6 / 4 - + 18 + + - 15 - - 17 THEN + + 7 WHEN - 82 THEN NULL END AS col1 query II rowsort @@ -23069,7 +23069,7 @@ SELECT - + 94 / + 59 AS col1, - 85 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -33 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) AS col0" at position 0 and "Int64\(18\) \- 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\(\-33\) AS col0" at position 0 and "Int64\(18\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - 33 AS col0, 18 - COUNT ( * ) AS col0 query II rowsort label-4374 @@ -23660,7 +23660,7 @@ SELECT - 90 * - ( 1 ) + + COUNT ( * ) + 51 * COUNT ( + ( - 77 ) ) * - - 85 + - 2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -329 # Datafusion - Expected - -740 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-7\) \* \(\- Int64\(\-47\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(20\) \* 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\(\-7\) \* \(\- Int64\(\-47\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(20\) \* Int64\(\-37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 7 * - - 47 * + COUNT ( * ) AS col2, + 20 * ( - 37 ) col2 query I rowsort label-4487 @@ -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 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\. SELECT COUNT ( * ) AS col1, + 11 + COALESCE ( + CAST ( NULL AS INTEGER ), + 14 * + + 94, MAX ( - + 22 ) ) * + ( - + 32 ) + - COUNT ( * ) AS col1 query I rowsort @@ -26715,7 +26715,7 @@ SELECT ALL COALESCE ( - - ( - 8 ), + COUNT ( * ) - + + 42, + - 74 + - 59 - 52 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -3255 -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\(\-35\) \* \(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(\-35\) \* \(\- Int64\(\-93\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) col0, - 35 * - - 93 AS col0 query II rowsort label-5071 @@ -27685,7 +27685,7 @@ SELECT + 0 * 61 * + 91 * - 43 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 "Int64\(95\) / Int64\(55\) \+ Int64\(53\) \+ 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 "Int64\(95\) / Int64\(55\) \+ Int64\(53\) \+ Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) col0, 95 / + 55 + + 53 + 35 AS col0 query I rowsort label-5257 @@ -28304,7 +28304,7 @@ SELECT + 53 * - 33 * + + 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - 1 -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\(\*\) AS col0" at position 1 have the 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\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 75 AS col0, ( + COUNT ( * ) ) AS col0 query I rowsort label-5376 @@ -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 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\. 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 @@ -34783,7 +34783,7 @@ SELECT ( - 39 ) * + 55 + 81 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 578665 -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\(27\) \+ Int64\(70\) \* Int64\(16\) \+ \(\- Int64\(82\)\) \+ coalesce\(min\(DISTINCT Int64\(\-95\)\), Int64\(5\), Int64\(94\) \+ Int64\(\-26\)\) \* Int64\(95\) \* \(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(27\) \+ Int64\(70\) \* Int64\(16\) \+ \(\- Int64\(82\)\) \+ coalesce\(min\(DISTINCT Int64\(\-95\)\), Int64\(5\), Int64\(94\) \+ Int64\(\-26\)\) \* Int64\(95\) \* \(\- Int64\(64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) col2, 27 + ( + + 70 ) * + 16 + - + 82 + COALESCE ( + MIN ( DISTINCT - 95 ), 5, 94 + - 26 ) * 95 * - ( 64 ) AS col2 query I rowsort label-6614 @@ -35411,7 +35411,7 @@ SELECT DISTINCT - 1 * + 39 AS col1 # Datafusion - Expected - 1 # Datafusion - Expected - 2 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(DISTINCT Int64\(\-20\)\) AS col1" at position 0 and "count\(Int64\(61\)\) \+ 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 Int64\(\-20\)\) AS col1" at position 0 and "count\(Int64\(61\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( DISTINCT - 20 ) AS col1, + COUNT ( + 61 ) + COUNT ( * ) col1, MAX ( DISTINCT ( 69 ) ) AS col2 query I rowsort @@ -36617,7 +36617,7 @@ SELECT SUM ( - + 15 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 47 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(47\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) col2, 47 AS col2 query I rowsort @@ -38303,7 +38303,7 @@ SELECT - 33 + 23 * - - 90 - 85 + + + 55 + - + 7 / ( - - 85 ) AS col2 # 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 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\(\-57\) 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 - 57 AS col0, COUNT ( * ) - + COUNT ( * ) AS col0 query I rowsort @@ -40687,7 +40687,7 @@ SELECT - 65 / 31 * - - COALESCE ( - ( - COUNT ( * ) ), + 5, 1 * - - 78 ) * - - 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2009 # Datafusion - Expected - -1729 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \* Int64\(41\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(80\) \* Int64\(\-21\) \+ 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\(49\) \* Int64\(41\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(80\) \* Int64\(\-21\) \+ Int64\(\-49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 49 * 41 * COUNT ( * ) AS col1, 80 * - 21 + - 49 AS col1 query I rowsort label-7731 @@ -40948,7 +40948,7 @@ SELECT ALL + 65 + - - COUNT ( * ) # 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\(\-13\)\) \+ Int64\(\-86\) 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\(\-13\)\) \+ Int64\(\-86\) 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 + - ( + - 13 ) + - 86 AS col2, COUNT ( * ) AS col2 query I rowsort label-7782 @@ -45654,7 +45654,7 @@ SELECT - MIN ( DISTINCT 70 ) * - + 18 * 89 # 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 col1" at position 0 and "Int64\(7\) \+ Int64\(1\) \+ count\(Int64\(74\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(99\)\) \+ \(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(7\) \+ Int64\(1\) \+ count\(Int64\(74\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(99\)\) \+ \(\- Int64\(\-48\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, 7 + 1 + + + COUNT ( ALL 74 ) * + + COUNT ( * ) + - + 99 + - - 48 AS col1 query I rowsort @@ -46940,7 +46940,7 @@ SELECT - + SUM ( 80 ) * + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -44 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(44\)\) AS col2" at position 0 and "Int64\(56\) \* 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\(44\)\) AS col2" at position 0 and "Int64\(56\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 44 AS col2, 56 * COUNT ( * ) AS col2 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_64.slt b/data/sqlite/random/expr/slt_good_64.slt index d3a9bfa..7f362cb 100644 --- a/data/sqlite/random/expr/slt_good_64.slt +++ b/data/sqlite/random/expr/slt_good_64.slt @@ -1925,7 +1925,7 @@ SELECT NULLIF ( + + 17, - 21 ) * + - 23 # 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 "nullif\(Int64\(\-33\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) / Int64\(60\) \+ Int64\(\-53\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(79\) \+ 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 "nullif\(Int64\(\-33\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) / Int64\(60\) \+ Int64\(\-53\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(79\) \+ 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 DISTINCT NULLIF ( - 33, - - COUNT ( * ) ) / + 60 + - 53 * ( - COUNT ( * ) ) / + 79 + 1 AS col0, COUNT ( * ) AS col0 query II rowsort label-360 @@ -2030,7 +2030,7 @@ SELECT + 53 + 32 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1704 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \* \(\- Int64\(\-29\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-80\) AS col1" at position 0 and "Int64\(44\) \* 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\(56\) \* \(\- Int64\(\-29\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-80\) AS col1" at position 0 and "Int64\(44\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 56 * - - 29 * - COUNT ( * ) + + - 80 col1, + 44 * COUNT ( * ) AS col1 query I rowsort @@ -2272,7 +2272,7 @@ SELECT + 88 - + 92 / + 79 AS col2 # 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 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\(\-4\) 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 - 4 col2, COUNT ( * ) AS col2 query I rowsort @@ -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 Int32\) \* \(\- 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 @@ -4159,7 +4159,7 @@ SELECT + - 23 + - 96 AS col1 # 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\(16\) \* \(\- nullif\(\(\- count\(coalesce\(Int64\(23\), Int64\(\-14\)\)\)\), Int64\(96\)\)\) \+ Int64\(87\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-76\) / 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\(16\) \* \(\- nullif\(\(\- count\(coalesce\(Int64\(23\), Int64\(\-14\)\)\)\), Int64\(96\)\)\) \+ Int64\(87\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(\-76\) / Int64\(48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 16 * - NULLIF ( - COUNT ( ALL + + COALESCE ( + 23, - 14 ) ), + 96 ) + + + 87 * COUNT ( * ) AS col1, - 76 / 48 col1 query I rowsort @@ -6298,7 +6298,7 @@ SELECT + 1 * 55, 68 + CAST ( - 24 AS INTEGER ) * + 3 AS col0 # 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\(84\)\) 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\(84\)\) 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 - + 84 AS col1, COUNT ( * ) AS col1 query I rowsort label-1192 @@ -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 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\. 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 @@ -8808,7 +8808,7 @@ SELECT + 99 * - 81 + 98 + - ( - COALESCE ( 17, - CAST ( + 30 AS INTEGER ) * - 74 # Datafusion - Expected - 1 # Datafusion - Expected - 67 # Datafusion - Expected - -57 -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\(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\(\*\) )?AS col2" at position 0 and "Int64\(67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col2, 67 AS col2, - 57 query I rowsort label-1672 @@ -16481,7 +16481,7 @@ NULL # 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\(\-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\(25\) 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 + 25 AS col1, - 80 - + + COUNT ( * ) AS col1 query I rowsort @@ -17361,7 +17361,7 @@ SELECT - COUNT ( * ) AS col2, - 95 AS col1 # 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 "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\(42\) 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 42 AS col0, COUNT ( * ) AS col0 query I rowsort @@ -18227,7 +18227,7 @@ SELECT ALL + 35 AS col0, 81 AS col0, COUNT ( * ) + - - 86 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - 1 -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\(\*\) AS col1" at position 1 have the 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\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( 56 ) AS col1, COUNT ( * ) AS col1 query II rowsort label-3462 @@ -19168,7 +19168,7 @@ SELECT DISTINCT + 57 - + + 23 AS col2 # 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 col0" at position 0 and "Int64\(\-34\) \+ Int64\(15\) / 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(\-34\) \+ Int64\(15\) / Int64\(76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COUNT ( * ) AS col0, - 34 + + 15 / ( 76 ) AS col0 # Datafusion - Types were automatically converted from: @@ -24728,7 +24728,7 @@ SELECT ALL + 35 / - 77 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col2" at position 0 and "Int64\(60\) \+ 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\(4\) AS col2" at position 0 and "Int64\(60\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 4 AS col2, + 60 + + COUNT ( * ) AS col2 query II rowsort label-4693 @@ -25277,7 +25277,7 @@ SELECT ALL ( COUNT ( DISTINCT - ( - 90 ) ) ) * + 48 - - 71 # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) col1, COUNT ( * ) AS col1 query I rowsort @@ -26439,7 +26439,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -63 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(63\)\) 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\)\) 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 - ( 63 ) col1, COUNT ( * ) AS col1 query I rowsort @@ -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 Int32\)\)\) AS Int32\)\) 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 @@ -28776,7 +28776,7 @@ SELECT MAX ( - 14 ) 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 col0" at position 0 and "Int64\(\-89\) \* CASE Int64\(\-86\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(\-29\) 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\(\*\) )?AS col0" at position 0 and "Int64\(\-89\) \* CASE Int64\(\-86\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(\-29\) ELSE NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, - 89 * CASE - 86 WHEN COUNT ( * ) THEN - 29 ELSE NULL END AS col0 query I rowsort @@ -29262,7 +29262,7 @@ SELECT ALL - 87 * 23 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4683 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \* \(\- Int64\(95\)\) \+ Int64\(67\) \* count\(Int64\(1\)\) AS count\(\*\) 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\(50\) \* \(\- Int64\(95\)\) \+ Int64\(67\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(28\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 50 * - + 95 + 67 * + COUNT ( * ) col0, + 28 AS col0 query I rowsort label-5557 @@ -32383,7 +32383,7 @@ SELECT - 70 * ( - 42 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - -93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col1" at position 0 and "\(\- 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 "Int64\(30\) AS col1" at position 0 and "\(\- Int64\(93\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 30 AS col1, - ( + 93 ) * + COUNT ( * ) AS col1 query I rowsort label-6140 @@ -35730,7 +35730,7 @@ SELECT ALL COUNT ( * ) * 64 # Datafusion - Datafusion expected results: # Datafusion - Expected - 544 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(12\)\) \* \(\- Int64\(39\)\) \- Int64\(\-76\) AS col1" at position 0 and "Int64\(11\) / Int64\(91\) \* 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\(12\)\) \* \(\- Int64\(39\)\) \- Int64\(\-76\) AS col1" at position 0 and "Int64\(11\) / Int64\(91\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( + 12 ) * - + 39 - - 76 AS col1, + 11 / 91 * COUNT ( * ) AS col1 query I rowsort @@ -35826,7 +35826,7 @@ SELECT ALL MIN ( - 23 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -2112 -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\(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\(\*\) )?AS col2" at position 0 and "Int64\(24\) \* \(\- Int64\(88\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col2, + 24 * - + 88 col2 query I rowsort label-6800 @@ -38361,7 +38361,7 @@ SELECT ( - COALESCE ( + ( - 46 ), - CAST ( NULL AS INTEGER ) * 50 / - - 2 + 59 + # 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 "\(\- count\(DISTINCT 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 "\(\- count\(DISTINCT Int64\(\-35\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, - COUNT ( DISTINCT - 35 ) AS col0 query I rowsort @@ -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 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\. SELECT - COALESCE ( - SUM ( - 97 ), + ( ( + + COALESCE ( + 45, + - 27 ) ) ) ) * + 37 / + CAST ( NULL AS INTEGER ) + 99 / + ( + COUNT ( * ) ) AS col0, 15 AS col0 query I rowsort label-7571 @@ -41192,7 +41192,7 @@ SELECT - 0 * - COUNT ( * ) col0, 7 - 91 * - 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 44 -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\(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\(\*\) )?AS col2" at position 0 and "Int64\(44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) col2, 44 col2 query I rowsort @@ -41274,7 +41274,7 @@ SELECT ALL - ( - + 59 ) # 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 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(\-8\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col2, - 8 AS col2 query II rowsort label-7833 @@ -42779,7 +42779,7 @@ SELECT ALL ( + + 18 ) + + 53 + CASE + COUNT ( * ) WHEN 56 + - COUNT ( * ) THEN 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - -45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col0" at position 0 and "Int64\(10\) \+ Int64\(37\) \+ \(\- sum\(\(\- Int64\(\-92\)\)\)\) \* 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\(67\) AS col0" at position 0 and "Int64\(10\) \+ Int64\(37\) \+ \(\- sum\(\(\- Int64\(\-92\)\)\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 67 AS col0, + 10 + + + 37 + - SUM ( - - 92 ) * COUNT ( * ) AS col0 query I rowsort @@ -44981,7 +44981,7 @@ SELECT + 98 * 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - -67 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "sum\(DISTINCT Int64\(\-21\)\) / \(\- Int64\(\-52\)\) \* \(\- \(\- 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\(\-68\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "sum\(DISTINCT Int64\(\-21\)\) / \(\- Int64\(\-52\)\) \* \(\- \(\- Int64\(\-68\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 68 + COUNT ( * ) col1, SUM ( DISTINCT - 21 ) / - - 52 * + - ( - - 68 ) AS col1 query I rowsort @@ -48745,7 +48745,7 @@ SELECT 55 + + 19 / 1 + + 27 * 35 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) \+ count\(Int64\(1\)\) AS count\(\*\) 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\(74\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 74 + COUNT ( * ) AS col0, + 7 AS col0 query I rowsort label-9265 @@ -49140,7 +49140,7 @@ SELECT - 43 * + 47 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - -85536 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col2" at position 0 and "Int64\(11\) \* nullif\(Int64\(\-96\), Int64\(\-72\) \+ \(\- Int64\(26\)\) \+ Int64\(22\) \* \(\- Int64\(67\)\)\) \* Int64\(81\) \* 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\(49\) AS col2" at position 0 and "Int64\(11\) \* nullif\(Int64\(\-96\), Int64\(\-72\) \+ \(\- Int64\(26\)\) \+ Int64\(22\) \* \(\- Int64\(67\)\)\) \* Int64\(81\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 49 AS col2, + 11 * NULLIF ( - 96, - 72 + - + 26 + 22 * - + ( + 67 ) ) * 81 * COUNT ( * ) AS col2 query I rowsort label-9340 diff --git a/data/sqlite/random/expr/slt_good_65.slt b/data/sqlite/random/expr/slt_good_65.slt index 5917260..5b289e7 100644 --- a/data/sqlite/random/expr/slt_good_65.slt +++ b/data/sqlite/random/expr/slt_good_65.slt @@ -1158,7 +1158,7 @@ SELECT - ( + 77 ) AS col0 # 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 "\(\- Int64\(77\)\) 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\(77\)\) 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 - + 77 AS col1, COUNT ( * ) AS col1 query I rowsort label-218 @@ -6059,7 +6059,7 @@ SELECT 65 * COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -75 # Datafusion - Expected - 1 -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\(\*\) AS col0" at position 1 have the 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\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 75 AS col0, COUNT ( * ) col0 query I rowsort @@ -6579,7 +6579,7 @@ SELECT + 53 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) 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\(78\) 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 78 AS col1, COUNT ( * ) AS col1 query I rowsort label-1268 @@ -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 Int32\)" 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 @@ -7853,7 +7853,7 @@ SELECT + 49 + CASE - 0 WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE 15 END AS # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # 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\(7\) \+ 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(7\) \+ Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, 7 + + 31 AS col0 query I rowsort @@ -8276,7 +8276,7 @@ SELECT + - MAX ( - 38 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) 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\(26\) 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 26 AS col0, COUNT ( * ) AS col0 query I rowsort label-1599 @@ -9122,7 +9122,7 @@ SELECT - COUNT ( * ) col0, - 33 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 359660 -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\(90\) \* Int64\(74\) \* Int64\(54\) \+ \(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(90\) \* Int64\(74\) \* Int64\(54\) \+ \(\- Int64\(\-20\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, + COUNT ( * ) * + 90 * 74 * + + 54 + - - 20 col2 query I rowsort label-1763 @@ -9670,7 +9670,7 @@ SELECT 57 * COUNT ( DISTINCT 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 "Int64\(0\) \* count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(0\) \* count\(Int64\(1\)\) (AS count\(\*\) )?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 + 0 * + COUNT ( * ) AS col1, 65 col1 query I rowsort label-1868 @@ -12671,7 +12671,7 @@ SELECT + + 49 * 68 - + - 38 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) 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\(\-47\) 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 - 47 AS col2, COUNT ( * ) col2 query I rowsort label-2451 @@ -14388,7 +14388,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 49 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, + 49 AS col2 query I rowsort label-2780 @@ -14505,7 +14505,7 @@ SELECT COALESCE ( 51, + 24 ) * + SUM ( 12 ) 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 "\(\- 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\(\*\)\) 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 ( * ) col0, COUNT ( * ) AS col0 query I rowsort label-2802 @@ -17700,7 +17700,7 @@ SELECT DISTINCT - - CAST ( COUNT ( * ) 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 "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\(\*\) )?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 ( * ) AS col0, COUNT ( * ) AS col0 query I rowsort label-3418 @@ -18828,7 +18828,7 @@ SELECT DISTINCT NULLIF ( + 68, ( - 30 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -67 # Datafusion - Expected - -38 -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 "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\(\-68\) \+ 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 - 68 + + COUNT ( * ) AS col0, - 38 AS col0 query I rowsort @@ -20284,7 +20284,7 @@ SELECT ALL - 57 + - 65 * - 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 1 -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\(\*\) AS col2" at position 1 have the 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\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 6 AS col2, COUNT ( * ) AS col2 query I rowsort @@ -22579,7 +22579,7 @@ SELECT + COUNT ( * ) / + + 36 AS col2 # 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\(57\) \+ \(\- \(\- max\(Int64\(1\)\)\)\) \* Int64\(68\) 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\(57\) \+ \(\- \(\- max\(Int64\(1\)\)\)\) \* Int64\(68\) 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 + 57 + - - MAX ( 1 ) * + + 68 AS col1, COUNT ( * ) AS col1 query I rowsort label-4362 @@ -23615,7 +23615,7 @@ SELECT ALL + CAST ( - 77 AS INTEGER ) + + 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 23 -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 "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 "count\(Int64\(1\)\) AS count\(\*\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) / COUNT ( * ) col2, 23 AS col2 query II rowsort label-4560 @@ -25315,7 +25315,7 @@ SELECT + 1 AS col0, - CAST ( - - 81 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) 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\) 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 + 66 AS col2, COUNT ( * ) AS col2 query I rowsort label-4889 @@ -26921,7 +26921,7 @@ SELECT DISTINCT SUM ( CAST ( 6 AS INTEGER ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 35 -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\(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 "Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col0, 35 AS col0 query I rowsort label-5202 @@ -27158,7 +27158,7 @@ SELECT ALL ( 61 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col1" at position 0 and "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 "Int64\(97\) AS col1" at position 0 and "Int64\(\-46\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 97 col1, - 46 * COUNT ( * ) AS col1 query I rowsort label-5247 @@ -29350,7 +29350,7 @@ SELECT DISTINCT - ( + - 8 ) col2 # 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 "Int64\(\-60\) \- Int64\(32\) 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\) \- Int64\(32\) 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 - + 32 AS col1, COUNT ( * ) AS col1 query I rowsort label-5675 @@ -30815,7 +30815,7 @@ SELECT + MIN ( DISTINCT + 25 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -81 # Datafusion - Expected - -5 -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\(82\) \+ count\(Int64\(1\)\) AS count\(\*\) 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\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(82\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(\-5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) + COUNT ( * ) - 82 + COUNT ( * ) col0, - 5 col0 query II rowsort label-5959 @@ -30970,7 +30970,7 @@ SELECT + 96 * ( 53 ) 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 "\(\- 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\(\*\)\) 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 ( * ) AS col0, + COUNT ( * ) AS col0 query I rowsort @@ -34031,7 +34031,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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col1, + COUNT ( * ) AS col1 query I rowsort label-6586 @@ -34122,7 +34122,7 @@ SELECT ALL - COUNT ( * ) + + - 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - -88 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) 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\(\-88\) 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 - 88 AS col1, COUNT ( * ) AS col1 query II rowsort label-6604 @@ -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 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\. 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 Int32\)\) 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 @@ -41645,7 +41645,7 @@ SELECT - 17 / + 43 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -4 -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\(\-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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(\-4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col0, - 4 col0 query I rowsort label-8062 @@ -41675,7 +41675,7 @@ SELECT 42 AS col1, COUNT ( * ) # 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 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\(\*\) )?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 COUNT ( * ) AS col2, COUNT ( * ) AS col2 query I rowsort @@ -42075,7 +42075,7 @@ SELECT ALL 68 + - - 75 # 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 "Int64\(30\) 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\(30\) 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 + 30 AS col0, + COUNT ( * ) AS col0 query II rowsort @@ -45448,7 +45448,7 @@ SELECT DISTINCT 46 AS col2, 96 * + + 0 # 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 "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 "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, COUNT ( * ) col0 query I rowsort @@ -46527,7 +46527,7 @@ SELECT DISTINCT - + 99, 4 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -72 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(72\)\) 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\(72\)\) 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 - ( 72 ) col2, + COUNT ( * ) AS col2 query I rowsort label-9003 @@ -50535,7 +50535,7 @@ SELECT + - COUNT ( * ) AS col0, - 43 # Datafusion - Datafusion expected results: # Datafusion - Expected - -20 # Datafusion - Expected - 1 -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\(\*\) AS col1" at position 1 have the 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\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 20 AS col1, + COUNT ( * ) AS col1 query I rowsort label-9769 diff --git a/data/sqlite/random/expr/slt_good_66.slt b/data/sqlite/random/expr/slt_good_66.slt index 3d45774..abbe40b 100644 --- a/data/sqlite/random/expr/slt_good_66.slt +++ b/data/sqlite/random/expr/slt_good_66.slt @@ -2386,7 +2386,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 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\(\*\)\) 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 ( * ) AS col2, + COUNT ( * ) AS col2 query I rowsort @@ -4361,7 +4361,7 @@ SELECT ALL + ( - - 64 ) AS col0 # 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 "count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, 37 AS col1 query I rowsort label-823 @@ -10326,7 +10326,7 @@ SELECT DISTINCT COUNT ( * ) - 70 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -68 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) 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\(\-68\) 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 - 68 col2, COUNT ( * ) AS col2 query I rowsort label-1954 @@ -10962,7 +10962,7 @@ SELECT DISTINCT + + 23 / 68 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1141 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) \- Int64\(76\) \* Int64\(\-16\) 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\(\-75\) \- Int64\(76\) \* Int64\(\-16\) 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 - 75 - 76 * - 16 col1, COUNT ( * ) col1 query I rowsort @@ -15058,7 +15058,7 @@ SELECT ALL + MIN ( ALL 2 ) * - 18 * - - 59 AS col1 # Datafusion - Expected - 122604 # Datafusion - Expected - -30 # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \* Int64\(\-33\) \+ Int64\(44\) / \(\- Int64\(22\)\) \- min\(\(\- coalesce\(Int64\(\-4\), Int64\(70\)\)\)\) \+ max\(\(\- Int64\(\-37\)\)\) \+ Int64\(44\) \* \(\- Int64\(\-38\)\) \* max\(DISTINCT Int64\(74\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(54\) \- 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\(35\) \* Int64\(\-33\) \+ Int64\(44\) / \(\- Int64\(22\)\) \- min\(\(\- coalesce\(Int64\(\-4\), Int64\(70\)\)\)\) \+ max\(\(\- Int64\(\-37\)\)\) \+ Int64\(44\) \* \(\- Int64\(\-38\)\) \* max\(DISTINCT Int64\(74\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(54\) \- Int64\(84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 35 * - 33 + + 44 / - + 22 - MIN ( - COALESCE ( + ( - 4 ), + 70 ) ) + + MAX ( ALL ( - - 37 ) ) + + 44 * - - 38 * + MAX ( DISTINCT 74 ) * COUNT ( * ) AS col1, 54 - + + 84 AS col1, - 12 AS col2 query I rowsort label-2855 @@ -15624,7 +15624,7 @@ SELECT ALL - MIN ( + 48 ) + + 76 * + 0 col2 # 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 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\(\-3\) 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 - 3 AS col1, + COUNT ( * ) AS col1 query I rowsort label-2962 @@ -17475,7 +17475,7 @@ SELECT DISTINCT - 39 * 11 # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) 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\) 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 - 62 AS col2, COUNT ( * ) AS col2 query I rowsort label-3318 @@ -17694,7 +17694,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\(\-56\) AS col0" at position 0 and "\(\- CASE Int64\(\-97\) WHEN Int64\(68\) \* \(\- count\(DISTINCT nullif\(Int64\(35\), Int64\(\-61\)\)\)\) THEN Int64\(10\) END\) \+ \(\- \(\- Int64\(84\)\)\) \* 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 "\(\- CASE Int64\(\-97\) WHEN Int64\(68\) \* \(\- count\(DISTINCT nullif\(Int64\(35\), Int64\(\-61\)\)\)\) THEN Int64\(10\) END\) \+ \(\- \(\- Int64\(84\)\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 56 AS col0, - CASE + - 97 WHEN + 68 * - + COUNT ( DISTINCT NULLIF ( + + 35, - 61 ) ) THEN 10 END + - - ( 84 ) * COUNT ( * ) AS col0 query I rowsort label-3359 @@ -18318,7 +18318,7 @@ SELECT DISTINCT + COUNT ( * ) + + - 8 - - - 43 * - + COUNT ( * ), - 49 / - - 25 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 2852 -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\(\-46\) \* coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(52\)\) \* \(\- \(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(\-46\) \* coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(52\)\) \* \(\- \(\- Int64\(\-62\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col1, - 46 * + + COALESCE ( + COUNT ( * ), 52 ) * - ( - - 62 ) AS col1 query I rowsort label-3475 @@ -19194,7 +19194,7 @@ SELECT COALESCE ( - - 90, + ( - 48 ) ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 48 -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\(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 "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 COUNT ( * ) AS col1, 48 AS col1 query I rowsort @@ -19360,7 +19360,7 @@ SELECT 80 + + NULLIF ( + 16, - 63 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - -55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col0" at position 0 and "Int64\(\-56\) \+ 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\(68\) AS col0" at position 0 and "Int64\(\-56\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 68 AS col0, - 56 + COUNT ( * ) AS col0 query I rowsort label-3673 @@ -20025,7 +20025,7 @@ SELECT ALL + 10 + - 21 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -53 # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-52\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "nullif\(\(\- Int64\(66\)\), Int64\(93\) \* Int64\(82\) \* Int64\(76\)\) \- 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\(\-52\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "nullif\(\(\- Int64\(66\)\), Int64\(93\) \* Int64\(82\) \* Int64\(76\)\) \- Int64\(23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 52 - COUNT ( * ) AS col0, ( + NULLIF ( - + 66, 93 * 82 * 76 ) ) - + 23 AS col0 query I rowsort @@ -21056,7 +21056,7 @@ SELECT - COUNT ( * ) + - 43 + 34 * 61 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 "Int64\(62\) \+ 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(62\) \+ CAST\(NULL AS Float64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col1, + 62 + + CAST ( NULL AS FLOAT8 ) AS col1 query I rowsort label-3997 @@ -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 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\. SELECT + - NULLIF ( - NULLIF ( - 9, + MIN ( CAST ( NULL AS INTEGER ) ) ), 75 ) * + 6 * - 27 * + COUNT ( * ) col1, + 42 / + 80 * - + 83 + + ( - 0 ) AS col1 query I rowsort @@ -27250,7 +27250,7 @@ SELECT ALL - + 94 - + 98 * + 60 * - 46 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3371 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) \* Int64\(\-62\) \+ \(\- Int64\(\-85\)\) 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\(\-53\) \* Int64\(\-62\) \+ \(\- Int64\(\-85\)\) 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 - 53 * - 62 + - - 85 AS col0, COUNT ( * ) AS col0 query I rowsort label-5176 @@ -28500,7 +28500,7 @@ SELECT ALL 12 AS col2, 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) 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\(14\) 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 14 AS col2, COUNT ( * ) col2 query I rowsort label-5412 @@ -30950,7 +30950,7 @@ SELECT DISTINCT + - 30 * SUM ( - 40 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-67\)\) \* count\(\(\- Int64\(\-85\)\)\) 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\(\-67\)\) \* count\(\(\- Int64\(\-85\)\)\) 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 - - 67 * COUNT ( ALL - - 85 ) AS col1, COUNT ( * ) AS col1 query I rowsort label-5875 @@ -31379,7 +31379,7 @@ SELECT + 67 / + 33 # 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 "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-78\) \+ coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(6\) \+ \(\- Int64\(29\)\) \* 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(\-78\) \+ coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(6\) \+ \(\- Int64\(29\)\) \* Int64\(15\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col2, - 78 + + COALESCE ( COUNT ( * ), + 6 + + - ( + 29 ) * 15 ) AS col2 query I rowsort @@ -32774,7 +32774,7 @@ SELECT - 49 * - 75 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 "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-48\) / 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 "Int64\(\-48\) / Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) col0, - 48 / + 33 AS col0 query II rowsort @@ -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 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\. SELECT ALL COUNT ( * ) + + 6 * - - CAST ( NULL AS INTEGER ) * 14 * - 26 * - 2 + COUNT ( * ) AS col0, COUNT ( * ) AS col0 query I rowsort @@ -37587,7 +37587,7 @@ SELECT ALL CASE WHEN NULL NOT IN ( 71, - COALESCE ( - + ( + 72 ), + 33, + 39 + + # 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 "Int64\(59\) 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\(59\) 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 59 col1, COUNT ( * ) col1 query I rowsort label-7144 @@ -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 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\. 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 @@ -43751,7 +43751,7 @@ SELECT ALL NULLIF ( 3, - - 92 ) + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 15 -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\) AS col1" at position 1 have the same name\. Consider aliasing \("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\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, 15 AS col1 query II rowsort @@ -44920,7 +44920,7 @@ NULL # 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 "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\(\*\) )?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 ( * ) AS col2, + 19 AS col2 query I rowsort @@ -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 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\. SELECT DISTINCT - + AVG ( DISTINCT + - CAST ( NULL AS INTEGER ) ) / 32 AS col0, COUNT ( * ) AS col0 query I rowsort label-8596 @@ -47931,7 +47931,7 @@ NULL # 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 "Int64\(11\) \+ \(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(11\) \+ \(\- Int64\(\-62\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) col2, 11 + - - 62 AS col2 query I rowsort label-9106 @@ -48130,7 +48130,7 @@ SELECT + COALESCE ( 52, - + 47 / - - 26 ) # 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 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\(15\) AS col0" at position 0 and "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 ALL + 15 AS col0, + CAST ( NULL AS FLOAT8 ) + + COUNT ( * ) AS col0 query I rowsort @@ -51613,7 +51613,7 @@ SELECT DISTINCT COALESCE ( - + 66, - + 32 ) * + MIN ( - + 91 ) * + 85 * 5 - 78 A # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - -525 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \+ Int64\(\-70\) AS col0" at position 0 and "Int64\(\-35\) \* Int64\(15\) \* 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\) \+ Int64\(\-70\) AS col0" at position 0 and "Int64\(\-35\) \* Int64\(15\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 48 + + - 70 AS col0, - 35 * + 15 * + + COUNT ( * ) AS col0 query I rowsort label-9808 diff --git a/data/sqlite/random/expr/slt_good_67.slt b/data/sqlite/random/expr/slt_good_67.slt index 7366cf6..f9ac632 100644 --- a/data/sqlite/random/expr/slt_good_67.slt +++ b/data/sqlite/random/expr/slt_good_67.slt @@ -387,7 +387,7 @@ SELECT COUNT ( * ) AS col0, 9 # 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\(84\) 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\(84\) 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 84 AS col2, + COUNT ( * ) AS col2 query I rowsort @@ -1950,7 +1950,7 @@ SELECT ALL - 54 * - 28 + - 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -80 -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\(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\(\*\) )?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 COUNT ( * ) AS col0, - COUNT ( * ) * 80 AS col0 query I rowsort label-361 @@ -2256,7 +2256,7 @@ SELECT DISTINCT 74 * + 2 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -91 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) 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\(\-91\) 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 - 91 AS col1, COUNT ( * ) AS col1 query I rowsort label-420 @@ -2853,7 +2853,7 @@ SELECT DISTINCT + ( - 54 ) / - COUNT ( * ) + - 10 # 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 "CASE Int64\(2\) WHEN \(\- \(\- Int64\(46\)\)\) THEN \(\- Int64\(\-13\)\) 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\(\*\) )?AS col1" at position 0 and "CASE Int64\(2\) WHEN \(\- \(\- Int64\(46\)\)\) THEN \(\- Int64\(\-13\)\) ELSE NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col1, CASE 2 WHEN - - ( 46 ) THEN - - 13 ELSE NULL END AS col1 query I rowsort label-532 @@ -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 Int32\) 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 @@ -12983,7 +12983,7 @@ SELECT ALL - 73 AS col0, + 25 # Datafusion - Datafusion expected results: # Datafusion - Expected - -88 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 "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 - 88 AS col2, COUNT ( * ) AS col2 query I rowsort @@ -16608,7 +16608,7 @@ SELECT ALL - 32 + - 32 AS col1 # Datafusion - Expected - 22 # Datafusion - Expected - 63 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \+ Int64\(17\) AS col2" at position 0 and "max\(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 "Int64\(5\) \+ Int64\(17\) AS col2" at position 0 and "max\(Int64\(62\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 5 + + + 17 AS col2, MAX ( 62 ) + COUNT ( * ) AS col2, 19 query I rowsort label-3161 @@ -18151,7 +18151,7 @@ SELECT + 4 * - + 27 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 35 -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\(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 "Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col0, + 35 col0 query II rowsort label-3457 @@ -21091,7 +21091,7 @@ SELECT ALL 27 / + 53 + - 30 - - NULLIF ( 87, - 54 * COUNT ( * ) + - 54 ) + - - 5 # 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\(\-34\) \- Int64\(68\) AS col0" at position 0 and "Int64\(0\) \- 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\) \- Int64\(68\) AS col0" at position 0 and "Int64\(0\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 34 - 68 AS col0, 0 - + COUNT ( * ) AS col0 query I rowsort label-4010 @@ -22971,7 +22971,7 @@ SELECT - 5 * - - NULLIF ( - - 14, + + ( + - 35 ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2661 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \* Int64\(35\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(16\) \- 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\(76\) \* Int64\(35\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(16\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 76 * + 35 + COUNT ( * ) AS col0, 16 - + COUNT ( * ) AS col0 query I rowsort label-4364 @@ -25705,7 +25705,7 @@ SELECT - 69 + + - 21 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 5396 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(71\) \* Int64\(76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, 71 * 76 AS col1 query I rowsort @@ -29103,7 +29103,7 @@ SELECT COALESCE ( - 79, - 49 + - + 0 * + - 62 ) - CASE COUNT ( * ) WHEN ( - NULL # 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 "Int64\(\-35\) 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\(\-35\) 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 - 35 AS col2, + ( + + COUNT ( * ) ) AS col2 query II rowsort @@ -29126,7 +29126,7 @@ SELECT COUNT ( * ) AS col0, + 53 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -27 -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\) AS col0" at position 1 have the same name\. Consider aliasing \("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\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col0, - 27 AS col0 query I rowsort @@ -29981,7 +29981,7 @@ SELECT ALL 95 col1, - 49 # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col0" at position 0 and "\(\- coalesce\(\(\- Int64\(90\)\), Int64\(\-25\) \+ Int64\(76\)\)\) \* 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 "\(\- coalesce\(\(\- Int64\(90\)\), Int64\(\-25\) \+ Int64\(76\)\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 19 AS col0, - COALESCE ( - + 90, - 25 + + 76 ) * COUNT ( * ) AS col0 query I 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 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\. 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 @@ -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 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\. 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 @@ -33873,7 +33873,7 @@ SELECT - 50 * - 52, + 33 * - + 18 AS col0 # 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 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\(18\) 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 + 18 AS col2, COUNT ( * ) AS col2 query I rowsort label-6452 @@ -35152,7 +35152,7 @@ SELECT DISTINCT + 68 * + 51 # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) \* count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(\-27\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - 27 * COUNT ( * ) AS col2, + 76 AS col2 query I rowsort label-6699 @@ -37478,7 +37478,7 @@ SELECT DISTINCT - 59, + COUNT ( ALL - 59 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col0" at position 0 and "Int64\(24\) \* 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\(17\) AS col0" at position 0 and "Int64\(24\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 17 AS col0, + 24 * + COUNT ( * ) col0 query I rowsort label-7141 @@ -37734,7 +37734,7 @@ SELECT ALL - 19 / COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) / Int64\(\-48\) \+ count\(Int64\(1\)\) AS count\(\*\) 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\(40\) / Int64\(\-48\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?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 + 40 / - 48 + COUNT ( * ) AS col1, 9 AS col1 query I rowsort label-7189 @@ -40037,7 +40037,7 @@ SELECT 22 + - - 5 * + 66 * + 3 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -92 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) AS col0" at position 0 and "Int64\(98\) \+ 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\) AS col0" at position 0 and "Int64\(98\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 92 col0, + 98 + + COUNT ( * ) AS col0 query I rowsort label-7627 @@ -41305,7 +41305,7 @@ SELECT - 36 * + + 59 # Datafusion - Datafusion expected results: # Datafusion - Expected - 150526 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-57\) \* \(\- Int64\(15\)\) \* Int64\(2\) \* Int64\(88\) \+ Int64\(24\) \+ Int64\(68\) / Int64\(3\) 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\(\-57\) \* \(\- Int64\(15\)\) \* Int64\(2\) \* Int64\(88\) \+ Int64\(24\) \+ Int64\(68\) / Int64\(3\) 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 ( - 57 ) * - + 15 * ( + 2 ) * + + 88 + 24 + + 68 / + 3 col0, COUNT ( * ) AS col0 query I rowsort label-7868 @@ -43833,7 +43833,7 @@ SELECT 32 * 76 * + NULLIF ( CASE - + ( - COUNT ( * ) ) WHEN + 76 * - ( + 76 ) + # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \+ sum\(\(\- Int64\(27\)\)\) AS col0" at position 0 and "Int64\(93\) \* 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\(38\) \+ sum\(\(\- Int64\(27\)\)\) AS col0" at position 0 and "Int64\(93\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 38 + SUM ( ALL - ( + + 27 ) ) AS col0, + 93 * + COUNT ( * ) AS col0 query II rowsort label-8352 @@ -45900,7 +45900,7 @@ SELECT ALL - - 96 * + - 54 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3455 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-80\)\) \* Int64\(\-44\) \+ Int64\(65\) 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\(\-80\)\) \* Int64\(\-44\) \+ Int64\(65\) 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 - - 80 * + - 44 + + 65 AS col0, COUNT ( * ) AS col0 query I rowsort @@ -49000,7 +49000,7 @@ SELECT + - 1, - 48 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 82 -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\(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\(\*\) )?AS col2" at position 0 and "Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col2, 82 AS col2 # Datafusion - Types were automatically converted from: @@ -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 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\. SELECT CAST ( NULL AS INTEGER ) + + - NULLIF ( 89, CAST ( NULL AS INTEGER ) ) + - - 77 AS col0, + COUNT ( * ) col0 query I rowsort label-9537 @@ -51175,7 +51175,7 @@ SELECT ALL + 74 - + 82 AS col0 # 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 "Int64\(\-45\) 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\(\-45\) 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 - 45 AS col0, + COUNT ( * ) AS col0 query I rowsort label-9753 diff --git a/data/sqlite/random/expr/slt_good_68.slt b/data/sqlite/random/expr/slt_good_68.slt index 73db0b8..6dbfeee 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 Int32\) 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 @@ -1116,7 +1116,7 @@ SELECT ALL + COUNT ( * ) AS col1, 73 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - 40 -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\(\-3\) \+ Int64\(74\) AS col1" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-3\) \+ Int64\(74\) AS col1" at position 0 and "Int64\(40\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * - COUNT ( * ) * + - 3 + + 74 AS col1, 40 * + COUNT ( * ) AS col1 query II rowsort label-207 @@ -3348,7 +3348,7 @@ SELECT DISTINCT - 14 + 54 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col1" at position 0 and "Int64\(\-15\) \* \(\- 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\(6\) AS col1" at position 0 and "Int64\(\-15\) \* \(\- 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 DISTINCT 6 AS col1, - 15 * - + COUNT ( * ) * + COUNT ( * ) AS col1 query II rowsort label-631 @@ -8642,7 +8642,7 @@ SELECT ALL + NULLIF ( 8, - 52 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(3\) \+ 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\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(3\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 95 * + COUNT ( * ) AS col0, 3 + + COUNT ( * ) AS col0 query I rowsort @@ -9957,7 +9957,7 @@ SELECT - + COUNT ( + - 81 ) * + 33 * + - 25 + 30 # Datafusion - Datafusion expected results: # Datafusion - Expected - -26 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) 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\(\-26\) 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 - 26 AS col0, COUNT ( * ) AS col0 query I rowsort @@ -12340,7 +12340,7 @@ SELECT ( 95 ) + - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) / count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(18\) / count\(Int64\(1\)\) (AS count\(\*\) )?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 18 / + COUNT ( * ) AS col2, + 15 col2 query I rowsort @@ -17380,7 +17380,7 @@ SELECT DISTINCT 56 + + 45 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) 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\(76\) 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 76 AS col1, + COUNT ( * ) AS col1 query I rowsort label-3304 @@ -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 Int32\) / 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 @@ -20587,7 +20587,7 @@ SELECT ALL - 40 + 92 AS col2, - 24 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - -53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) AS col2" at position 0 and "\(\- max\(Int64\(49\)\)\) / Int64\(33\) \+ Int64\(\-52\) \* 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\(\-22\) AS col2" at position 0 and "\(\- max\(Int64\(49\)\)\) / Int64\(33\) \+ Int64\(\-52\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 22 AS col2, - MAX ( + 49 ) / + 33 + - 52 * COUNT ( * ) AS col2 query I rowsort @@ -24880,7 +24880,7 @@ SELECT COUNT ( * ) / - + 57 - + 66 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -72 -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\(\-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\(1\)\) (AS count\(\*\) )?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 ( * ) col0, - 72 AS col0 query I rowsort label-4735 @@ -27108,7 +27108,7 @@ SELECT + 1 + + - 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(87\)\) AS col2" at position 0 and "Int64\(52\) \+ 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\(Int64\(87\)\) AS col2" at position 0 and "Int64\(52\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT SUM ( 87 ) AS col2, + 52 + + COUNT ( * ) AS col2 query I rowsort @@ -28384,7 +28384,7 @@ NULL # 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 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col2, 2 AS col2 query III rowsort label-5400 @@ -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 Int32\)\) \* CAST\(NULL AS Int32\) \+ 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 @@ -33849,7 +33849,7 @@ SELECT ALL + + COUNT ( * ) * + 50 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -414 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(9\) \* Int64\(\-46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col1, 9 * - 46 AS col1 query I rowsort label-6440 @@ -34492,7 +34492,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - -45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \+ Int64\(\-49\) AS col2" at position 0 and "Int64\(7\) \+ Int64\(\-90\) \+ Int64\(51\) \* Int64\(2\) \+ nullif\(\(\- Int64\(65\)\), 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 "Int64\(99\) \+ Int64\(\-49\) AS col2" at position 0 and "Int64\(7\) \+ Int64\(\-90\) \+ Int64\(51\) \* Int64\(2\) \+ nullif\(\(\- Int64\(65\)\), Int64\(36\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 99 + - 49 AS col2, 7 + - 90 + 51 * + 2 + + NULLIF ( - + 65, + 36 ) + + COUNT ( * ) col2 query I rowsort label-6561 @@ -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 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\. 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 @@ -46988,7 +46988,7 @@ SELECT ALL + ( + + 35 ) 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 col1" at position 0 and "count\(DISTINCT Int64\(14\)\) \+ 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "count\(DISTINCT Int64\(14\)\) \+ Int64\(73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col1, COUNT ( DISTINCT + + 14 ) + 73 AS col1 query I rowsort @@ -47399,7 +47399,7 @@ SELECT + COUNT ( * ) * + 96 - COALESCE ( + 90, + + 59 * + - 9, + 64 ) # 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\(60\) / \(\- CASE Int64\(\-72\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(46\) \+ count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(\-58\) \+ Int64\(97\) 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\(\-5\) AS col1" at position 0 and "Int64\(60\) / \(\- CASE Int64\(\-72\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(46\) \+ count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(\-58\) \+ Int64\(97\) THEN NULL END\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 5 AS col1, 60 / + - CASE + - 72 WHEN COUNT ( * ) THEN + + 46 + COUNT ( * ) WHEN - 58 + + 97 THEN NULL END * + COUNT ( * ) AS col1 query I rowsort label-9011 @@ -47463,7 +47463,7 @@ SELECT ALL + 97 / + 8 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 772 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \+ \(\- \(\- sum\(DISTINCT Int64\(45\)\)\)\) \* Int64\(16\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-37\) 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\(88\) \+ \(\- \(\- sum\(DISTINCT Int64\(45\)\)\)\) \* Int64\(16\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-37\) 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 88 + - - SUM ( DISTINCT + 45 ) * + 16 + COUNT ( * ) + - 37 AS col1, + COUNT ( * ) AS col1 query II rowsort label-9023 @@ -50987,7 +50987,7 @@ SELECT + 39 + 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 120 -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 "nullif\(Int64\(\-40\), Int64\(\-13\) \+ \(\- Int64\(\-35\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) / \(\- avg\(DISTINCT Int64\(94\)\)\)\) \* 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "nullif\(Int64\(\-40\), Int64\(\-13\) \+ \(\- Int64\(\-35\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) / \(\- avg\(DISTINCT Int64\(94\)\)\)\) \* Int64\(\-3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, NULLIF ( - 40, - 13 + - + ( - 35 ) + - COUNT ( * ) / - AVG ( DISTINCT 94 ) ) * - 3 col1 query I rowsort label-9694 @@ -52036,7 +52036,7 @@ SELECT ALL 2 - + - 51 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 113 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \- Int64\(43\) \+ Int64\(1\) \* nullif\(Int64\(95\), \(\- Int64\(\-48\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(48\) \+ \(\- 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\(61\) \- Int64\(43\) \+ Int64\(1\) \* nullif\(Int64\(95\), \(\- Int64\(\-48\)\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(48\) \+ \(\- Int64\(14\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 61 - 43 + + 1 * NULLIF ( + 95, - - 48 ) * + COUNT ( * ) AS col0, NULLIF ( + COUNT ( * ), 48 + - + 14 ) AS col0 query I rowsort label-9893 diff --git a/data/sqlite/random/expr/slt_good_69.slt b/data/sqlite/random/expr/slt_good_69.slt index cb35dbf..041b490 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 Int32\) 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 @@ -1734,7 +1734,7 @@ SELECT ALL - COUNT ( * ) + + 83 - - 85 * 68 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -88 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 "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 + - 88 col2, + COUNT ( * ) 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 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\. SELECT ALL - 98 - + - 1 AS col1, CAST ( 29 AS INTEGER ) - COUNT ( * ) - + + COUNT ( * ) col1 query I rowsort @@ -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 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\. SELECT - 40 - + CAST ( 20 AS INTEGER ) * + COUNT ( * ) AS col0, 40 AS col0 query I rowsort label-1629 @@ -10733,7 +10733,7 @@ SELECT ( - + COALESCE ( COUNT ( * ), - + CASE - - 55 WHEN - COUNT ( * ) THEN NUL # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - 1 -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\(\*\) AS col0" at position 1 have the 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\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 20 AS col0, COUNT ( * ) col0 query I rowsort label-2040 @@ -10760,7 +10760,7 @@ SELECT ( + - 16 ), - 37 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 "\(\- max\(\(\- coalesce\(\(\- Int64\(26\)\), Int64\(\-99\)\)\)\)\) / 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 "\(\- max\(\(\- coalesce\(\(\- Int64\(26\)\), Int64\(\-99\)\)\)\)\) / 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 ALL - MAX ( ( - + COALESCE ( - + 26, - 99 ) ) ) / 17 AS col0, + COUNT ( * ) AS col0 query I rowsort label-2045 @@ -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 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\. SELECT ALL - - 62 * 67 + + CAST ( - 89 AS INTEGER ) - - - 51 AS col2, COUNT ( * ) AS col2 query I rowsort @@ -13551,7 +13551,7 @@ SELECT ALL + COUNT ( * ) / + COUNT ( * ) + + 37 AS col1 # Datafusion - Expected - 1 # Datafusion - Expected - 45 # Datafusion - Expected - 39 -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\(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\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COUNT ( * ) AS col0, + 45 AS col0, 39 query II rowsort label-2575 @@ -14846,7 +14846,7 @@ SELECT DISTINCT - 37 + 29 - - - 58 + 33 / 9 + + + 2 - COUNT ( * ) * - 48 AS col0 # 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\(79\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(38\) \* \(\- CASE Int64\(85\) WHEN Int64\(\-94\) THEN \(\- count\(DISTINCT Int64\(21\)\)\) 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\(79\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(38\) \* \(\- CASE Int64\(85\) WHEN Int64\(\-94\) THEN \(\- count\(DISTINCT Int64\(21\)\)\) ELSE NULL END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 79 + COUNT ( * ) col2, + 38 * - + CASE 85 WHEN - 94 THEN - COUNT ( DISTINCT 21 ) ELSE NULL END AS col2 query I rowsort @@ -21941,7 +21941,7 @@ SELECT ALL 49 * - ( + + COUNT ( * ) ) * - 0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-74\)\) \+ Int64\(21\) \* count\(Int64\(1\)\) AS count\(\*\) 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\(\-74\)\) \+ Int64\(21\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - 74 + + 21 * + COUNT ( * ) AS col0, + 11 AS col0 query I rowsort label-4180 @@ -22799,7 +22799,7 @@ SELECT COUNT ( DISTINCT + 25 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 22 -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\(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\(\*\) )?AS col1" at position 0 and "Int64\(22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col1, + 22 AS col1 query I rowsort label-4342 @@ -23158,7 +23158,7 @@ SELECT ALL - 90 + + 15 # 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 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\(54\) 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 + 54 col0, COUNT ( * ) col0 query I rowsort label-4410 @@ -25344,7 +25344,7 @@ SELECT COUNT ( * ) * - 29 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 546 -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 "\(\- nullif\(Int64\(21\), Int64\(\-61\) \+ Int64\(\-49\)\)\) \* 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 "\(\- nullif\(Int64\(21\), Int64\(\-61\) \+ Int64\(\-49\)\)\) \* Int64\(\-26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, - NULLIF ( + 21, + + ( - 61 ) + - 49 ) * - 26 AS col0 query II rowsort label-4827 @@ -26366,7 +26366,7 @@ SELECT DISTINCT 84 * - 58 / COUNT ( * ) + + 74 * 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - 1 -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\(\*\) AS col1" at position 1 have the 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\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 20 AS col1, + COUNT ( * ) AS col1 query I rowsort @@ -26927,7 +26927,7 @@ SELECT - 77 * - 40 # 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 "count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(\-77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( + COUNT ( * ) ) AS col2, - 77 AS col2 query I rowsort @@ -27083,7 +27083,7 @@ SELECT ALL - COALESCE ( - 21, + 33 * - - 28 * 56, - - 89 / + 23 / - 1 / ( 1 ) * # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \+ count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(16\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 16 + + ( COUNT ( * ) ) AS col2, 59 AS col2 query I rowsort @@ -29161,7 +29161,7 @@ SELECT ALL - 23 + NULLIF ( SUM ( 32 ), + 12 * - - 26 * - + 20 + - 54 ) + - - 48 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \- count\(Int64\(1\)\) AS count\(\*\) 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\(79\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(\-68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 79 - COUNT ( * ) AS col0, - 68 AS col0 query I rowsort label-5555 @@ -37653,7 +37653,7 @@ SELECT 42 + - + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 8342 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \* Int64\(97\) 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\(86\) \* Int64\(97\) 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 86 * 97 AS col0, + COUNT ( * ) col0 query I rowsort label-7174 @@ -38296,7 +38296,7 @@ SELECT ALL - 69 + + COUNT ( * ) - - - COUNT ( * ) AS col1, 23, + COUNT ( * ) AS # Datafusion - Datafusion expected results: # Datafusion - Expected - 5280 # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \* Int64\(32\) \* Int64\(55\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-5\) \+ \(\- coalesce\(Int64\(69\), Int64\(87\) \* nullif\(Int64\(68\), Int64\(\-11\) \* 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\(3\) \* Int64\(32\) \* Int64\(55\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(\-5\) \+ \(\- coalesce\(Int64\(69\), Int64\(87\) \* nullif\(Int64\(68\), Int64\(\-11\) \* Int64\(68\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 3 * + 32 * + 55 * + + COUNT ( * ) AS col2, - 5 + ( + - COALESCE ( 69, + 87 * + NULLIF ( 68, - 11 * + 68 ) ) ) col2 query I rowsort @@ -38371,7 +38371,7 @@ SELECT DISTINCT + - 84 * - + 45 + + 58 + - 69 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) 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\(\-61\) 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 - 61 AS col1, COUNT ( * ) AS col1 query I rowsort label-7309 @@ -43051,7 +43051,7 @@ SELECT ALL COUNT ( * ) * - 33 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 35 -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\(\-41\)\) \+ Int64\(80\) \+ 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "\(\- Int64\(\-41\)\) \+ Int64\(80\) \+ Int64\(\-86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) col1, - ( - 41 ) + 80 + + - 86 AS col1 query I rowsort @@ -43471,7 +43471,7 @@ SELECT - 79 - + 61 + CAST ( - 62 AS INTEGER ) * - 66 * + 30 * + 73 + - - 80 AS c # 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 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\. 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 @@ -45347,7 +45347,7 @@ SELECT + 27 / - - 49 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, 0 col2 query II rowsort label-8636 @@ -46063,7 +46063,7 @@ SELECT ALL 90 - - 36 AS col1, - 25 / - COUNT ( * ) # Datafusion - Expected - -27 # Datafusion - Expected - 14 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 and "nullif\(Int64\(\-9\), Int64\(\-16\) \* \(\- Int64\(52\)\)\) 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\(14\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 and "nullif\(Int64\(\-9\), Int64\(\-16\) \* \(\- Int64\(52\)\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - NULLIF ( 27, - - 51 ), + 14 * COUNT ( * ) AS col0, + NULLIF ( - 9, - 16 * - + 52 ) AS col0 query I rowsort @@ -46306,7 +46306,7 @@ SELECT + CASE + 19 WHEN + COUNT ( * ) THEN NULL ELSE - COUNT ( * ) END # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 78 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col0, 78 AS col0 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_7.slt b/data/sqlite/random/expr/slt_good_7.slt index d66d788..7b73c31 100644 --- a/data/sqlite/random/expr/slt_good_7.slt +++ b/data/sqlite/random/expr/slt_good_7.slt @@ -6265,7 +6265,7 @@ SELECT - 75, + 47 AS col1 # Datafusion - Expected - 81 # Datafusion - Expected - 96 # 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\(\-29\) WHEN \(\- nullif\(count\(Int64\(1\)\) AS count\(\*\), coalesce\(Int64\(\-88\), Int64\(\-61\)\) \+ Int64\(\-57\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) THEN Int64\(69\) \* \(\- Int64\(\-20\)\) ELSE NULL END \* 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 "Int64\(81\) AS col2" at position 0 and "CASE Int64\(\-29\) WHEN \(\- nullif\(count\(Int64\(1\)\) AS count\(\*\), coalesce\(Int64\(\-88\), Int64\(\-61\)\) \+ Int64\(\-57\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) THEN Int64\(69\) \* \(\- Int64\(\-20\)\) ELSE NULL END \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 81 AS col2, 96, + CASE - 29 WHEN - + NULLIF ( + COUNT ( * ), + COALESCE ( + - 88, + - 61 ) + + - 57 + - COUNT ( * ) ) THEN + 69 * - ( + - 20 ) ELSE NULL END * + COUNT ( * ) AS col2 query I rowsort label-1188 @@ -11564,7 +11564,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 col1" at position 0 and "max\(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 "max\(Int64\(92\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, MAX ( + + 92 ) AS col1 query II rowsort @@ -12952,7 +12952,7 @@ SELECT DISTINCT + 58 AS col2, 62 + + - ( MIN ( + 45 ) ) * 65 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 "count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, + 1 AS col1 query I rowsort label-2462 @@ -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 Int32\) / CAST\(Int64\(97\) AS Int32\) \* 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 @@ -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 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\. SELECT DISTINCT + COUNT ( * ) + CAST ( - ( COALESCE ( + - 58, - 78 ) ) AS INTEGER ) AS col1, COUNT ( * ) AS col1 # Datafusion - Types were automatically converted from: @@ -15515,7 +15515,7 @@ SELECT + 83 * + - NULLIF ( - 4, 96 ) * + - 53 - + 68 # 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 col1" at position 0 and "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\(\*\) )?AS col1" at position 0 and "Int64\(\-40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, - 40 AS col1 query II rowsort @@ -16140,7 +16140,7 @@ SELECT + - 9 + + 78 # 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\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COUNT ( * ) AS col2, 18 AS col2 query I rowsort label-3065 @@ -16319,7 +16319,7 @@ SELECT DISTINCT - + 37 * - ( - 14 ) + - 82 - + CASE - COUNT ( * ) WHEN + 30 + 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 760033 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col1" at position 0 and "Int64\(87\) \* Int64\(91\) \* \(\- Int64\(\-96\)\) \+ 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\(3\) AS col1" at position 0 and "Int64\(87\) \* Int64\(91\) \* \(\- Int64\(\-96\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 3 col1, + 87 * 91 * - - 96 + COUNT ( * ) AS col1 query I rowsort @@ -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 Int32\) \+ Int64\(74\) \+ Int64\(82\) \* CAST\(NULL AS Int32\) 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 @@ -19083,7 +19083,7 @@ SELECT COUNT ( DISTINCT + 17 ) * 89 * + 13 + - - 39 # 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 "count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(\-87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, - 87 col2 query II rowsort label-3626 @@ -19977,7 +19977,7 @@ SELECT - - 43 / - - 12 # Datafusion - Expected - -1 # Datafusion - Expected - 773 # Datafusion - Expected - -82 -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 "Int64\(35\) \+ Int64\(\-41\) \* 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(35\) \+ Int64\(\-41\) \* Int64\(\-18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - COUNT ( * ) * + COUNT ( * ) AS col0, 35 + - 41 * + - 18 AS col0, - ( 82 ) query II rowsort label-3796 @@ -24717,7 +24717,7 @@ SELECT ALL 2 * COUNT ( * ) + + + 53 * + 13 AS col1, 41 + - 36 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 81 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 + COUNT ( * ) AS col0, 81 AS col0 # Datafusion - Datafusion expected results: @@ -25042,7 +25042,7 @@ NULL # 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 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\(\-51\) 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 - 51 AS col1, COUNT ( * ) AS col1 query I rowsort @@ -26992,7 +26992,7 @@ SELECT MIN ( - 26 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 50 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, + 50 col0 query I rowsort label-5131 @@ -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 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\. SELECT - CAST ( NULL AS INTEGER ) + - - 21 col0, ( - 61 ) + COUNT ( * ) AS col0 query I rowsort label-5165 @@ -30221,7 +30221,7 @@ SELECT 5 / COUNT ( - + 76 ) AS col0 # Datafusion - Expected - -132374 # Datafusion - Expected - 53 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \* Int64\(97\) \* Int64\(\-65\) \+ Int64\(31\) 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\(21\) \* Int64\(97\) \* Int64\(\-65\) \+ Int64\(31\) 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 21 * 97 * - 65 + + + 31 col0, + 53 AS col1, COUNT ( * ) col0 query I rowsort label-5745 @@ -31996,7 +31996,7 @@ SELECT 93 + - 31 * + - 82 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col2" at position 0 and "Int64\(77\) \* 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\(77\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 84 AS col2, 77 * + COUNT ( * ) AS col2 query I rowsort label-6079 @@ -33983,7 +33983,7 @@ SELECT ALL - 10, + 3 + + ( + - 51 ) + + 41 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - -73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(95\), \(\- Int64\(\-70\)\) \* Int64\(20\)\)\) / Int64\(\-16\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(1\) \- 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\(95\), \(\- Int64\(\-70\)\) \* Int64\(20\)\)\) / Int64\(\-16\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(1\) \- Int64\(74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - NULLIF ( + 95, - - 70 * + 20 ) / - 16 * + + COUNT ( * ) AS col2, 1 - 74 AS col2 query II rowsort @@ -34365,7 +34365,7 @@ SELECT COUNT ( * ) * - COALESCE ( - NULLIF ( - + 76, + + 22 / + AVG ( + + 3 ) ), # Datafusion - Datafusion expected results: # Datafusion - Expected - 960 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) \* Int64\(24\) 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\(40\) \* Int64\(24\) 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 40 * + 24 AS col2, 66 * + COUNT ( * ) AS col2 query I rowsort @@ -37260,7 +37260,7 @@ SELECT - ( 73 ) * COUNT ( DISTINCT + 48 ) + 62 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) \+ Int64\(64\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(19\) \- 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\(64\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(19\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + ( + - 5 ) + + + 64 * + COUNT ( * ) AS col2, 19 - COUNT ( * ) AS col2 query I rowsort label-7075 @@ -42848,7 +42848,7 @@ SELECT + 27 - 98 * 52 - - 56 + + ( 19 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -66 # Datafusion - Expected - 1 -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\(\*\) AS col1" at position 1 have the 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\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( - 66 ) AS col1, + COUNT ( * ) AS col1 query I rowsort label-8137 @@ -44194,7 +44194,7 @@ SELECT - CAST ( + - 13 AS INTEGER ) + - - 97 col1 # 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 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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 + COUNT ( * ) col2, + 25 AS col2 query I rowsort label-8397 @@ -44319,7 +44319,7 @@ SELECT DISTINCT + COUNT ( * ) * + 41 * - - 66 + - COUNT ( * ) * + COUNT ( ALL + # 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 "count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(60\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, 60 AS col2 query I rowsort label-8420 @@ -47906,7 +47906,7 @@ SELECT 8 AS col2, 95 # Datafusion - Expected - 84 # Datafusion - Expected - 1 # Datafusion - Expected - -98 -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 "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\(\*\) )?AS col1" at position 1 and "Int64\(\-98\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 84, + COUNT ( * ) AS col1, - 98 AS col1 query I rowsort label-9102 diff --git a/data/sqlite/random/expr/slt_good_70.slt b/data/sqlite/random/expr/slt_good_70.slt index 887e866..b1c4c63 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 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\. SELECT ALL CAST ( NULL AS INTEGER ) * 52 / - + ( 13 ) AS col1, COUNT ( * ) AS col1 query I rowsort @@ -1120,7 +1120,7 @@ SELECT + 0 / + 26 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - 5202 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col2" at position 0 and "Int64\(\-72\) \* \(\- Int64\(22\)\) \+ Int64\(67\) \* Int64\(54\) \* 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\(96\) AS col2" at position 0 and "Int64\(\-72\) \* \(\- Int64\(22\)\) \+ Int64\(67\) \* Int64\(54\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 96 AS col2, - 72 * - + 22 + + 67 * + 54 * COUNT ( * ) AS col2 query I rowsort label-207 @@ -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 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\. 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 @@ -7441,7 +7441,7 @@ SELECT ALL 71 + - 40 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) 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\) 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 AS col2, COUNT ( * ) AS col2 query I rowsort @@ -8112,7 +8112,7 @@ SELECT ALL - 51 AS col2, - 20 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - -93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT Int64\(74\)\) \+ Int64\(18\) / Int64\(\-84\) \* count\(Int64\(1\)\) AS count\(\*\) 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 "sum\(DISTINCT Int64\(74\)\) \+ Int64\(18\) / Int64\(\-84\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(\-93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT SUM ( DISTINCT + 74 ) + + 18 / - 84 * COUNT ( * ) AS col1, - 93 AS col1 query II rowsort @@ -12384,7 +12384,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -41 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) 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\(\-41\) 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 ( - 41 ) AS col2, + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: @@ -13127,7 +13127,7 @@ SELECT DISTINCT - 36, 45 * + COUNT ( * ) 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(94\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "min\(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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(94\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "min\(Int64\(64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + COUNT ( * ) / 94 + + COUNT ( * ) AS col0, MIN ( ALL + 64 ) AS col0 query I rowsort label-2489 @@ -14236,7 +14236,7 @@ SELECT - 16 * + 7 * + 42 * + + 65 # Datafusion - Datafusion expected results: # Datafusion - Expected - -30 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) AS col1" at position 0 and "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\(\-30\) AS col1" at position 0 and "Int64\(18\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 30 AS col1, + 18 * + COUNT ( * ) AS col1 query I rowsort label-2700 @@ -17559,7 +17559,7 @@ SELECT 12 AS col2, - 4 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 "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 "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 DISTINCT COUNT ( * ) AS col2, - COUNT ( * ) AS col2 query I rowsort label-3336 @@ -18213,7 +18213,7 @@ SELECT DISTINCT + + 36 col0 # 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 "Int64\(\-35\) \* \(\- count\(Int64\(73\)\)\) 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\(\-35\) \* \(\- count\(Int64\(73\)\)\) 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 + - 35 * + - COUNT ( + 73 ) AS col1, COUNT ( * ) AS col1 query I rowsort @@ -19590,7 +19590,7 @@ SELECT DISTINCT + 19 + - - 11 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -32 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-32\) 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\(\-32\) 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 - 32 AS col2, COUNT ( * ) col2 query I rowsort @@ -22855,7 +22855,7 @@ SELECT 89 * + 36 * - 91 # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - -42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- \(\- nullif\(Int64\(66\), Int64\(65\)\)\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) 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 "\(\- \(\- \(\- nullif\(Int64\(66\), Int64\(65\)\)\)\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(\-42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + ( - - NULLIF ( + 66, + 65 ) ) + COUNT ( * ) AS col0, - 42 AS col0 query I rowsort label-4343 @@ -23123,7 +23123,7 @@ SELECT + SUM ( ALL + - CAST ( + - 49 AS INTEGER ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -93 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-93\) AS col2" at position 0 and "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\(\-93\) AS col2" at position 0 and "Int64\(10\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 93 AS col2, 10 + COUNT ( * ) col2 query I rowsort label-4393 @@ -26211,7 +26211,7 @@ SELECT 87 * - + 47 AS col1, - 93 # Datafusion - Datafusion expected results: # Datafusion - Expected - -21 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \+ \(\- 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 "Int64\(32\) \+ \(\- 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 32 + - + 53 AS col0, + COUNT ( * ) col0 query I rowsort @@ -27263,7 +27263,7 @@ SELECT ALL COUNT ( * ) + - + 88 AS col0 # 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 "max\(Int64\(50\)\) \+ count\(Int64\(1\)\) AS count\(\*\) 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 "max\(Int64\(50\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + MAX ( ALL + 50 ) + + COUNT ( * ) col2, + 64 col2 query I rowsort label-5181 @@ -30429,7 +30429,7 @@ SELECT ALL + 74 col2, 92 * 52 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -402611 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \* Int64\(17\) \- Int64\(51\) \* Int64\(99\) \* Int64\(80\) AS col1" at position 0 and "Int64\(\-5\) \* 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\(77\) \* Int64\(17\) \- Int64\(51\) \* Int64\(99\) \* Int64\(80\) AS col1" at position 0 and "Int64\(\-5\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 77 * 17 - + 51 * + 99 * + ( 80 ) AS col1, - 5 * + COUNT ( * ) AS col1 query I rowsort @@ -35477,7 +35477,7 @@ SELECT DISTINCT - 97 * - CAST ( - 99 AS INTEGER ) * + 75 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-86\)\) / coalesce\(Int64\(39\), \(\- Int64\(\-40\)\) \+ Int64\(47\)\) 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 "\(\- Int64\(\-86\)\) / coalesce\(Int64\(39\), \(\- Int64\(\-40\)\) \+ Int64\(47\)\) 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 - - 86 / + COALESCE ( 39, - - 40 + 47 ) AS col2, COUNT ( * ) + + COUNT ( * ) AS col2 query I rowsort label-6752 @@ -37488,7 +37488,7 @@ SELECT - 36 + - - 23 * + + 42 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-6\) \- Int64\(\-27\) 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\(\-6\) \- Int64\(\-27\) 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 - 6 - - 27 AS col2, COUNT ( * ) col2 query II rowsort label-7133 @@ -37696,7 +37696,7 @@ SELECT ALL 6 * - + 48 + 96 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 151 -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\(57\) \+ Int64\(94\) \* 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 "Int64\(57\) \+ Int64\(94\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col0, 57 + + 94 * COUNT ( * ) AS col0 query II rowsort label-7173 @@ -38766,7 +38766,7 @@ SELECT ALL + ( + 0 ) * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 217 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \- Int64\(\-88\) \+ nullif\(Int64\(32\), Int64\(\-38\) \* Int64\(\-4\)\) 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\(97\) \- Int64\(\-88\) \+ nullif\(Int64\(32\), Int64\(\-38\) \* Int64\(\-4\)\) 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 97 - + - 88 + + NULLIF ( + 32, + ( - 38 ) * - 4 ) AS col0, + COUNT ( * ) AS col0 query I rowsort label-7377 @@ -40959,7 +40959,7 @@ SELECT + NULLIF ( + + 94, 89 ) * 7 + - 6 # Datafusion - Expected - 1 # Datafusion - Expected - -72 # Datafusion - Expected - 1068 -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\(34\) \- \(\- Int64\(56\)\) \* Int64\(19\) \+ Int64\(15\) \+ Int64\(14\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(88\) \+ Int64\(29\) 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 0 and "Int64\(34\) \- \(\- Int64\(56\)\) \* Int64\(19\) \+ Int64\(15\) \+ Int64\(14\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(88\) \+ Int64\(29\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, ( - 72 ), 34 - - + 56 * + 19 + + 15 + + 14 + - COUNT ( * ) * 88 + + + 29 AS col0 query I rowsort @@ -45185,7 +45185,7 @@ SELECT - 70 * NULLIF ( - 14, + 5 ) + - COALESCE ( + - 74, COUNT ( * ) ) + - 44 - # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - -140 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(20\) \+ Int64\(\-3\) \+ Int64\(\-88\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-2\) \* 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\(20\) \+ Int64\(\-3\) \+ Int64\(\-88\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(\-2\) \* Int64\(70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) + 20 + - 3 + - 88 + COUNT ( * ) AS col1, - 2 * 70 col1 query I rowsort label-8603 @@ -45506,7 +45506,7 @@ SELECT - + 21 * 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \+ Int64\(59\) 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\(10\) \+ Int64\(59\) 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 + + 10 + + + 59 AS col2, COUNT ( * ) AS col2 query I rowsort @@ -45736,7 +45736,7 @@ SELECT ALL - 28 * - 51 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) / Int64\(\-62\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(94\) \- 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\(48\) / Int64\(\-62\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(94\) \- Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 48 / + - 62 * + COUNT ( * ) AS col2, 94 - + 75 AS col2 query I rowsort label-8709 @@ -48008,7 +48008,7 @@ SELECT ALL 78 / ( - 98 ) 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 "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 "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 + COUNT ( * ) col2, COUNT ( * ) AS col2 query I rowsort label-9142 @@ -49142,7 +49142,7 @@ SELECT ALL 5 + + - 60 * + COUNT ( * ) / + 69 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \* 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\(67\) \* 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 67 * COUNT ( * ) col0, 0 AS col0 query I rowsort label-9357 @@ -50398,7 +50398,7 @@ SELECT 39 * - CAST ( 96 AS INTEGER ) + - - ( 20 ) * - 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 522 -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\(27\) \* Int64\(20\) \+ 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 "Int64\(27\) \* Int64\(20\) \+ Int64\(\-18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, ( 27 ) * 20 + + - 18 AS col2 query I rowsort label-9603 diff --git a/data/sqlite/random/expr/slt_good_71.slt b/data/sqlite/random/expr/slt_good_71.slt index d556bec..158a610 100644 --- a/data/sqlite/random/expr/slt_good_71.slt +++ b/data/sqlite/random/expr/slt_good_71.slt @@ -3317,7 +3317,7 @@ SELECT DISTINCT 85 * - 54 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - 1 -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\(\*\) AS col1" at position 1 have the 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\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 66 AS col1, COUNT ( * ) AS col1 query I rowsort label-624 @@ -3849,7 +3849,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- Int64\(\-94\)\)\) AS col2" at position 0 and "nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(6\) \- avg\(coalesce\(Int64\(\-58\), Int64\(\-35\), Int64\(68\) \* Int64\(\-63\)\)\) \* Int64\(66\) / 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 "max\(\(\- Int64\(\-94\)\)\) AS col2" at position 0 and "nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(6\) \- avg\(coalesce\(Int64\(\-58\), Int64\(\-35\), Int64\(68\) \* Int64\(\-63\)\)\) \* Int64\(66\) / Int64\(41\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + MAX ( ALL - - 94 ) col2, NULLIF ( + COUNT ( * ), 6 - + AVG ( + COALESCE ( - 58, + - 35, 68 * - 63 ) ) * 66 / 41 ) * COUNT ( * ) col2 query I rowsort @@ -8191,7 +8191,7 @@ SELECT ALL COUNT ( * ) + - 63 + - 82 * + MAX ( 92 ) + + 11 AS col0 # 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 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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 COUNT ( * ) AS col2, + 95 col2 query I rowsort label-1556 @@ -10923,7 +10923,7 @@ SELECT DISTINCT + 99 * 78 * 10 + - 43 + + 44 * + - COUNT ( + 59 ) * - ( - - 99 ) # 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 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\(\*\)\) 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 ( * ) col2, + COUNT ( * ) col2 query I rowsort label-2079 @@ -13953,7 +13953,7 @@ SELECT - 91 + 48 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2990 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(46\)\) \* 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 "\(\- Int64\(46\)\) \* 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 DISTINCT - + 46 * - 65 col2, COUNT ( * ) AS col2 query I rowsort label-2659 @@ -17083,7 +17083,7 @@ SELECT DISTINCT + - 18 AS col0, + 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 86 -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\(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\(\*\) )?AS col2" at position 0 and "Int64\(86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col2, + 86 col2 query I rowsort label-3257 @@ -19921,7 +19921,7 @@ SELECT + 46 * - 26 # Datafusion - Datafusion expected results: # Datafusion - Expected - -944 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \* Int64\(\-63\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "coalesce\(\(\- Int64\(\-45\)\), 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\(15\) \* Int64\(\-63\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "coalesce\(\(\- Int64\(\-45\)\), Int64\(\-83\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 15 * - 63 + + COUNT ( * ) col1, + COALESCE ( - - 45, + ( - 83 ) ) col1 query I rowsort label-3800 @@ -22293,7 +22293,7 @@ SELECT - ( + 11 ) * 88 + 95 # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - -8 -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 "min\(Int64\(60\)\) \- 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\(\-61\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "min\(Int64\(60\)\) \- Int64\(68\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 61 + + + COUNT ( * ) AS col1, MIN ( 60 ) - 68 AS col1 query I rowsort @@ -24699,7 +24699,7 @@ SELECT 78 + ( - 82 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - 2241 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col0" at position 0 and "Int64\(64\) \* Int64\(35\) \+ 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\(75\) AS col0" at position 0 and "Int64\(64\) \* Int64\(35\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 75 AS col0, 64 * + 35 + + COUNT ( * ) AS col0 query I rowsort @@ -26198,7 +26198,7 @@ NULL # 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\) 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\(0\) 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 0 AS col1, + COUNT ( * ) AS col1 query I rowsort label-5005 @@ -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 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\. SELECT DISTINCT COUNT ( * ) - + CAST ( + - ( + 23 ) AS INTEGER ) * - + 25 * + 95 + + NULLIF ( + 64, 12 ) - + ( + - ( - 16 ) ) - + 83 / ( COUNT ( * ) ) AS col0, 96 * COUNT ( * ) AS col0 query I rowsort @@ -26431,7 +26431,7 @@ SELECT ALL + COUNT ( * ) * - + COUNT ( * ) * - 11 * - + 36 / + 3 + + 55 AS col1, # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -33957 -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\(63\) \* \(\- Int64\(7\)\) \* \(\- nullif\(Int64\(\-77\), 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\(\*\) )?AS col2" at position 0 and "Int64\(63\) \* \(\- Int64\(7\)\) \* \(\- nullif\(Int64\(\-77\), Int64\(\-58\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + ( + + COUNT ( * ) ) col2, 63 * - + 7 * - + NULLIF ( - 77, - 58 ) AS col2 # Datafusion - Types were automatically converted from: @@ -27710,7 +27710,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 col1" at position 0 and "Int64\(69\) \+ Int64\(\-95\) \+ nullif\(Int64\(\-66\), 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(69\) \+ Int64\(\-95\) \+ nullif\(Int64\(\-66\), Int64\(43\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, + 69 + - 95 + NULLIF ( - 66, + 43 ) col1 query I rowsort label-5290 @@ -27819,7 +27819,7 @@ SELECT ALL - 8 * + 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - -2292 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(33\) \* Int64\(\-65\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-77\) \+ 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\(53\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(33\) \* Int64\(\-65\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-77\) \+ Int64\(\-71\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 53 - + COUNT ( * ) AS col0, 33 * - 65 + + COUNT ( * ) + - 77 + - 71 AS col0 query I rowsort @@ -30006,7 +30006,7 @@ SELECT ALL - 36 / + COUNT ( * ) + + 43 - ( - 0 ) * + 59, + 95 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 3657 -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\(53\) \* 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\(\*\) )?AS col1" at position 0 and "Int64\(53\) \* Int64\(69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, 53 * + 69 AS col1 query II rowsort label-5724 @@ -31059,7 +31059,7 @@ SELECT ALL 77 * + ( - - 72 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7644 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \* Int64\(84\) 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\(91\) \* Int64\(84\) 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 ( + 91 ) * + 84 AS col0, COUNT ( * ) AS col0 query I rowsort @@ -32108,7 +32108,7 @@ SELECT + 26 AS col2, 71 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 "\(\- 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\(\*\)\) 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 ( * ) AS col1, + COUNT ( * ) AS col1 query I rowsort label-6130 @@ -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 Int32\)\) \+ 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 @@ -44755,7 +44755,7 @@ SELECT DISTINCT + 17 * - 41 * - 61 # Datafusion - Expected - 1 # Datafusion - Expected - -63 # Datafusion - Expected - -7 -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\) \- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(27\) \- Int64\(90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col1, 27 - ( 90 ) AS col1, - + 55 + - - ( + 48 ) AS col2 query I rowsort label-8532 @@ -48656,7 +48656,7 @@ NULL # Datafusion - Expected - 16 # Datafusion - Expected - 14 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(16\)\) / count\(Int64\(1\)\) AS count\(\*\) 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 "min\(Int64\(16\)\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + MIN ( + 16 ) / + COUNT ( * ) col2, + 14 AS col2, - CASE WHEN NOT MAX ( DISTINCT + 92 ) IS NULL THEN NULL ELSE COUNT ( * ) END query I rowsort diff --git a/data/sqlite/random/expr/slt_good_72.slt b/data/sqlite/random/expr/slt_good_72.slt index 6fece06..c749b47 100644 --- a/data/sqlite/random/expr/slt_good_72.slt +++ b/data/sqlite/random/expr/slt_good_72.slt @@ -2078,7 +2078,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \+ Int64\(49\) \* count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(49\) \+ Int64\(49\) \* count\(Int64\(1\)\) (AS count\(\*\) )?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 49 + + 49 * + COUNT ( * ) col0, 81 AS col0 query I rowsort @@ -4828,7 +4828,7 @@ SELECT ALL 12 AS col2, - 74 + + + ( - 35 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) 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\) 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 63 AS col1, COUNT ( * ) AS col1 query I rowsort label-907 @@ -5163,7 +5163,7 @@ SELECT - 61 * - 37 * - 58 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -58 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(60\)\)\) \* Int64\(58\) AS col0" at position 0 and "min\(Int64\(44\)\) \* 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\(60\)\)\) \* Int64\(58\) AS col0" at position 0 and "min\(Int64\(44\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( + 60 ) * 58 AS col0, ( MIN ( 44 ) ) * + + COUNT ( * ) AS col0 query I rowsort label-971 @@ -6129,7 +6129,7 @@ SELECT - COUNT ( * ) - - 26 + - NULLIF ( 5, 2 ) + + 93 * 43 / + 11 AS col1 # 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 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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 COUNT ( * ) col2, 10 AS col2 query I rowsort @@ -9153,7 +9153,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 90 -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\(\*\)\) \+ \(\- \(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- \(\- Int64\(91\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, - COUNT ( * ) + - ( - + 91 ) AS col1 query II rowsort @@ -9707,7 +9707,7 @@ SELECT + - 51 * + 48 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -62 -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\(1\) \* 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(1\) \* Int64\(\-62\) \* \(\- \(\- 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, + 1 * - 62 * - - COUNT ( * ) AS col0 query I rowsort @@ -10016,7 +10016,7 @@ SELECT ALL + COUNT ( * ) + 5 * + COALESCE ( + 56, - COUNT ( * ) ) + + 53 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) 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\(69\) 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 69 AS col1, COUNT ( * ) AS col1 query II rowsort label-1894 @@ -12933,7 +12933,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -102 -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 "\(\- min\(DISTINCT Int64\(72\)\)\) \+ 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 "\(\- min\(DISTINCT Int64\(72\)\)\) \+ Int64\(\-30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, ( ( - MIN ( DISTINCT + 72 ) ) ) + - 30 AS col2 query I rowsort label-2447 @@ -15257,7 +15257,7 @@ SELECT ALL + - 39 * - 31 * + 49 # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - 1 -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 "count\(\(\- 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\(88\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "count\(\(\- Int64\(99\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 88 * + ( + COUNT ( * ) ) AS col2, COUNT ( - + 99 ) AS col2 query I rowsort label-2895 @@ -16228,7 +16228,7 @@ SELECT ALL + 18 * - 11 * + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 48 -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\(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 "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 COUNT ( * ) col1, 48 col1 query I rowsort label-3079 @@ -18093,7 +18093,7 @@ SELECT ALL 66 + 19, - 80 AS col2 # 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 "\(\- max\(Int64\(85\)\)\) 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\(Int64\(85\)\)\) 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 ( 85 ) AS col1, + COUNT ( * ) AS col1 query I rowsort @@ -18594,7 +18594,7 @@ SELECT + 8 - - 2 + 88 + 23 * 28 # 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 col2" at position 0 and "\(\- count\(Int64\(\-33\)\)\) / 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "\(\- count\(Int64\(\-33\)\)\) / Int64\(\-1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) col2, - COUNT ( - 33 ) / - 1 AS col2 query I rowsort @@ -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 Int32\) 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 @@ -26626,7 +26626,7 @@ SELECT DISTINCT 26 + COUNT ( * ) + 17 + 73 * - + 59 + + - 87 * + + 29 # 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 "\(\- \(\- \(\- coalesce\(Int64\(\-92\), Int64\(\-5\) \* \(\- \(\- 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 "\(\- \(\- \(\- coalesce\(Int64\(\-92\), Int64\(\-5\) \* \(\- \(\- 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 DISTINCT - ( - - COALESCE ( - 92, - 5 * - - COUNT ( * ) ) ) AS col0, COUNT ( * ) AS col0 query I rowsort label-5073 @@ -29283,7 +29283,7 @@ SELECT + 66 / NULLIF ( + - MAX ( - - 14 ), 2 ) * - 53 * + 86 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 "Int64\(30\) 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\(30\) 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 + 30 AS col0, COUNT ( * ) AS col0 query I rowsort @@ -30761,7 +30761,7 @@ SELECT + 2 - - 38 - 97 - - + 1 + + 73 / + 38 + + NULLIF ( + + 74, 68 + 52 + COAL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 72 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(72\) \* 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, 72 * + COUNT ( * ) AS col0 query I rowsort @@ -33010,7 +33010,7 @@ SELECT 80 AS col0, COUNT ( ALL + + 58 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17000 # Datafusion - Expected - -1190 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \* \(\- Int64\(\-20\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(17\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(17\) \* 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\(50\) \* \(\- Int64\(\-20\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(17\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(17\) \* Int64\(\-70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 50 * - ( + - 20 ) * + COUNT ( * ) * + 17 * COUNT ( * ) AS col0, 17 * - 70 AS col0 query I rowsort @@ -37848,7 +37848,7 @@ SELECT + 98 * - 52 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5340 # Datafusion - Expected - -7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \* \(\- Int64\(78\)\) \+ Int64\(\-53\) \+ Int64\(16\) \+ count\(Int64\(1\)\) AS count\(\*\) 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\(68\) \* \(\- Int64\(78\)\) \+ Int64\(\-53\) \+ Int64\(16\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(\-7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 68 * - + 78 + - 53 + + + 16 + + COUNT ( * ) AS col1, - 7 col1 query I rowsort @@ -38284,7 +38284,7 @@ SELECT 46 * + 65 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7178 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-97\) \* Int64\(74\) 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\(\*\) \* Int64\(\-97\) \* Int64\(74\) 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 COUNT ( * ) * - 97 * 74 col2, + COUNT ( * ) AS col2 query II rowsort label-7289 @@ -38379,7 +38379,7 @@ SELECT + COALESCE ( 28, COUNT ( DISTINCT - 46 ) * + 35, + CAST ( NULL AS INTEGER # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) 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\(79\) 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 + 79 AS col1, + COUNT ( * ) AS col1 query I rowsort @@ -40215,7 +40215,7 @@ SELECT ALL 29 * - - 75 AS col2 # 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 "Int64\(92\) 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\(92\) 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 92 AS col0, + COUNT ( * ) AS col0 query I rowsort @@ -42524,7 +42524,7 @@ SELECT ALL 90 * - 6 + - - 57 + - 77 + 40 * - - 78 AS col0, + 89 - - - ( - 42 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -28 # Datafusion - Expected - 1 -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\(\*\) AS col2" at position 1 have the 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\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 28 col2, ( COUNT ( * ) ) AS col2 query II rowsort label-8103 @@ -44322,7 +44322,7 @@ SELECT ALL 30 * 81 * - 3 + - COUNT ( * ) - - 52 * - 55 + - 17 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) / count\(Int64\(1\)\) AS count\(\*\) 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\(77\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 77 / + + COUNT ( * ) AS col0, 67 AS col0 query I rowsort @@ -48947,7 +48947,7 @@ SELECT ALL - 77 + + COALESCE ( COUNT ( * ), + COUNT ( * ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - -126750 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-42\)\) AS col1" at position 0 and "\(\- Int64\(\-75\)\) \* Int64\(65\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-26\) \* 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\)\) AS col1" at position 0 and "\(\- Int64\(\-75\)\) \* Int64\(65\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-26\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 42 AS col1, ( - - 75 ) * 65 * COUNT ( * ) * - 26 * + COUNT ( * ) AS col1 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_73.slt b/data/sqlite/random/expr/slt_good_73.slt index 711183e..dbcf0fa 100644 --- a/data/sqlite/random/expr/slt_good_73.slt +++ b/data/sqlite/random/expr/slt_good_73.slt @@ -2732,7 +2732,7 @@ SELECT 70 + COALESCE ( + 14, 78 * 55 * - 17 * 4 * - 61 + 1 + - CAST ( + 89 AS IN # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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\(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 64 AS col2, COUNT ( * ) AS col2 query I rowsort label-513 @@ -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 Int32\) 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 @@ -8464,7 +8464,7 @@ SELECT ALL 42 + 62 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 126 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) \+ Int64\(32\) 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\(94\) \+ Int64\(32\) 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 94 + 32 AS col2, COUNT ( * ) AS col2 query I rowsort @@ -9677,7 +9677,7 @@ SELECT CAST ( + - NULLIF ( + - COUNT ( * ), - 64 - - CASE - COUNT ( ALL - 14 ) W # 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\) / 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\(54\) / 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 + 54 / + COUNT ( * ) AS col2, - COUNT ( * ) col2 query I rowsort @@ -12864,7 +12864,7 @@ SELECT ALL 21 AS col0, ( + COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -166 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) \+ \(\- Int64\(92\)\) \+ count\(Int64\(1\)\) AS count\(\*\) 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\(\-75\) \+ \(\- Int64\(92\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 75 + - + 92 + + COUNT ( * ) AS col1, 62 AS col1 query I rowsort @@ -13468,7 +13468,7 @@ SELECT DISTINCT 70 * + 16 * 77 # 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\(35\) / Int64\(\-44\) 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\(35\) / Int64\(\-44\) 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 35 / + - 44 AS col2, COUNT ( * ) AS col2 query II rowsort label-2554 @@ -15446,7 +15446,7 @@ SELECT ALL - NULLIF ( + - 57, + 74 + + 43 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-7\) \+ Int64\(\-75\) / 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 "Int64\(\-7\) \+ Int64\(\-75\) / 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 ALL - 7 + - 75 / 65 AS col2, COUNT ( * ) AS col2 query II rowsort @@ -20122,7 +20122,7 @@ SELECT ALL + - 70 * - 51 * + 77 AS col2 # 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 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\(\-23\) 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 - 23 AS col2, COUNT ( * ) AS col2 query I rowsort @@ -20207,7 +20207,7 @@ SELECT + ( + + 90 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -37 # Datafusion - Expected - -78 -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 "coalesce\(\(\- Int64\(78\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(20\) \- max\(DISTINCT Int64\(83\)\) \* 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\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "coalesce\(\(\- Int64\(78\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(20\) \- max\(DISTINCT Int64\(83\)\) \* Int64\(77\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( - 37 ) * COUNT ( * ) AS col2, + COALESCE ( + - ( 78 ), + - COUNT ( * ) - + 20 - + MAX ( DISTINCT + 83 ) * 77 ) AS col2 query I rowsort label-3840 @@ -23258,7 +23258,7 @@ SELECT - 51 + - COUNT ( * ) AS col0 # Datafusion - Expected - 1 # Datafusion - Expected - 32 # Datafusion - Expected - 81 -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\(81\) 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\(81\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col1, 31 + + COUNT ( * ), + 81 AS col1 query I rowsort @@ -31009,7 +31009,7 @@ SELECT DISTINCT + 9 * - 95 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 52 -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\(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\(\*\) )?AS col1" at position 0 and "Int64\(52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, 52 AS col1 query I rowsort @@ -31789,7 +31789,7 @@ SELECT - COUNT ( * ) + - 36 + 69 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 68 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "max\(Int64\(68\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col2, + MAX ( + 68 ) AS col2 # Datafusion - Datafusion expected results: @@ -33320,7 +33320,7 @@ NULL # Datafusion - Expected - 1 # Datafusion - Expected - 65 # Datafusion - Expected - 63 -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\(\-78\) / Int64\(90\) \* Int64\(12\) \+ Int64\(63\) 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\(\*\) )?AS col2" at position 0 and "Int64\(\-78\) / Int64\(90\) \* Int64\(12\) \+ Int64\(63\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col2, + 65 AS col0, + - 78 / 90 * ( 12 ) + + 63 AS col2 query I rowsort label-6345 @@ -33811,7 +33811,7 @@ SELECT + - 37 * 16 * - - 84 AS col1, - CAST ( - 32 AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \+ Int64\(\-11\) \+ \(\- Int64\(\-9\)\) \+ count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(80\) \+ Int64\(\-11\) \+ \(\- Int64\(\-9\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?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 80 + - 11 + - - 9 + COUNT ( * ) col2, 26 AS col2 # Datafusion - Datafusion expected results: @@ -34414,7 +34414,7 @@ SELECT - 30 + 24 + + NULLIF ( 0, 24 ) + - 62 + + + 33 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 22 -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\(\-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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-21\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col2, + COUNT ( * ) + - - 21 AS col2 query I rowsort label-6552 @@ -37307,7 +37307,7 @@ SELECT - COUNT ( * ) * - + 51 + - ( + + ( - 9 ) ) + + - 0 / - - 88 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -186 -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\(31\) \* \(\- coalesce\(Int64\(6\), Int64\(54\) \* 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(31\) \* \(\- coalesce\(Int64\(6\), Int64\(54\) \* Int64\(62\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, 31 * - COALESCE ( 6, + + 54 * 62 ) AS col2 query I rowsort label-7102 @@ -37440,7 +37440,7 @@ SELECT 45 * + 48 + + - MAX ( DISTINCT - 83 ) - - COALESCE ( - COUNT ( * ), - + 2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) \+ count\(Int64\(36\)\) \+ Int64\(2\) \+ Int64\(37\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- min\(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\(40\) \+ count\(Int64\(36\)\) \+ Int64\(2\) \+ Int64\(37\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "\(\- min\(Int64\(92\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 40 + + + COUNT ( ALL 36 ) + + + 2 + + 37 * + COUNT ( * ) AS col0, - MIN ( 92 ) col0 query I rowsort @@ -38161,7 +38161,7 @@ SELECT ALL + 25 + - 36 * MAX ( ALL + 88 ) AS col1 # 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\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 COUNT ( * ) AS col0, 18 AS col0 query I rowsort label-7262 @@ -40741,7 +40741,7 @@ SELECT CAST ( - 88 AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -52 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) \+ count\(Int64\(1\)\) AS count\(\*\) 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\(\-53\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 53 + + COUNT ( * ) AS col0, ( 4 ) col0 query II rowsort @@ -44377,7 +44377,7 @@ SELECT ALL - SUM ( 64 ) / - 44 # 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 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, 1 AS col2 query II rowsort label-8441 @@ -44438,7 +44438,7 @@ SELECT ALL - 61 + + + COUNT ( * ) * - 94 * - - 1 / + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 189 -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 "\(\- nullif\(Int64\(51\), Int64\(27\) \+ Int64\(\-4\) \+ Int64\(77\)\)\) \+ Int64\(78\) \+ Int64\(54\) \+ count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(9\) \+ 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 "\(\- nullif\(Int64\(51\), Int64\(27\) \+ Int64\(\-4\) \+ Int64\(77\)\)\) \+ Int64\(78\) \+ Int64\(54\) \+ count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(9\) \+ Int64\(99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col0, - NULLIF ( 51, + 27 + + - 4 + + 77 ) + 78 + + 54 + COUNT ( * ) * COUNT ( * ) * + 9 + + 99 col0 query II rowsort label-8452 @@ -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 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\. 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 @@ -47977,7 +47977,7 @@ SELECT ALL 66 + - 31 + - 39 * + 97 * + 77 * + 17, 0 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 "count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 COUNT ( * ) AS col1, 3 col1 query II rowsort diff --git a/data/sqlite/random/expr/slt_good_74.slt b/data/sqlite/random/expr/slt_good_74.slt index 89f5754..63d18e3 100644 --- a/data/sqlite/random/expr/slt_good_74.slt +++ b/data/sqlite/random/expr/slt_good_74.slt @@ -318,7 +318,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 "nullif\(CASE Int64\(4\) WHEN Int64\(46\) \* max\(Int64\(\-9\)\) THEN Int64\(92\) END, 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\(\*\) )?AS col1" at position 0 and "nullif\(CASE Int64\(4\) WHEN Int64\(46\) \* max\(Int64\(\-9\)\) THEN Int64\(92\) END, Int64\(22\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col1, NULLIF ( + CASE + + 4 WHEN 46 * MAX ( - 9 ) THEN 92 END, + 22 ) AS col1 query I rowsort label-52 @@ -350,7 +350,7 @@ SELECT - 43 + - 69 AS col0 # Datafusion - Expected - 1 # Datafusion - Expected - -58 # Datafusion - Expected - -77 -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\(\-29\) \* 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(\-29\) \* Int64\(2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col2, - 29 * + 2 AS col2, + - 80 + - SUM ( DISTINCT + 23 ) + + 26 query I rowsort label-58 @@ -1689,7 +1689,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) 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\(72\) 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 72 AS col0, COUNT ( * ) * COUNT ( * ) AS col0 query II rowsort @@ -1827,7 +1827,7 @@ SELECT + COUNT ( * ) * - COALESCE ( 49, ( + 26 ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -130 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) / coalesce\(Int64\(\-13\), count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(65\) 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\(26\) / coalesce\(Int64\(\-13\), count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(65\) 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 26 / ( + COALESCE ( - 13, COUNT ( * ) ) ) * ( + 65 ) AS col1, COUNT ( * ) AS col1 query II rowsort label-336 @@ -3082,7 +3082,7 @@ SELECT DISTINCT - COALESCE ( 84, - 87 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- \(\- \(\- Int64\(68\)\)\)\)\) \+ \(\- count\(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 "\(\- \(\- \(\- \(\- Int64\(68\)\)\)\)\) \+ \(\- count\(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 - - ( - - ( 68 ) ) + ( + - COUNT ( - 13 ) ) AS col1, COUNT ( * ) AS col1 query II rowsort @@ -3242,7 +3242,7 @@ SELECT 35 * - 40 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -910 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(26\)\) \* Int64\(\-35\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "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 "max\(Int64\(26\)\) \* Int64\(\-35\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MAX ( 26 ) * - 35 * + COUNT ( * ) AS col0, + 50 AS col0 query II rowsort @@ -7206,7 +7206,7 @@ SELECT + MAX ( + + 78 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) / count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(\-82\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 82 / COUNT ( * ) col2, 69 col2 query II rowsort @@ -8889,7 +8889,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - 3600 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(75\) \* 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\(74\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(75\) \* Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 74 * + + COUNT ( * ) AS col0, + 75 * 48 AS col0 query I rowsort label-1675 @@ -9329,7 +9329,7 @@ SELECT DISTINCT + - 88 * - 75 - - 8 # Datafusion - Expected - 1 # Datafusion - Expected - 1 # Datafusion - Expected - 38 -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 "Int64\(38\) 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 "Int64\(38\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ), + COUNT ( * ) AS col1, + + 38 AS col1 query I rowsort label-1758 @@ -13230,7 +13230,7 @@ SELECT + 60 + + 4 * + + 6 AS col0 # Datafusion - Expected - 442 # Datafusion - Expected - 52 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-49\) \* Int64\(\-9\) \+ count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-49\) \* Int64\(\-9\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?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 + COUNT ( * ) * - 49 * - 9 + + COUNT ( * ) AS col0, 52 AS col0, - 3 * - COUNT ( DISTINCT + - 97 ) query I rowsort @@ -18731,7 +18731,7 @@ SELECT 71, + 28 / + ( - + NULLIF ( - 64, - 10 ) ) * - - 83 * - 31 + 18 - - 63 - # Datafusion - Datafusion expected results: # Datafusion - Expected - -495 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \* Int64\(\-99\) 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\(5\) \* Int64\(\-99\) 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 5 * + - 99 AS col1, ( + COUNT ( * ) ) col1 query II rowsort label-3551 @@ -19164,7 +19164,7 @@ SELECT + + ( + - 81 ) + + NULLIF ( + 39, + 48 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 6782 -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\(6\) \+ Int64\(88\) \* 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(6\) \+ Int64\(88\) \* Int64\(77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, 6 + + + 88 * 77 AS col2 query II rowsort @@ -19182,7 +19182,7 @@ SELECT ALL + 64 AS col1, 35 * 58 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 768 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \* min\(Int64\(48\)\) 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\(16\) \* min\(Int64\(48\)\) 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 + + ( 16 ) * MIN ( ALL 48 ) AS col1, COUNT ( * ) col1 query II rowsort @@ -21915,7 +21915,7 @@ SELECT 98 / - ( + 72 ) AS col2 # 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 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\(55\) 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 55 AS col1, + COUNT ( * ) AS col1 query I rowsort @@ -25202,7 +25202,7 @@ SELECT DISTINCT - 54 + 79 * - + 61 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4554 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) \* Int64\(69\) AS col0" at position 0 and "Int64\(92\) \* 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\(\-66\) \* Int64\(69\) AS col0" at position 0 and "Int64\(92\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 66 * + 69 AS col0, + 92 * + COUNT ( * ) AS col0 query I rowsort @@ -27792,7 +27792,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col1" at position 0 and "Int64\(76\) / 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 "Int64\(92\) AS col1" at position 0 and "Int64\(76\) / Int64\(\-66\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 92 AS col1, + 76 / - 66 + + + COUNT ( * ) AS col1 query I rowsort @@ -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 Int32\) \* 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 @@ -40479,7 +40479,7 @@ SELECT + COALESCE ( - 1, + 52 * 74, + NULLIF ( - 15, 80 ) ) * 51 + 67 # 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\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 + COUNT ( * ) AS col2, 85 AS col2 query I rowsort label-7698 @@ -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 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\. 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 @@ -41659,7 +41659,7 @@ SELECT ALL + COUNT ( * ) / + 90 * + 19 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -73 # Datafusion - Expected - -138 -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 "Int64\(59\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ 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\(\-73\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(59\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 73 * + COUNT ( * ) AS col1, 59 / - COUNT ( * ) + - 79 AS col1 query I rowsort label-7921 @@ -42548,7 +42548,7 @@ SELECT DISTINCT COUNT ( * ) + - 66 # Datafusion - Datafusion expected results: # Datafusion - Expected - -56 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-57\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(23\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- \(\- Int64\(\-6\)\) \* 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 "max\(Int64\(\-57\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(23\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- \(\- Int64\(\-6\)\) \* Int64\(17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MAX ( - 57 ) + + COUNT ( * ) AS col1, + 23 + - COUNT ( * ) - - - 6 * + + 17 AS col1 query I rowsort @@ -44147,7 +44147,7 @@ SELECT - NULLIF ( + 9, + + CASE + COUNT ( * ) WHEN 45 THEN NULL ELSE 75 END ) + # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) \* count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(\-47\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 47 * + + COUNT ( * ) AS col0, 51 AS col0 query I rowsort @@ -45281,7 +45281,7 @@ NULL # 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\(6\) \* Int64\(\-5\) \+ Int64\(9\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CASE Int64\(90\) WHEN Int64\(65\) THEN NULL WHEN Int64\(\-69\) / Int64\(4\) THEN NULL WHEN Int64\(96\) \+ Int64\(83\) THEN Int64\(48\) \* \(\- Int64\(\-70\)\) 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\(6\) \* Int64\(\-5\) \+ Int64\(9\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "CASE Int64\(90\) WHEN Int64\(65\) THEN NULL WHEN Int64\(\-69\) / Int64\(4\) THEN NULL WHEN Int64\(96\) \+ Int64\(83\) THEN Int64\(48\) \* \(\- Int64\(\-70\)\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 6 * - 5 + 9 * + COUNT ( * ) AS col2, CASE + 90 WHEN 65 THEN NULL WHEN - 69 / + 4 THEN NULL WHEN 96 + 83 THEN + + 48 * - - 70 END AS col2 query I rowsort label-8610 @@ -45409,7 +45409,7 @@ SELECT ALL 87 + + - 30 * 43 # Datafusion - Datafusion expected results: # Datafusion - Expected - -35 # Datafusion - Expected - 1079 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CASE \(\- Int64\(32\)\) WHEN Int64\(8\) THEN NULL ELSE \(\- nullif\(Int64\(\-13\), Int64\(63\)\)\) END \* 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\(\-34\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "CASE \(\- Int64\(32\)\) WHEN Int64\(8\) THEN NULL ELSE \(\- nullif\(Int64\(\-13\), Int64\(63\)\)\) END \* Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 34 + + ( - COUNT ( * ) ) * COUNT ( * ) AS col0, + CASE - + 32 WHEN + 8 THEN NULL ELSE - NULLIF ( - 13, 63 ) END * 83 AS col0 query I rowsort label-8633 @@ -49862,7 +49862,7 @@ SELECT + 82 * 32 + - - 40 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) 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 "Int64\(64\) 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 ALL + 64 AS col0, 58 * + COUNT ( * ) AS col0 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_75.slt b/data/sqlite/random/expr/slt_good_75.slt index cbdfcc4..035862d 100644 --- a/data/sqlite/random/expr/slt_good_75.slt +++ b/data/sqlite/random/expr/slt_good_75.slt @@ -124,7 +124,7 @@ SELECT + - 49 + - + CAST ( - 34 AS INTEGER ) # 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 "count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 DISTINCT + COUNT ( * ) AS col2, + MAX ( ALL - 3 ) col2 query I rowsort @@ -12121,7 +12121,7 @@ SELECT ALL - 9 * - 88 * - + CASE 56 WHEN - 53 THEN COUNT ( * ) ELSE + - 97 END * # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -64006 -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\(\-58\) \- Int64\(74\) \+ nullif\(\(\- Int64\(32\)\), Int64\(\-49\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(\-34\) \+ Int64\(\-63\) \+ Int64\(58\) / Int64\(\-93\)\) \* \(\- Int64\(74\)\) \* Int64\(\-27\) \+ \(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(\-58\) \- Int64\(74\) \+ nullif\(\(\- Int64\(32\)\), Int64\(\-49\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(\-34\) \+ Int64\(\-63\) \+ Int64\(58\) / Int64\(\-93\)\) \* \(\- Int64\(74\)\) \* Int64\(\-27\) \+ \(\- Int64\(\-62\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col1, ( - 58 ) - + + 74 + + + NULLIF ( - ( 32 ), + - 49 + - COUNT ( * ) - + ( - 34 ) + - 63 + + + 58 / - 93 ) * ( - + 74 ) * + - 27 + - - 62 AS col1 query I rowsort label-2298 @@ -12251,7 +12251,7 @@ SELECT ALL - 69 + + - ( ( - + ( - - 97 ) ) ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 41 -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\) AS col0" at position 1 have the same name\. Consider aliasing \("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\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col0, + 41 col0 query I rowsort @@ -13447,7 +13447,7 @@ SELECT 94 AS col0, + 67 + COUNT ( - 94 ) + ( COUNT ( * ) + + 3 ) # 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 "Int64\(29\) AS col2" at position 0 and "\(\- count\(\(\- CASE Int64\(12\) WHEN Int64\(\-87\) THEN Int64\(\-75\) 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\(29\) AS col2" at position 0 and "\(\- count\(\(\- CASE Int64\(12\) WHEN Int64\(\-87\) THEN Int64\(\-75\) END\)\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 29 AS col2, - COUNT ( - + CASE + 12 WHEN - 87 THEN - 75 END ) + + COUNT ( * ) AS col2 query I rowsort label-2552 @@ -16165,7 +16165,7 @@ SELECT ALL COUNT ( * ) AS col0, + 24 * - 71 # 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 "Int64\(\-59\) 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\(\-59\) 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 - 59 AS col2, + ( + COUNT ( * ) ) AS col2 query I rowsort @@ -17402,7 +17402,7 @@ SELECT + 11 + - - COUNT ( * ) + + 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - -94 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) 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\(\-94\) 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 + - 94 AS col1, COUNT ( * ) AS col1 query I rowsort @@ -19354,7 +19354,7 @@ SELECT + + MAX ( + + 80 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -33001 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) \* Int64\(75\) \* Int64\(10\) \+ Int64\(61\) \+ \(\- Int64\(62\)\) 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 "Int64\(\-44\) \* Int64\(75\) \* Int64\(10\) \+ Int64\(61\) \+ \(\- Int64\(62\)\) 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 - 44 * + 75 * 10 + 61 + - + 62 AS col1, 89 * ( + COUNT ( * ) ) AS col1 query I rowsort label-3678 @@ -19656,7 +19656,7 @@ SELECT ALL 25 + + 54 * 89 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7589 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(84\)\) \* Int64\(\-91\) \+ Int64\(55\) AS col1" at position 0 and "Int64\(3\) \* 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 "sum\(Int64\(84\)\) \* Int64\(\-91\) \+ Int64\(55\) AS col1" at position 0 and "Int64\(3\) \* Int64\(24\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT SUM ( ALL + 84 ) * - 91 + 55 AS col1, 3 * + + 24 / + COUNT ( * ) AS col1 query I rowsort @@ -20066,7 +20066,7 @@ SELECT DISTINCT - 94 * - 74 * 0 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -7020 -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\(56\) \- Int64\(\-52\) \+ Int64\(72\) \* \(\- nullif\(Int64\(99\), 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 "Int64\(56\) \- Int64\(\-52\) \+ Int64\(72\) \* \(\- nullif\(Int64\(99\), Int64\(4\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, + 56 - + - 52 + 72 * - NULLIF ( 99, + 4 ) col2 query I rowsort label-3813 @@ -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 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\. 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 @@ -21471,7 +21471,7 @@ SELECT + + 84 * CASE CAST ( + MIN ( DISTINCT - NULLIF ( + 37, - - 15 * + CAST ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) 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\(94\) 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 + + 94 AS col0, + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: @@ -21690,7 +21690,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -64 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(56\)\) \+ Int64\(71\) 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\(79\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(56\)\) \+ Int64\(71\) 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 + 79 * - COUNT ( * ) + + - ( + 56 ) + + 71 AS col1, COUNT ( * ) AS col1 query II rowsort @@ -22613,7 +22613,7 @@ SELECT DISTINCT CASE + 12 WHEN 58 / - - 47 * - - 21 THEN NULL WHEN 60 + 85 THEN # 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 "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(38\) \- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(38\) \- Int64\(\-1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col0, + 38 - - 1 AS col0 # Datafusion - Datafusion expected results: @@ -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 Int32\), 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 @@ -24553,7 +24553,7 @@ SELECT - 71 - - 81 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 "Int64\(1\) 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\) 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 + 1 AS col1, + COUNT ( * ) AS col1 query I rowsort @@ -25026,7 +25026,7 @@ SELECT 51 + 34 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \* count\(Int64\(1\)\) AS count\(\*\) 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\(14\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 14 * + + COUNT ( * ) AS col2, 61 AS col2 query I rowsort label-4758 @@ -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 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\. SELECT ALL + 66 + ( CAST ( NULL AS INTEGER ) ) col2, COUNT ( * ) AS col2 query I rowsort label-5171 @@ -29657,7 +29657,7 @@ SELECT - 6 * 74 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1207 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) \* Int64\(17\) 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\) \* Int64\(17\) 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 * 17 AS col2, COUNT ( * ) col2 query I rowsort @@ -32272,7 +32272,7 @@ SELECT - 64 + + + 48 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 232 -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\(4\) \* 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(4\) \* Int64\(58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( + COUNT ( * ) ) AS col0, 4 * + 58 AS col0 query I rowsort @@ -33133,7 +33133,7 @@ SELECT - 34 - - 76 # Datafusion - Datafusion expected results: # Datafusion - Expected - -48 # Datafusion - Expected - 1235 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) AS col0" at position 0 and "Int64\(95\) \* Int64\(13\) / 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 "Int64\(95\) \* Int64\(13\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 48 AS col0, + 95 * 13 / + ( + COUNT ( * ) ) AS col0 # Datafusion - Datafusion expected results: @@ -33246,7 +33246,7 @@ SELECT ALL NULLIF ( + + COUNT ( * ), + 66 * + 77 ) / COUNT ( * ) - 88 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1177 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-51\) \* Int64\(25\) \+ Int64\(98\) / count\(Int64\(1\)\) AS count\(\*\) 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\(\-51\) \* Int64\(25\) \+ Int64\(98\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 51 * 25 + + 98 / ( COUNT ( * ) ) AS col0, 46 AS col0 query I rowsort label-6318 @@ -35625,7 +35625,7 @@ SELECT 36 - + 26 * ( + + 27 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) 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\(26\) 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 + 26 AS col1, + COUNT ( * ) AS col1 query III rowsort label-6772 @@ -37875,7 +37875,7 @@ SELECT COALESCE ( - 19, - + 40, + + ( - + 8 ) * + - 73 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -3410 # Datafusion - Expected - -2009 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) \* Int64\(77\) \+ Int64\(56\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-49\) \* 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\(\-45\) \* Int64\(77\) \+ Int64\(56\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(\-49\) \* Int64\(41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 45 * 77 + + 56 - COUNT ( * ) AS col0, - 49 * + 41 AS col0 query I rowsort @@ -38200,7 +38200,7 @@ SELECT DISTINCT + - 92 - 79 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) / 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\(25\) / 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 DISTINCT + + 25 / + + COUNT ( * ) AS col0, COUNT ( * ) AS col0 query II rowsort label-7259 @@ -42097,7 +42097,7 @@ SELECT 20 * ( + 55 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - 151 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "max\(DISTINCT Int64\(21\)\) \+ min\(Int64\(76\)\) \+ \(\- sum\(\(\- 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\(34\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "max\(DISTINCT Int64\(21\)\) \+ min\(Int64\(76\)\) \+ \(\- sum\(\(\- Int64\(54\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 34 + COUNT ( * ) col0, MAX ( DISTINCT + 21 ) + + MIN ( + + 76 ) + - ( SUM ( - + 54 ) ) AS col0 query I rowsort label-8012 @@ -43255,7 +43255,7 @@ SELECT DISTINCT 73 + + 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - -66 # Datafusion - Expected - -93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) AS col0" at position 0 and "Int64\(\-92\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(DISTINCT Int64\(\-27\)\)\) \* 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\(\-66\) AS col0" at position 0 and "Int64\(\-92\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(DISTINCT Int64\(\-27\)\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 66 AS col0, - 92 * + COUNT ( * ) + - COUNT ( DISTINCT - 27 ) * + COUNT ( * ) AS col0 query I rowsort label-8234 @@ -49647,7 +49647,7 @@ SELECT - 48 + - CAST ( 52 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(25\) \+ 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\(8\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(25\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 8 AS col0, - COUNT ( * ) + + 25 + COUNT ( * ) AS col0 query II rowsort label-9459 @@ -50429,7 +50429,7 @@ SELECT + - CAST ( + - COUNT ( * ) AS INTEGER ) 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 51 AS col2, COUNT ( * ) AS col2 query I rowsort label-9610 @@ -50996,7 +50996,7 @@ SELECT + MIN ( DISTINCT + + 62 ) # 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 "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\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, 0 AS col0 query I rowsort label-9719 diff --git a/data/sqlite/random/expr/slt_good_76.slt b/data/sqlite/random/expr/slt_good_76.slt index 26d0ffb..657ba30 100644 --- a/data/sqlite/random/expr/slt_good_76.slt +++ b/data/sqlite/random/expr/slt_good_76.slt @@ -513,7 +513,7 @@ SELECT DISTINCT + 1 AS col0 # 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 "count\(Int64\(1\)\) AS count\(\*\) / Int64\(19\) / 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 "count\(Int64\(1\)\) AS count\(\*\) / Int64\(19\) / 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 + COUNT ( * ) / 19 / + 23 AS col1, COUNT ( * ) col1 query I rowsort label-93 @@ -1750,7 +1750,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 "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\(42\) 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 42 AS col0, COUNT ( * ) AS col0 # Datafusion - Types were automatically converted from: @@ -1874,7 +1874,7 @@ NULL # 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 "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\(\*\) )?AS col2" at position 0 and "Int64\(\-19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, - 19 AS col2 query I rowsort label-358 @@ -3082,7 +3082,7 @@ SELECT ALL 40 * 63 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 55 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 COUNT ( * ) AS col2, 55 AS col2 query I rowsort label-591 @@ -4249,7 +4249,7 @@ SELECT COUNT ( * ) - + - COUNT ( * ) * - + 80 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - 1 -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 "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\(\-47\) \* 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 - 47 * COUNT ( * ) AS col2, COUNT ( * ) AS col2 query I rowsort @@ -4947,7 +4947,7 @@ SELECT DISTINCT + CAST ( - 16 AS INTEGER ) 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 "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(DISTINCT 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "count\(DISTINCT Int64\(67\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, + COUNT ( DISTINCT + + 67 ) AS col1 query I rowsort @@ -5636,7 +5636,7 @@ SELECT + - 59 * 37 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) 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\(91\) 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 91 AS col0, + COUNT ( * ) AS col0 query I rowsort label-1085 @@ -6401,7 +6401,7 @@ SELECT + COUNT ( DISTINCT ( - 9 ) ) # 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\(\*\) / 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 "count\(Int64\(1\)\) AS count\(\*\) / 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 COUNT ( * ) / + COUNT ( * ) AS col2, COUNT ( * ) col2 query I rowsort label-1234 @@ -7901,7 +7901,7 @@ SELECT ALL + COUNT ( * ) + 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) 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 "Int64\(94\) 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 ALL + + 94 col1, COUNT ( * ) + COUNT ( * ) col1 # Datafusion - Types were automatically converted from: @@ -8495,7 +8495,7 @@ SELECT ALL - 64 * - ( 46 ) col2 # 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 "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(18\) \+ Int64\(41\) 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\(18\) \+ Int64\(41\) 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 ( * ) + + + 18 + + 41 AS col1, COUNT ( * ) AS col1 query II rowsort label-1641 @@ -9553,7 +9553,7 @@ SELECT MAX ( DISTINCT - - 37 ) AS col0, 93 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -16 -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\(\-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\(\*\) )?AS col2" at position 0 and "Int64\(\-16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, - 16 AS col2 query I rowsort label-1844 @@ -14783,7 +14783,7 @@ SELECT + ( + 28 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 46 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col1, 46 AS col1 query I rowsort @@ -15335,7 +15335,7 @@ SELECT ALL - 7 + - 95 * SUM ( ALL 67 ) + + - COUNT ( * ) AS col2 # 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 "Int64\(31\) AS col1" at position 0 and "Int64\(63\) / Int64\(44\) / 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\(31\) AS col1" at position 0 and "Int64\(63\) / Int64\(44\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 31 AS col1, 63 / 44 / + COUNT ( * ) AS col1 query I rowsort label-2960 @@ -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 Int32\) 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 @@ -15954,7 +15954,7 @@ SELECT ALL 39 * + + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -72 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-72\) 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\(\-72\) 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 - 72 AS col2, + COUNT ( * ) AS col2 query I rowsort label-3081 @@ -17884,7 +17884,7 @@ SELECT DISTINCT 26, - 72 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - 1 -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\(\*\) AS col0" at position 1 have the 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\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 75 AS col0, ( + COUNT ( * ) ) AS col0 query I rowsort label-3454 @@ -21207,7 +21207,7 @@ SELECT ALL + COUNT ( * ) * + COUNT ( * ) # 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 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\(\-4\) 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 - 4 col2, COUNT ( * ) AS col2 query I rowsort @@ -24064,7 +24064,7 @@ SELECT + 40 * - + COUNT ( * ) - - 22 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col2" at position 0 and "Int64\(60\) \+ 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\(4\) AS col2" at position 0 and "Int64\(60\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 4 AS col2, + 60 + + COUNT ( * ) AS col2 query I rowsort @@ -24141,7 +24141,7 @@ SELECT + ( - 71 ) 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 "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\(\*\) )?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 ( * ) col1, COUNT ( * ) AS col1 query I rowsort label-4666 @@ -26095,7 +26095,7 @@ SELECT - 19 + 25 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 44 -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\(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\(\*\) )?AS col2" at position 0 and "Int64\(44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) col2, 44 col2 query I rowsort label-5044 @@ -26111,7 +26111,7 @@ SELECT + COUNT ( ALL + + 28 ) # 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 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(\-8\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col2, - 8 AS col2 query I rowsort label-5047 @@ -27833,7 +27833,7 @@ SELECT ALL 44 * + + COUNT ( * ) * - + COUNT ( * ) 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 "\(\- 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 "\(\- 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 - COUNT ( * ) AS col2, + COUNT ( * ) AS col2 query I rowsort label-5380 @@ -28778,7 +28778,7 @@ SELECT COUNT ( * ) - - 30 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-58\)\) 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\(\-58\)\) 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 - - 58 AS col0, COUNT ( * ) AS col0 query I rowsort @@ -29373,7 +29373,7 @@ SELECT ALL COUNT ( ALL 1 ) 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\(\-3\) 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\(\-3\) 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 - 3 AS col1, + COUNT ( * ) AS col1 query I rowsort label-5679 @@ -30111,7 +30111,7 @@ SELECT - 59 * 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 col1" at position 0 and "Int64\(62\) \+ 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(62\) \+ CAST\(NULL AS Float64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col1, + 62 + + CAST ( NULL AS FLOAT8 ) AS col1 query I rowsort @@ -31622,7 +31622,7 @@ SELECT - COUNT ( * ) * - ( 64 ) # 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 "Int64\(\-48\) / 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 "Int64\(\-48\) / Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) col0, - 48 / + 33 AS col0 query I rowsort label-6115 @@ -36209,7 +36209,7 @@ SELECT ALL ( + ( - - COUNT ( * ) ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 35 -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\(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 "Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col0, + 35 col0 query I rowsort label-7004 @@ -37632,7 +37632,7 @@ SELECT COUNT ( * ) AS col0, + 53 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -27 -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\) AS col0" at position 1 have the same name\. Consider aliasing \("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\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col0, - 27 AS col0 query I rowsort @@ -38167,7 +38167,7 @@ SELECT + 45 + + + 90 AS col1 # 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 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\(18\) 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 + 18 AS col2, COUNT ( * ) AS col2 query I rowsort label-7379 @@ -38596,7 +38596,7 @@ SELECT 88 AS col0, 7 AS col1, + 56 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col0" at position 0 and "Int64\(24\) \* 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\(17\) AS col0" at position 0 and "Int64\(24\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 17 AS col0, + 24 * + COUNT ( * ) col0 query I rowsort label-7461 @@ -40400,7 +40400,7 @@ NULL # 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 "Int64\(\-45\) 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\(\-45\) 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 - 45 AS col0, + COUNT ( * ) AS col0 query I rowsort @@ -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 Int32\) 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 @@ -42028,7 +42028,7 @@ SELECT ( 95 ) + - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) / count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(18\) / count\(Int64\(1\)\) (AS count\(\*\) )?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 18 / + COUNT ( * ) AS col2, + 15 col2 query I rowsort @@ -43442,7 +43442,7 @@ SELECT 73 / - 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -72 -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\(\-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\(1\)\) (AS count\(\*\) )?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 ( * ) col0, - 72 AS col0 query I rowsort label-8398 @@ -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 Int32\) 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 @@ -47257,7 +47257,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -88 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 "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 + - 88 col2, + COUNT ( * ) AS col2 query II rowsort label-9135 @@ -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 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\. SELECT - 40 - + CAST ( 20 AS INTEGER ) * + COUNT ( * ) AS col0, 40 AS col0 query I rowsort @@ -48572,7 +48572,7 @@ SELECT DISTINCT 12 + + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # 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\(\*\) \* \(\- Int64\(\-28\)\) 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\) \+ count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-28\)\) 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 71 + + COUNT ( * ) * - - 28 AS col0, COUNT ( * ) AS col0 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..0c82bf6 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 Int32\)\) 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 @@ -6515,7 +6515,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1850 -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\(64\) \- Int64\(19\) \* \(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(64\) \- Int64\(19\) \* \(\- Int64\(94\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, + ( + 64 ) - + 19 * - + 94 AS col0 query I rowsort label-1235 @@ -15195,7 +15195,7 @@ SELECT DISTINCT + 59 * 48 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4012 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \+ Int64\(68\) \* Int64\(58\) 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\(68\) \+ Int64\(68\) \* Int64\(58\) 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 68 + 68 * 58 AS col1, + COUNT ( * ) AS col1 query I rowsort @@ -16567,7 +16567,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 "Int64\(46\) / Int64\(\-44\) 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\(46\) / Int64\(\-44\) 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 + 46 / - 44 AS col1, + COUNT ( * ) AS col1 query II rowsort label-3149 @@ -17963,7 +17963,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3234 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \* Int64\(33\) 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\(98\) \* Int64\(33\) 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 98 * + 33 col0, + COUNT ( * ) AS col0 query I rowsort @@ -17984,7 +17984,7 @@ SELECT - 57 + 11 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 99 -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\(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\(\*\)\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?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 - - COUNT ( * ) + + COUNT ( * ) AS col1, 99 AS col1 query II rowsort label-3416 @@ -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 Int32\) 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 @@ -22908,7 +22908,7 @@ NULL # 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 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 "Int64\(80\) 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 80 AS col2, COUNT ( * ) * COUNT ( * ) AS col2 query I rowsort label-4360 @@ -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 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\. 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 @@ -25953,7 +25953,7 @@ SELECT COALESCE ( - 54, + + 82 + - 32 + 16 * - 39 + 92 ) - + - 96 / 40 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col0" at position 0 and "Int64\(82\) \+ Int64\(2\) \+ 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\(8\) AS col0" at position 0 and "Int64\(82\) \+ Int64\(2\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 8 col0, + 82 + + 2 + COUNT ( * ) AS col0 query II rowsort label-4941 @@ -27118,7 +27118,7 @@ SELECT ALL 68 * + 45 + - 85 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 72 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 ( + + COUNT ( * ) ) AS col1, + 72 AS col1 query I rowsort label-5164 @@ -27492,7 +27492,7 @@ SELECT DISTINCT + - 12 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1624397 -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\(9\) \* Int64\(47\) \* Int64\(60\) \* Int64\(64\) \+ 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\(\*\) )?AS col1" at position 0 and "Int64\(9\) \* Int64\(47\) \* Int64\(60\) \* Int64\(64\) \+ Int64\(77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col1, 9 * 47 * 60 * 64 + + 77 AS col1 query I rowsort label-5237 @@ -29933,7 +29933,7 @@ SELECT DISTINCT - 35 / - 86 * + 21 * 60 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 "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\(Int64\(1\)\) (AS count\(\*\) )?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 + COUNT ( * ) AS col1, - 95 AS col1 query I rowsort @@ -31930,7 +31930,7 @@ SELECT + + 43 * + COUNT ( ALL + - 24 ) * + 53 * 26 + - + 84 # 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\(68\) \* Int64\(4\) \+ CASE count\(Int64\(1\)\) AS count\(\*\) WHEN \(\- Int64\(\-21\)\) THEN \(\- nullif\(Int64\(\-2\), Int64\(57\)\)\) WHEN Int64\(26\) THEN NULL END / 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 "Int64\(68\) \* Int64\(4\) \+ CASE count\(Int64\(1\)\) AS count\(\*\) WHEN \(\- Int64\(\-21\)\) THEN \(\- nullif\(Int64\(\-2\), Int64\(57\)\)\) WHEN Int64\(26\) THEN NULL END / 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 + 68 * ( 4 ) + CASE COUNT ( * ) WHEN - - 21 THEN + - NULLIF ( + - 2, 57 ) WHEN + ( + 26 ) THEN NULL END / + COUNT ( * ) AS col1, 20 col1 query I rowsort @@ -32539,7 +32539,7 @@ SELECT DISTINCT - 55 * + + 88 * + 33 AS col1, + 59 # Datafusion - Datafusion expected results: # Datafusion - Expected - -68 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(29\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(72\) \* Int64\(\-29\) THEN NULL ELSE Int64\(84\) \+ Int64\(\-16\) 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 Int64\(29\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(72\) \* Int64\(\-29\) THEN NULL ELSE Int64\(84\) \+ Int64\(\-16\) 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 - CASE 29 WHEN - COUNT ( * ) - + 72 * + - 29 THEN NULL ELSE 84 + - 16 END AS col0, COUNT ( * ) AS col0 query I rowsort @@ -39137,7 +39137,7 @@ SELECT DISTINCT NULLIF ( + 98, - - 19 ) * 77 + - 23 / - 20 + ( 58 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 16 -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\(\-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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-16\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, COUNT ( * ) * - - 16 AS col0 query I rowsort label-7469 @@ -43751,7 +43751,7 @@ SELECT ALL 54 - + 43 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 "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 99 AS col2, + COUNT ( * ) AS col2 query I rowsort label-8346 @@ -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 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\. 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 @@ -44609,7 +44609,7 @@ SELECT SUM ( + ( + + 94 ) ) 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 "Int64\(\-76\) \+ Int64\(59\) \+ Int64\(38\) \+ \(\- \(\- CAST\(NULL AS Float64\)\)\) \+ Int64\(25\) \* Int64\(13\) / Int64\(\-38\) \* 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(\-76\) \+ Int64\(59\) \+ Int64\(38\) \+ \(\- \(\- CAST\(NULL AS Float64\)\)\) \+ Int64\(25\) \* Int64\(13\) / Int64\(\-38\) \* Int64\(\-25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, - 76 + + 59 + + 38 + + - ( - CAST ( NULL AS FLOAT8 ) ) + + 25 * 13 / - 38 * - 25 AS col1 query I rowsort @@ -46568,7 +46568,7 @@ SELECT DISTINCT - 55 * - 72 - - COALESCE ( 83, - 6 / 94 ) / - ( + 28 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -149 # Datafusion - Expected - -49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \* \(\- Int64\(25\)\) \+ count\(Int64\(1\)\) AS count\(\*\) 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\(6\) \* \(\- Int64\(25\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(\-49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 6 * - + 25 + + + COUNT ( * ) AS col2, - 49 col2 query I rowsort label-8882 @@ -48157,7 +48157,7 @@ SELECT ALL 15, 94 col1 # 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 "\(\- coalesce\(Int64\(43\), max\(DISTINCT Int64\(6\)\)\)\) 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\(43\), max\(DISTINCT Int64\(6\)\)\)\) 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 - COALESCE ( 43, MAX ( DISTINCT + 6 ) ) AS col0, COUNT ( * ) AS col0 query I rowsort @@ -50801,7 +50801,7 @@ SELECT + + 39 / MAX ( DISTINCT + 22 ) + + 6 / + - 52 # Datafusion - Datafusion expected results: # Datafusion - Expected - 463 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \* Int64\(7\) \+ Int64\(13\) \* \(\- 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\(68\) \* Int64\(7\) \+ Int64\(13\) \* \(\- 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 + + 68 * + 7 + 13 * - COUNT ( * ) AS col0, + COUNT ( * ) AS col0 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_78.slt b/data/sqlite/random/expr/slt_good_78.slt index f9c04c6..147e5fd 100644 --- a/data/sqlite/random/expr/slt_good_78.slt +++ b/data/sqlite/random/expr/slt_good_78.slt @@ -6149,7 +6149,7 @@ SELECT 20 + - 51 * - - 14 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -440519 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(72\)\) \* Int64\(26\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-81\) \+ Int64\(\-87\) \* Int64\(\-71\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(71\) 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\(72\)\) \* Int64\(26\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-81\) \+ Int64\(\-87\) \* Int64\(\-71\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(71\) 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 - + 72 * 26 + + COUNT ( * ) + - 81 + + - 87 * + ( - 71 ) * - COUNT ( * ) * + ( + 71 ) AS col2, COUNT ( * ) AS col2 query I rowsort @@ -8294,7 +8294,7 @@ SELECT DISTINCT - 78 + 50 * + 19 + + 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 98 -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\(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 "Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col0, 98 AS col0 query II rowsort label-1575 @@ -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 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\. 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 @@ -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 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\. 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 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\. SELECT DISTINCT - CAST ( + COUNT ( * ) AS INTEGER ) * + 47 / + 19 AS col2, 84 AS col2 # Datafusion - Types were automatically converted from: @@ -17741,7 +17741,7 @@ SELECT + 83 + - 89 # 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 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(\-53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, - 53 AS col2 query I rowsort @@ -25505,7 +25505,7 @@ SELECT 37 * + 28 AS col0 # Datafusion - Expected - -73 # Datafusion - Expected - 162 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-73\) 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 "Int64\(\-73\) 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 ALL - 73 AS col2, + 9 * + 18, COUNT ( * ) AS col2 query I rowsort label-4847 @@ -27900,7 +27900,7 @@ SELECT ALL + 62 / - ( + + 84 ), 37 + - CAST ( SUM ( - 91 ) AS INTEGER ) * + + 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - -69 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-69\) 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\(\-69\) 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 - 69 AS col2, + COUNT ( * ) AS col2 query I rowsort @@ -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 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\. SELECT + + CAST ( + 10 AS INTEGER ) AS col1, + ( COUNT ( * ) ) AS col1 query I rowsort @@ -30408,7 +30408,7 @@ SELECT - ( - 29 ) * - 40 + - COUNT ( DISTINCT - 35 ) + - + SUM ( ALL + - 70 ) * # 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\(83\) 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\(83\) 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 + 83 AS col1, + COUNT ( * ) AS col1 query I rowsort label-5787 @@ -36761,7 +36761,7 @@ SELECT + - COUNT ( DISTINCT + + 9 ) - - CAST ( + + 17 AS INTEGER ) + - - 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) AS col1" at position 0 and "Int64\(\-33\) \+ 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\(5\) AS col1" at position 0 and "Int64\(\-33\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 5 AS col1, - 33 + + COUNT ( * ) col1 query I rowsort label-6995 @@ -37116,7 +37116,7 @@ SELECT DISTINCT - + MIN ( ALL + 11 ) - SUM ( DISTINCT - 10 ) col1 # Datafusion - Expected - -125 # Datafusion - Expected - 421252 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) \- Int64\(91\) AS col1" at position 0 and "Int64\(73\) \+ coalesce\(\(\- sum\(Int64\(84\)\)\), \(\- nullif\(\(\- Int64\(\-90\)\), sum\(Int64\(84\)\) \- Int64\(\-52\) \* Int64\(12\)\)\), \(\- Int64\(\-52\)\)\) \+ Int64\(70\) \* 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\(\-34\) \- Int64\(91\) AS col1" at position 0 and "Int64\(73\) \+ coalesce\(\(\- sum\(Int64\(84\)\)\), \(\- nullif\(\(\- Int64\(\-90\)\), sum\(Int64\(84\)\) \- Int64\(\-52\) \* Int64\(12\)\)\), \(\- Int64\(\-52\)\)\) \+ Int64\(70\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 34 - 91 AS col1, - 31 + + + 60 + + COALESCE ( ( 81 ), - 98, + - 97 / - + 31 * - 4 - COALESCE ( + - SUM ( ALL + + 96 ), + 40 ) ) * 80 * - 65 * - COUNT ( ALL - 72 ) - - 23, 73 + COALESCE ( - SUM ( 84 ), - + NULLIF ( - - 90, + SUM ( ALL 84 ) - - 52 * + 12 ), - - 52 ) + 70 * + + COUNT ( * ) AS col1 query I rowsort @@ -39166,7 +39166,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -20 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) \* Int64\(\-35\) / Int64\(35\) 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\(20\) \* Int64\(\-35\) / Int64\(35\) 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 + 20 * - 35 / 35 col2, COUNT ( * ) AS col2 query I rowsort label-7457 @@ -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 Int32\) \* 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 @@ -42248,7 +42248,7 @@ SELECT ALL + 29 + - 72 - - - 79 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2412 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \* Int64\(24\) \+ Int64\(84\) 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\(97\) \* Int64\(24\) \+ Int64\(84\) 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 + ( + 97 ) * 24 + + + 84 AS col0, COUNT ( * ) AS col0 query I rowsort label-8044 @@ -43765,7 +43765,7 @@ SELECT ALL + + 42 + - 67 + + COUNT ( * ) + - - 77 * + 97 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-3\) \+ Int64\(77\) AS col2" at position 0 and "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 "Int64\(\-3\) \+ Int64\(77\) AS col2" at position 0 and "Int64\(\-37\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 3 + 77 AS col2, - 37 * + COUNT ( * ) AS col2 query I rowsort label-8332 @@ -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 Int32\)\) 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 @@ -49373,7 +49373,7 @@ SELECT COUNT ( + - NULLIF ( + - 24, + ( 90 ) + + ( ( + CAST ( NULL AS FLOAT8 ) ) # 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\(\*\) AS col0" at position 0 and "Int64\(44\) \+ Int64\(6\) \+ \(\- 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\(\*\) )?AS col0" at position 0 and "Int64\(44\) \+ Int64\(6\) \+ \(\- Int64\(79\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, 44 + 6 + ( - + 79 ) AS col0 query I rowsort @@ -49672,7 +49672,7 @@ SELECT ALL 47 + 27 - + 30 + - 39 AS col1 # 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 "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "Int64\(\-28\) \* 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\(\-28\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + ( - - COUNT ( * ) ) AS col1, - 28 * + + COUNT ( * ) AS col1 query I rowsort label-9462 @@ -49883,7 +49883,7 @@ SELECT 32 * + + 68 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) 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\(76\) 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 76 AS col2, COUNT ( * ) col2 query II rowsort diff --git a/data/sqlite/random/expr/slt_good_79.slt b/data/sqlite/random/expr/slt_good_79.slt index 3b6cd7a..e18fdb0 100644 --- a/data/sqlite/random/expr/slt_good_79.slt +++ b/data/sqlite/random/expr/slt_good_79.slt @@ -2285,7 +2285,7 @@ SELECT DISTINCT + + 6 + + + 86 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 154 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \+ Int64\(68\) 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\(86\) \+ Int64\(68\) 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 86 + + 68 AS col1, ( COUNT ( * ) ) AS col1 query I rowsort @@ -14684,7 +14684,7 @@ SELECT ALL 92 + - 94 / + + 8 AS col0, + COUNT ( 28 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-49\)\) \+ \(\- sum\(Int64\(48\)\)\) 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\(\-49\)\) \+ \(\- sum\(Int64\(48\)\)\) 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 ( - 49 ) + - SUM ( ALL + 48 ) col1, COUNT ( * ) AS col1 query I rowsort label-2804 @@ -16295,7 +16295,7 @@ SELECT + SUM ( 7 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - 4484 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) \* count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-59\) \* 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\(46\) \* count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(\-59\) \* Int64\(\-76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 46 * + COUNT ( * ) * + COUNT ( * ) AS col1, - 59 * - 76 AS col1 query I rowsort @@ -17789,7 +17789,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -2436 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) \* Int64\(42\) 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\(\-58\) \* Int64\(42\) 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 - 58 * + 42 AS col2, + COUNT ( * ) AS col2 query I rowsort label-3395 @@ -21277,7 +21277,7 @@ SELECT DISTINCT 8 - 19 * - + 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - 4559 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col2" at position 0 and "count\(Int64\(73\)\) \* Int64\(32\) \+ Int64\(14\) \+ Int64\(94\) \* Int64\(48\) \+ 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\) AS col2" at position 0 and "count\(Int64\(73\)\) \* Int64\(32\) \+ Int64\(14\) \+ Int64\(94\) \* Int64\(48\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 67 col2, + COUNT ( ALL + 73 ) * + 32 + 14 + 94 * + 48 + COUNT ( * ) AS col2 query I rowsort @@ -22123,7 +22123,7 @@ SELECT 41 + - 93 * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -1343 -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\(84\) \* Int64\(\-3\) \+ Int64\(\-74\) \- Int64\(17\) \+ \(\- Int64\(\-20\)\) \* 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(84\) \* Int64\(\-3\) \+ Int64\(\-74\) \- Int64\(17\) \+ \(\- Int64\(\-20\)\) \* Int64\(\-50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col0, 84 * - 3 + - 74 - 17 + - - 20 * + - 50 AS col0 query I rowsort label-4226 @@ -22751,7 +22751,7 @@ SELECT - + COALESCE ( - 84, - 21 + + 88 * 26 ) * + + ( - + 42 ) + 57 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \+ Int64\(\-77\) AS col1" at position 0 and "Int64\(17\) \* \(\- Int64\(\-2\)\) \+ 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 "Int64\(30\) \+ Int64\(\-77\) AS col1" at position 0 and "Int64\(17\) \* \(\- Int64\(\-2\)\) \+ Int64\(35\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 30 + - 77 AS col1, + 17 * - - 2 + + 35 * COUNT ( * ) AS col1 query I rowsort label-4343 @@ -23359,7 +23359,7 @@ SELECT - 6 / - + 92 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -425712 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-28\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(49\) \+ Int64\(\-12\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(86\)\) \* Int64\(\-55\) \* Int64\(90\) 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\(\-28\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(49\) \+ Int64\(\-12\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(86\)\) \* Int64\(\-55\) \* Int64\(90\) 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 - 28 * + - COUNT ( * ) / 49 + - 12 + - COUNT ( * ) * - + 86 * - 55 * 90 AS col0, + COUNT ( * ) col0 query I rowsort @@ -45248,7 +45248,7 @@ SELECT DISTINCT 39 AS col2, + 47 + + MIN ( DISTINCT + 88 ) + - - 87 * - 7 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 6672 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col1" at position 0 and "Int64\(7\) \* Int64\(87\) \+ Int64\(\-79\) \+ Int64\(74\) \* 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 "Int64\(91\) AS col1" at position 0 and "Int64\(7\) \* Int64\(87\) \+ Int64\(\-79\) \+ Int64\(74\) \* Int64\(83\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 91 col1, + 7 * + 87 + - 79 + 74 * + 83 * + COUNT ( * ) AS col1 query I rowsort @@ -47137,7 +47137,7 @@ SELECT ALL + ( - + COUNT ( * ) ) + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 78 -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\(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\(\*\) )?AS col1" at position 0 and "Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, 78 AS col1 query I rowsort label-8993 @@ -50573,7 +50573,7 @@ SELECT ALL - 26 + - MIN ( ALL 68 ) * - COALESCE ( + + 89, + + 75 + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -48 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) AS col0" at position 0 and "\(\- \(\- coalesce\(Int64\(80\), Int64\(71\), Int64\(84\)\)\)\) \- 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 "\(\- \(\- coalesce\(Int64\(80\), Int64\(71\), Int64\(84\)\)\)\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 48 col0, - ( + - COALESCE ( + 80, 71, 84 ) ) - + COUNT ( * ) AS col0 query I rowsort @@ -51167,7 +51167,7 @@ SELECT + 13 / - - 74 - - 9 + + + 18 # 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\(23\)\) \- Int64\(\-74\) 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\(23\)\) \- Int64\(\-74\) 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 - + 23 - + - 74 AS col0, + COUNT ( * ) AS col0 query I rowsort @@ -51392,7 +51392,7 @@ SELECT DISTINCT - 72, + 29 AS col2 # Datafusion - Expected - -43 # Datafusion - Expected - 62 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) 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\(62\) 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 DISTINCT - 43 col0, 62 AS col1, + COUNT ( * ) AS col1 query II rowsort diff --git a/data/sqlite/random/expr/slt_good_8.slt b/data/sqlite/random/expr/slt_good_8.slt index 4e30958..871cca7 100644 --- a/data/sqlite/random/expr/slt_good_8.slt +++ b/data/sqlite/random/expr/slt_good_8.slt @@ -294,7 +294,7 @@ SELECT DISTINCT 35 + + 30 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \+ \(\- \(\- Int64\(53\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(44\) / 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\(10\) \+ \(\- \(\- Int64\(53\)\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(44\) / Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( 10 ) + - ( - + 53 ) + + COUNT ( * ) AS col2, + 44 / 46 AS col2 query I rowsort @@ -3017,7 +3017,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -75 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) 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\(\-75\) 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 + - 75 AS col1, COUNT ( * ) AS col1 query I rowsort @@ -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 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\. 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 @@ -14250,7 +14250,7 @@ SELECT ALL + MIN ( DISTINCT + 82 ) + + - 11 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col1" at position 0 and "Int64\(31\) / 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\(86\) AS col1" at position 0 and "Int64\(31\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 86 col1, + 31 / + ( COUNT ( * ) ) AS col1 query I rowsort @@ -15534,7 +15534,7 @@ SELECT ALL - COUNT ( * ), - 83 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -38 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 "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 DISTINCT - 38 AS col2, COUNT ( * ) col2 query II rowsort @@ -20077,7 +20077,7 @@ SELECT - ( + 16 ) * + - 67 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 Float64\)\) AS col0" at position 0 and "Int64\(23\) \+ 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\)\) AS col0" at position 0 and "Int64\(23\) \+ 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 FLOAT8 ) col0, 23 + COUNT ( * ) AS col0 query I rowsort label-3810 @@ -20706,7 +20706,7 @@ SELECT 31 + - 94 * + NULLIF ( 38, - CAST ( + NULLIF ( + COALESCE ( + + 46, + 48 # Datafusion - Datafusion expected results: # Datafusion - Expected - -858 # Datafusion - Expected - -49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(29\)\) / Int64\(\-51\) \- Int64\(39\) \* Int64\(22\) AS col0" at position 0 and "Int64\(\-49\) \* 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\)\) / Int64\(\-51\) \- Int64\(39\) \* Int64\(22\) AS col0" at position 0 and "Int64\(\-49\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 29 / - 51 - + 39 * + 22 AS col0, - 49 * COUNT ( * ) AS col0 query I rowsort label-3930 @@ -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 Int32\) \+ 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 @@ -27032,7 +27032,7 @@ SELECT 71 + 37, 10 AS col2 # Datafusion - Expected - 20 # Datafusion - Expected - 61 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(96\) 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\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(96\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 20 / COUNT ( * ) AS col1, + 61, 96 AS col1 query I rowsort label-5130 @@ -32707,7 +32707,7 @@ SELECT DISTINCT + 59 * + - 6 * 72 + - 14 AS col1 # Datafusion - Expected - 1 # Datafusion - Expected - 15 # Datafusion - Expected - -30 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) col2, + 15 AS col2, - + 35 - 7 + 12 AS col2 query I rowsort label-6203 @@ -36490,7 +36490,7 @@ SELECT 52 * + 94 * + - 62 # 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 "Int64\(10\) 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\(10\) 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 10 AS col0, COUNT ( * ) AS col0 query II rowsort @@ -38479,7 +38479,7 @@ SELECT ALL COUNT ( * ) * + 9 + - 23 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -32 -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\(\-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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 + COUNT ( * ) AS col1, - 32 AS col1 query I rowsort @@ -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 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\. SELECT ALL + 69 AS col2, CAST ( NULL AS INTEGER ) + + COUNT ( * ) + + COUNT ( * ) AS col2, 45 * COUNT ( * ) query I rowsort @@ -40321,7 +40321,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col0" at position 0 and "sum\(Int64\(71\)\) / Int64\(71\) \* 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\(68\) AS col0" at position 0 and "sum\(Int64\(71\)\) / Int64\(71\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 68 AS col0, SUM ( ALL 71 ) / + 71 * + COUNT ( * ) AS col0 query I rowsort @@ -41209,13 +41209,13 @@ SELECT - CAST ( + + 15 AS INTEGER ) + + COUNT ( * ) - 78 + 37 # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) 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\(52\) 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 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 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\. 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 @@ -43688,7 +43688,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 "count\(Int64\(1\)\) AS count\(\*\) \* \(\- 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\(\*\) )?AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- 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 + COUNT ( * ) AS col0, COUNT ( * ) * - COUNT ( * ) + COUNT ( * ) AS col0 query I rowsort @@ -47094,7 +47094,7 @@ SELECT 58 + - 62 col0 # 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 "Int64\(93\) 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\(93\) 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 93 col2, + COUNT ( * ) AS col2 query I rowsort @@ -52470,7 +52470,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 26 -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\(74\) \+ \(\- Int64\(\-28\)\) \+ Int64\(\-24\) \* \(\- coalesce\(Int64\(54\), Int64\(\-74\)\)\) / coalesce\(Int64\(91\), Int64\(67\)\) / Int64\(30\) \- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(74\) \+ \(\- Int64\(\-28\)\) \+ Int64\(\-24\) \* \(\- coalesce\(Int64\(54\), Int64\(\-74\)\)\) / coalesce\(Int64\(91\), Int64\(67\)\) / Int64\(30\) \- Int64\(76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + COUNT ( * ) AS col0, ( 74 ) + - - 28 + - 24 * - + COALESCE ( 54, - 74 ) / COALESCE ( 91, 67 ) / 30 - + 76 col0 query II rowsort diff --git a/data/sqlite/random/expr/slt_good_80.slt b/data/sqlite/random/expr/slt_good_80.slt index 5cfea3e..5580a3a 100644 --- a/data/sqlite/random/expr/slt_good_80.slt +++ b/data/sqlite/random/expr/slt_good_80.slt @@ -3267,7 +3267,7 @@ SELECT ALL CASE CASE - 42 WHEN 68 / 46 + - 35 THEN NULL WHEN 6 THEN - 42 ELSE + # Datafusion - Datafusion expected results: # Datafusion - Expected - -41 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) \+ count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(\-42\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?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 - 42 + COUNT ( * ) AS col0, + ( 27 ) AS col0 query I rowsort @@ -7574,7 +7574,7 @@ SELECT ALL COUNT ( * ) * - + ( + + COUNT ( * ) ) * + 40 * - 45 + - CASE - ( COUN # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 33 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) col2, 33 AS col2 query II rowsort label-1446 @@ -11124,7 +11124,7 @@ SELECT 24 AS col2, + ( - - 70 ) + - 93 # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 "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 ALL 53 AS col0, COUNT ( * ) AS col0 query I rowsort label-2122 @@ -13854,7 +13854,7 @@ SELECT 32 + 88 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1182 -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\(8\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(40\) \+ nullif\(Int64\(18\), Int64\(59\) \+ Int64\(86\)\) THEN \(\- Int64\(49\)\) ELSE \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(91\) \* Int64\(31\) END\) \+ Int64\(27\) \+ \(\- Int64\(28\)\) \* Int64\(2\) \- Int64\(23\) \* 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\(\*\) )?AS col1" at position 0 and "\(\- CASE Int64\(8\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(40\) \+ nullif\(Int64\(18\), Int64\(59\) \+ Int64\(86\)\) THEN \(\- Int64\(49\)\) ELSE \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(91\) \* Int64\(31\) END\) \+ Int64\(27\) \+ \(\- Int64\(28\)\) \* Int64\(2\) \- Int64\(23\) \* Int64\(70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col1, - CASE 8 WHEN - COUNT ( * ) * 40 + NULLIF ( 18, 59 + + + 86 ) THEN - + 49 ELSE - COUNT ( * ) * + 91 * 31 END + 27 + - + 28 * + 2 - + 23 * + 70 AS col1 query I rowsort @@ -14059,7 +14059,7 @@ SELECT DISTINCT + 53 + - 98 + + 29 # Datafusion - Datafusion expected results: # Datafusion - Expected - -11 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) \+ Int64\(44\) 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\(\-55\) \+ Int64\(44\) 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 - 55 + 44 AS col2, COUNT ( * ) AS col2 query I rowsort @@ -16224,7 +16224,7 @@ SELECT + 40 * + COUNT ( * ) * - 25, + 83 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2121 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* Int64\(\-85\) \+ Int64\(4\) AS col0" at position 0 and "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\(25\) \* Int64\(\-85\) \+ Int64\(4\) AS col0" at position 0 and "Int64\(\-75\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 25 * - 85 + + 4 AS col0, - 75 / + COUNT ( * ) col0 query I rowsort @@ -19745,7 +19745,7 @@ SELECT - 14 + + + 64 # Datafusion - Datafusion expected results: # Datafusion - Expected - -93 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-93\) AS col1" at position 0 and "Int64\(46\) / Int64\(\-71\) \* nullif\(Int64\(37\), 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\(\-93\) AS col1" at position 0 and "Int64\(46\) / Int64\(\-71\) \* nullif\(Int64\(37\), Int64\(71\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 93 AS col1, 46 / - 71 * NULLIF ( 37, 71 ) * + COUNT ( * ) AS col1 query I rowsort @@ -21634,7 +21634,7 @@ SELECT ALL - 54 + - 89 * - + 29 + + 64 AS col0 # 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 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) col0, 34 AS col0 query I rowsort @@ -29564,7 +29564,7 @@ SELECT ALL - 74 * - 36 AS col0, 63 * - 24 + SUM ( + - ( + - 71 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-26\) \* \(\- 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\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(\-26\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 19 + + COUNT ( * ) AS col0, - 26 * - COUNT ( * ) AS col0 query I rowsort @@ -30773,7 +30773,7 @@ SELECT ALL 23 * - ( + - 39 ) * + - 79 * + + 40 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3854 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) \* Int64\(94\) 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\(41\) \* Int64\(94\) 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 41 * 94 AS col0, COUNT ( * ) col0 query I rowsort label-5860 @@ -31067,7 +31067,7 @@ SELECT COUNT ( * ) * + 12 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -346860 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) \* Int64\(\-94\) \* Int64\(45\) \* \(\- \(\- 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 "Int64\(82\) \* Int64\(\-94\) \* Int64\(45\) \* \(\- \(\- 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 82 * + - 94 * + + 45 * - - COUNT ( * ) AS col1, COUNT ( * ) col1 query I rowsort label-5916 @@ -34023,7 +34023,7 @@ SELECT DISTINCT 34 * 86 AS col0 # 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 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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 COUNT ( * ) AS col1, 34 AS col1 query I rowsort label-6474 @@ -35091,7 +35091,7 @@ SELECT ALL - - ( + - 91 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -58 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- sum\(DISTINCT Int64\(\-58\)\)\)\) 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\(DISTINCT Int64\(\-58\)\)\)\) 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 - - SUM ( DISTINCT - 58 ) AS col0, + COUNT ( * ) AS col0 query I rowsort @@ -42305,7 +42305,7 @@ SELECT 28 - + ( + SUM ( ALL 44 ) ) * - - 39 - - - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - -26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \* count\(Int64\(1\)\) AS count\(\*\) 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\(15\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(\-26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 15 * + COUNT ( * ) AS col1, - 26 AS col1 query I rowsort label-8055 @@ -48644,7 +48644,7 @@ SELECT DISTINCT 95 - - 46 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - 136 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col0" at position 0 and "Int64\(89\) \+ Int64\(46\) / \(\- \(\- 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\(77\) AS col0" at position 0 and "Int64\(89\) \+ Int64\(46\) / \(\- \(\- 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 77 AS col0, 89 + + 46 / - - COUNT ( * ) + + COUNT ( * ) AS col0 query I rowsort @@ -50753,7 +50753,7 @@ SELECT ALL + 62 + - 97 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 32 -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\(33\) \- 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\(33\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, 33 - + COUNT ( * ) AS col1 query I rowsort label-9668 diff --git a/data/sqlite/random/expr/slt_good_81.slt b/data/sqlite/random/expr/slt_good_81.slt index 572efdf..31ed6b4 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 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\. 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 @@ -1578,7 +1578,7 @@ SELECT - COUNT ( * ) - 46 * + - ( - + 18 ) 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 "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\(\*\) )?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 ( * ) AS col1, + COUNT ( * ) AS col1 query I rowsort @@ -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 Int32\)\)\) \+ 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 @@ -7967,7 +7967,7 @@ SELECT - 11 * + 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - -63 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) 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\(\-63\) 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 ( - 63 ) AS col0, COUNT ( * ) col0 query I rowsort label-1518 @@ -10588,7 +10588,7 @@ SELECT DISTINCT 33 / + 1 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - 1 -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\(\*\) AS col1" at position 1 have the 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\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 7 AS col1, + COUNT ( * ) AS col1 query I rowsort @@ -14761,7 +14761,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -72 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-72\), Int64\(\-15\) \* Int64\(84\)\) 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\(\-72\), Int64\(\-15\) \* Int64\(84\)\) 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 ( - 72, - 15 * + 84 ) AS col2, COUNT ( * ) AS col2 query I rowsort @@ -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 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\. SELECT - AVG ( ALL + 35 ) + - 19 * + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col1, 71 AS col1 query I rowsort label-2819 @@ -14859,7 +14859,7 @@ SELECT 61 - - + 7 * + 90 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 2731 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT Int64\(79\)\) / Int64\(90\) AS col0" at position 0 and "Int64\(30\) \* \(\- Int64\(\-1\)\) \* Int64\(91\) \+ 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\(DISTINCT Int64\(79\)\) / Int64\(90\) AS col0" at position 0 and "Int64\(30\) \* \(\- Int64\(\-1\)\) \* Int64\(91\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT SUM ( DISTINCT 79 ) / + 90 AS col0, 30 * - - 1 * 91 + COUNT ( * ) AS col0 query I rowsort label-2833 @@ -16537,7 +16537,7 @@ SELECT DISTINCT - MAX ( 78 ) * - 21 * SUM ( 60 ) + + MIN ( DISTINCT + NULLIF ( - # 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\(\-74\) \+ 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\(\-74\) \+ 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 DISTINCT - 74 + + + COUNT ( * ) AS col2, COUNT ( * ) col2 query I rowsort label-3151 @@ -18521,7 +18521,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -85 # Datafusion - Expected - 118 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(39\) \+ 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\(\-86\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(39\) \+ Int64\(79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 86 + + COUNT ( * ) AS col2, + 39 + 79 AS col2 query II 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 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\. SELECT ALL - 94 + - CAST ( NULL AS INTEGER ) AS col0, + 62 + 13 * + 71 * + CAST ( COUNT ( * ) AS INTEGER ) AS col0 query I rowsort label-3646 @@ -20312,7 +20312,7 @@ SELECT DISTINCT + - 5 * + 85 + - + 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - -138 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) \- Int64\(75\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(14\)\) / Int64\(52\) / max\(Int64\(53\)\) \* \(\- 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 "Int64\(\-62\) \- Int64\(75\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(14\)\) / Int64\(52\) / max\(Int64\(53\)\) \* \(\- 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 - 62 - + + 75 + - + COUNT ( * ) + - ( + + 14 ) / 52 / MAX ( + 53 ) * - COUNT ( * ) AS col1, COUNT ( * ) AS col1 query I rowsort label-3878 @@ -20944,7 +20944,7 @@ SELECT ALL + 89 * 38 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 41 -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\(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 "Int64\(41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, 41 AS col1 query I rowsort label-3998 @@ -29448,7 +29448,7 @@ SELECT ALL - 28 * 1 * - 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col2" at position 0 and "Int64\(\-4\) \+ 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\) AS col2" at position 0 and "Int64\(\-4\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 57 AS col2, - 4 + COUNT ( * ) AS col2 query I rowsort @@ -29572,7 +29572,7 @@ SELECT ALL + - 10 AS col2, + 61 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - 3048 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col2" at position 0 and "Int64\(44\) \- Int64\(91\) \* 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 "Int64\(75\) AS col2" at position 0 and "Int64\(44\) \- Int64\(91\) \* Int64\(\-33\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 75 col2, 44 - + 91 * - 33 + COUNT ( * ) AS col2 query I rowsort label-5641 @@ -30359,7 +30359,7 @@ SELECT - + MIN ( DISTINCT 51 ) col2 # 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\(\-2\)\) 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\(\-2\)\) 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 - - 2 AS col2, COUNT ( * ) AS col2 query I rowsort @@ -32835,7 +32835,7 @@ SELECT ALL SUM ( - + 36 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - 1 -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\(\*\) AS col0" at position 1 have the 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\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 95 AS col0, COUNT ( * ) AS col0 query II rowsort @@ -32983,7 +32983,7 @@ SELECT + 28 * + - 48 + + 43 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \* count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(23\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(97\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 23 * COUNT ( * ) AS col2, + 97 AS col2 query I rowsort label-6289 @@ -33155,7 +33155,7 @@ SELECT - 38 * + 13 + - 69 AS col1 # 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 "CAST\(NULL AS Float64\) \+ \(\- count\(Int64\(\-27\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(72\) \* 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 Float64\) \+ \(\- count\(Int64\(\-27\)\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(72\) \* Int64\(\-30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS FLOAT8 ) + + - COUNT ( - 27 ) + + COUNT ( * ) AS col1, 72 * + - 30 AS col1 query I rowsort label-6321 @@ -36165,7 +36165,7 @@ SELECT ALL + 71 * - 51 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - -2986 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(79\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- nullif\(Int64\(62\), count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(66\)\)\) \* Int64\(48\) \+ 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(79\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "\(\- nullif\(Int64\(62\), count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(66\)\)\) \* Int64\(48\) \+ Int64\(\-10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) + 79 + COUNT ( * ) AS col1, ( - NULLIF ( 62, ( + COUNT ( * ) ) + 66 ) ) * + 48 + - 10 col1 query I rowsort label-6899 @@ -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 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\. 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 @@ -39716,7 +39716,7 @@ SELECT ALL MIN ( ALL + 17 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 98 -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\(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 "Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col2, 98 AS col2 query I rowsort label-7576 @@ -41994,7 +41994,7 @@ SELECT ALL - ( + MAX ( DISTINCT + - 19 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - 6735 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col1" at position 0 and "Int64\(91\) \* 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 "Int64\(11\) AS col1" at position 0 and "Int64\(91\) \* Int64\(74\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 11 AS col1, 91 * + 74 + COUNT ( * ) AS col1 query II rowsort label-8009 @@ -45286,7 +45286,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-28\)\) 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\(\-28\)\) 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 + - ( + - 28 ) AS col1, COUNT ( * ) AS col1 query I rowsort label-8640 @@ -46931,7 +46931,7 @@ SELECT + 94 * + - 20 AS col2 # 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 "count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, 87 AS col2 query I rowsort @@ -48591,7 +48591,7 @@ SELECT DISTINCT + 91 * - COUNT ( - 62 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -58 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) 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\(\-58\) 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 - 58 AS col2, COUNT ( * ) AS col2 query I rowsort label-9268 @@ -50382,7 +50382,7 @@ SELECT - 96 + - 31 * - + 74 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -81 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 "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 ALL - 81 AS col1, COUNT ( * ) AS col1 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_82.slt b/data/sqlite/random/expr/slt_good_82.slt index 90133e9..b0ee2b1 100644 --- a/data/sqlite/random/expr/slt_good_82.slt +++ b/data/sqlite/random/expr/slt_good_82.slt @@ -4793,7 +4793,7 @@ SELECT ALL 84 AS col2, 57 * + + 13 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4350 # Datafusion - Expected - 58520 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \* Int64\(\-75\) AS col1" at position 0 and "Int64\(55\) \* Int64\(\-14\) \* \(\- 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\(58\) \* Int64\(\-75\) AS col1" at position 0 and "Int64\(55\) \* Int64\(\-14\) \* \(\- Int64\(76\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + 58 * - 75 AS col1, 55 * - 14 * + ( - + ( 76 ) ) * COUNT ( * ) AS col1 query II rowsort label-915 @@ -5478,7 +5478,7 @@ SELECT ALL - 62 + 47 + - 59 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -669 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) \* Int64\(30\) \+ sum\(DISTINCT Int64\(52\)\) \- count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-36\) / Int64\(\-17\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ 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 "Int64\(\-24\) \* Int64\(30\) \+ sum\(DISTINCT Int64\(52\)\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(\-36\) / Int64\(\-17\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 24 * + + 30 + + SUM ( DISTINCT + 52 ) - COUNT ( * ) AS col2, - 36 / - 17 + - COUNT ( * ) + + - 92 AS col2 query I rowsort label-1046 @@ -10005,7 +10005,7 @@ SELECT + 26 + 20 AS col2, - 90 AS col0 # 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 "Int64\(59\) 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\(59\) 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 + 59 AS col2, COUNT ( * ) AS col2 query I rowsort @@ -11312,7 +11312,7 @@ SELECT NULLIF ( + + 29, + 75 ) AS col1, + 98 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(62\), Int64\(99\) \* \(\- Int64\(\-96\)\) \- Int64\(93\)\)\) \+ \(\- \(\- Int64\(85\)\)\) \+ 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 "\(\- nullif\(Int64\(62\), Int64\(99\) \* \(\- Int64\(\-96\)\) \- Int64\(93\)\)\) \+ \(\- \(\- Int64\(85\)\)\) \+ 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 - NULLIF ( 62, 99 * - - 96 - + 93 ) + - - ( + 85 ) + COUNT ( * ) AS col2, - COUNT ( * ) AS col2 query I rowsort @@ -11339,7 +11339,7 @@ SELECT + COUNT ( * ) / - + 23 - + COUNT ( * ) - 42 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -869 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) \* Int64\(79\) \* count\(Int64\(1\)\) AS count\(\*\) 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\(\-11\) \* Int64\(79\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "\(\- Int64\(\-70\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 11 * + + 79 * + COUNT ( * ) AS col2, - ( - 70 ) AS col2 query I rowsort @@ -11827,7 +11827,7 @@ SELECT - 75 * + 37 + - + 36 * + + SUM ( + 17 ) # Datafusion - Expected - -84 # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) 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\(\-84\) 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 - 84 AS col1, COUNT ( * ) AS col1, - - CAST ( NULL AS FLOAT8 ) query II rowsort label-2255 @@ -13898,7 +13898,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -21 -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\(\*\) \* 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\(\*\) )?AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col1, COUNT ( * ) * - 21 AS col1 query I rowsort label-2646 @@ -13941,7 +13941,7 @@ SELECT DISTINCT SUM ( ALL - 78 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -86 # Datafusion - Expected - 4897 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) \- count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-76\) \+ Int64\(59\) \* Int64\(84\) \+ 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\(\-85\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(\-76\) \+ Int64\(59\) \* Int64\(84\) \+ Int64\(17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( - 85 ) - + COUNT ( * ) AS col1, - 76 + + 59 * + 84 + 17 AS col1 query I rowsort label-2654 @@ -17074,7 +17074,7 @@ SELECT + 48 * + 6 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -76 -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\(\-76\) \* 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 "Int64\(\-76\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, - 76 * COUNT ( * ) AS col0 query I rowsort label-3252 @@ -19015,7 +19015,7 @@ SELECT + 85 * - MIN ( 23 ) # 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\(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 "count\(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 + COUNT ( ALL 83 ) AS col2, COUNT ( * ) AS col2 query I rowsort label-3625 @@ -24869,7 +24869,7 @@ SELECT ALL + COUNT ( * ) + 86 col1 # 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\(4\) \* \(\- \(\- Int64\(44\)\)\) \* \(\- CASE Int64\(34\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- avg\(Int64\(73\)\)\) \+ Int64\(93\) WHEN Int64\(23\) 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 "count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(4\) \* \(\- \(\- Int64\(44\)\)\) \* \(\- CASE Int64\(34\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- avg\(Int64\(73\)\)\) \+ Int64\(93\) WHEN Int64\(23\) THEN NULL END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) + + COUNT ( * ) col1, 4 * - ( - + 44 ) * ( - + CASE + 34 WHEN + COUNT ( * ) THEN + - COUNT ( * ) + - + AVG ( 73 ) + + 93 WHEN + + 23 THEN NULL END ) AS col1 query II rowsort label-4740 @@ -31878,7 +31878,7 @@ SELECT ALL - + 2 * + 28 * - + NULLIF ( 45, + - 53 / + 94 * + - 97 + - 41 ) * 3 c # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -9 -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\) \- count\(DISTINCT 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\(\*\) )?AS col2" at position 0 and "Int64\(\-8\) \- count\(DISTINCT Int64\(80\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col2, - 8 - + COUNT ( DISTINCT 80 ) AS col2 query I rowsort label-6079 @@ -32157,7 +32157,7 @@ SELECT ALL + 73 * - 32 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -33 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) 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\(\-33\) 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 - 33 col2, COUNT ( * ) AS col2 query II rowsort @@ -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 Int32\)\) 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 @@ -39903,7 +39903,7 @@ SELECT 83 * + 47 * + 34 * + 71 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4148 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \* Int64\(61\) 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\(68\) \* Int64\(61\) 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 68 * 61 col2, COUNT ( * ) AS col2 query I rowsort label-7605 @@ -47728,7 +47728,7 @@ SELECT - 84 * - 43 * - 26 * - ( NULLIF ( + 45, - COUNT ( * ) ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - -2808 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(67\) \* Int64\(\-43\) \+ 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\(49\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(67\) \* Int64\(\-43\) \+ Int64\(73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 49 * + + COUNT ( * ) AS col0, 67 * - 43 + + ( + 73 ) AS col0 query I rowsort @@ -52131,7 +52131,7 @@ NULL # 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 col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(3\) / 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\(11\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(3\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 11 AS col1, COUNT ( * ) * ( + 3 ) / + COUNT ( * ) AS col1 query I rowsort label-9929 @@ -52416,7 +52416,7 @@ SELECT 86 + 63 - + 93 AS col0 # 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 "Int64\(18\) / 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 "Int64\(\-45\) AS col0" at position 0 and "Int64\(18\) / Int64\(50\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 45 col0, 18 / + 50 * + COUNT ( * ) AS col0 query I rowsort label-9983 diff --git a/data/sqlite/random/expr/slt_good_83.slt b/data/sqlite/random/expr/slt_good_83.slt index ecb9242..a55cfb8 100644 --- a/data/sqlite/random/expr/slt_good_83.slt +++ b/data/sqlite/random/expr/slt_good_83.slt @@ -1769,7 +1769,7 @@ SELECT + 80 + + 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) 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\) 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 col1, COUNT ( * ) col1 query I rowsort @@ -4048,7 +4048,7 @@ SELECT ALL + 33 - + 80 col2 # 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 "Int64\(\-26\) / \(\- \(\- 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\(\*\) )?AS col2" at position 0 and "Int64\(\-26\) / \(\- \(\- Int64\(80\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, - 26 / - ( - + 80 ) col2 query I rowsort label-767 @@ -7499,7 +7499,7 @@ SELECT + - 56 * - + 83 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -2170 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(62\) \* Int64\(\-35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, + 62 * - 35 AS col2 query II rowsort label-1424 @@ -12352,7 +12352,7 @@ SELECT 60 * - 35 + - 54 + - - 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \+ Int64\(\-19\) / count\(Int64\(1\)\) AS count\(\*\) 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\(39\) \+ Int64\(\-19\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(\-77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 39 + - 19 / + COUNT ( * ) col2, - 77 AS col2 query I rowsort @@ -15253,7 +15253,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - -17 -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 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 "Int64\(72\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(\-17\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( 72 ) + + COUNT ( * ) + + COUNT ( * ) AS col0, - 17 AS col0 query I rowsort label-2909 @@ -17170,7 +17170,7 @@ SELECT DISTINCT + 83 / + - 32 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-7\) 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\) 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 col2, COUNT ( * ) AS col2 query I rowsort label-3272 @@ -18068,7 +18068,7 @@ SELECT ALL COUNT ( * ) / + 91 AS col0 # 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 "Int64\(10\) 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 "Int64\(10\) 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 10 AS col1, COUNT ( * ) * COUNT ( * ) AS col1 query I rowsort @@ -20668,7 +20668,7 @@ SELECT + 97 + 44 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 "CASE Int64\(11\) WHEN Int64\(23\) THEN Int64\(53\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN 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\(11\) WHEN Int64\(23\) THEN Int64\(53\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN 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 11 WHEN + 23 THEN + 53 WHEN COUNT ( * ) THEN NULL END AS col1, COUNT ( * ) AS col1 query II rowsort @@ -32787,7 +32787,7 @@ SELECT ALL - + COUNT ( * ), SUM ( DISTINCT + - 67 ) AS col1 # Datafusion - Expected - 1 # Datafusion - Expected - 72 # Datafusion - Expected - 24 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, 72 col1, + 24 query I rowsort label-6245 @@ -32946,7 +32946,7 @@ SELECT DISTINCT 15 * 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 55 -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\(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 "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 ALL COUNT ( * ) AS col1, + 55 AS col1 query I rowsort @@ -36873,7 +36873,7 @@ SELECT ALL 91 * + 79 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -49 -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\(\-31\) \- 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 "Int64\(\-31\) \- Int64\(18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, - 31 - 18 AS col2 query I rowsort @@ -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 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\. SELECT ALL 6 - 71 - - NULLIF ( + + 50, + + 68 + CAST ( + COUNT ( * ) AS INTEGER ) * + - 28 ) * - - MIN ( + + 14 ) col1, COUNT ( * ) * 55 col1 query I rowsort @@ -38467,7 +38467,7 @@ SELECT ALL 55 * + 25 * 26 AS col2 # 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 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, 0 AS col1 query I rowsort @@ -40358,7 +40358,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\(\*\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CASE Int64\(78\) WHEN Int64\(98\) THEN Int64\(71\) 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\(\*\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "CASE Int64\(78\) WHEN Int64\(98\) THEN Int64\(71\) ELSE NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) / + COUNT ( * ) AS col2, CASE 78 WHEN 98 THEN + 71 ELSE NULL END col2 # Datafusion - Datafusion expected results: @@ -40834,7 +40834,7 @@ SELECT - + 81 - NULLIF ( + - ( - 94 ), + + 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 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\(\*\) )?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 COUNT ( * ) AS col2, + COUNT ( * ) AS col2 query I rowsort label-7788 @@ -42382,7 +42382,7 @@ SELECT ALL COALESCE ( + COUNT ( ALL + CAST ( + 90 AS INTEGER ) ), + + 7 * - 1 * # 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 "\(\- \(\- max\(Int64\(35\)\)\)\) 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\(Int64\(35\)\)\)\) 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 ( ALL + 35 ) AS col1, COUNT ( * ) AS col1 query II rowsort label-8079 @@ -42570,7 +42570,7 @@ SELECT COUNT ( * ), - 30 + + + 47 + + + 12 + - 47 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 12766 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col1" at position 0 and "Int64\(15\) \* \(\- Int64\(\-23\)\) \* Int64\(37\) \+ 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\) AS col1" at position 0 and "Int64\(15\) \* \(\- Int64\(\-23\)\) \* Int64\(37\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 30 col1, 15 * - ( + - 23 ) * + 37 + + COUNT ( * ) col1 query II rowsort label-8114 @@ -42692,7 +42692,7 @@ SELECT ALL 30 * + 26 + 93 # Datafusion - Datafusion expected results: # Datafusion - Expected - 138 # Datafusion - Expected - 1416 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(98\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(59\) \* 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\(39\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(98\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(59\) \* Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 39 * + COUNT ( * ) + 98 + COUNT ( * ) AS col0, + 59 * 24 col0 query I rowsort label-8137 @@ -47038,7 +47038,7 @@ SELECT ALL CAST ( + 53 AS INTEGER ) * 25 * 89 + 93, + NULLIF ( 57, - 21 + COUNT # Datafusion - Expected - -1851821 # Datafusion - Expected - 4491 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) \* Int64\(71\) \* \(\- Int64\(\-7\)\) \* \(\- Int64\(\-81\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(54\) 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\(\-46\) \* Int64\(71\) \* \(\- Int64\(\-7\)\) \* \(\- Int64\(\-81\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(54\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 46 * + 71 * - - 7 * - - 81 + + COUNT ( * ) AS col1, 60 * + 76 - + + 69 AS col0, + + 54 AS col1 query I 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 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\. 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..cfb6b6b 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 Int32\)\) 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 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\. SELECT DISTINCT + 1 - - CAST ( + CAST ( 1 AS INTEGER ) AS INTEGER ) AS col1, + COUNT ( * ) col1 query I rowsort label-785 @@ -4585,7 +4585,7 @@ SELECT DISTINCT MIN ( + 20 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 3150 -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\(42\) \* 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\(\*\) )?AS col2" at position 0 and "Int64\(42\) \* Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col2, 42 * + 75 AS col2 query I rowsort label-868 @@ -10205,7 +10205,7 @@ SELECT DISTINCT 52 / - SUM ( - - 76 ) + + + MAX ( ALL 42 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - -57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) 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 "Int64\(67\) 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 ALL 67 AS col0, - 58 + + COUNT ( * ) AS col0 query I rowsort label-1941 @@ -11452,7 +11452,7 @@ SELECT 91 + + 34 AS col1 # 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 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(\-2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COUNT ( * ) AS col2, - 2 AS col2 query I rowsort label-2178 @@ -21008,7 +21008,7 @@ SELECT ALL ( 59 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -2376 -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\(99\) \* 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\(\*\) )?AS col2" at position 0 and "Int64\(99\) \* Int64\(\-24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) col2, + 99 * - 24 col2 query II rowsort @@ -23780,7 +23780,7 @@ SELECT - 42 AS col1, COUNT ( * ) / ( 96 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -58 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) 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\(\-58\) 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 - 58 AS col0, + COUNT ( * ) AS col0 query I rowsort label-4516 @@ -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 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\. 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 @@ -35641,7 +35641,7 @@ SELECT - MIN ( + 33 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1239 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \* Int64\(\-59\) 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 "Int64\(21\) \* Int64\(\-59\) 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 DISTINCT + 21 * - 59 AS col1, COUNT ( * ) + COUNT ( * ) AS col1 query I rowsort @@ -36628,7 +36628,7 @@ SELECT + 67 * + + 69 # Datafusion - Expected - 1 # Datafusion - Expected - -7462 # Datafusion - Expected - 1 -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\(91\) \* 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\(\*\) )?AS col2" at position 0 and "Int64\(91\) \* Int64\(\-82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) col2, + 91 * - 82 AS col2, + COUNT ( * ) AS col0 query I rowsort @@ -38602,7 +38602,7 @@ SELECT ALL + + SUM ( + + 70 ) * 76 / 22 / 43 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 106 -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\) \+ 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\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(11\) \+ Int64\(95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) col1, 11 + + 95 AS col1 query II rowsort @@ -41800,7 +41800,7 @@ SELECT COUNT ( * ) / + + COUNT ( * ) col0, 26 # 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 "Int64\(45\) 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\(45\) 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 45 AS col1, COUNT ( * ) AS col1 query I rowsort label-7944 @@ -42044,7 +42044,7 @@ SELECT ALL + 75 * - 54 + 62 + 56 - - - 84 AS col0, 20 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-33\)\) \* count\(Int64\(1\)\) AS count\(\*\) 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 "\(\- Int64\(\-33\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?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 + ( - - 33 ) * + COUNT ( * ) AS col1, COUNT ( * ) + + COUNT ( * ) AS col1 query I rowsort label-7990 @@ -42076,7 +42076,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\(DISTINCT Int64\(\-12\)\)\) 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 Int64\(\-12\)\)\) 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 ( DISTINCT + - 12 ) AS col0, COUNT ( * ) AS col0 query I rowsort label-7996 @@ -44780,7 +44780,7 @@ SELECT - - NULLIF ( 39, 52 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) 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\(89\) 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 + 89 AS col0, + COUNT ( * ) col0 query II rowsort label-8515 @@ -45524,7 +45524,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -42 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(41\)\) \* count\(Int64\(1\)\) AS count\(\*\) \- count\(Int64\(1\)\) AS count\(\*\) 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\(41\)\) \* count\(Int64\(1\)\) AS count\(\*\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 41 * COUNT ( * ) - + COUNT ( * ) AS col1, 29 AS col1 # Datafusion - Datafusion expected results: diff --git a/data/sqlite/random/expr/slt_good_85.slt b/data/sqlite/random/expr/slt_good_85.slt index b2a0708..a378725 100644 --- a/data/sqlite/random/expr/slt_good_85.slt +++ b/data/sqlite/random/expr/slt_good_85.slt @@ -1202,7 +1202,7 @@ SELECT - + 47, + 62 * 70 AS col1 # Datafusion - Expected - NULL # Datafusion - Expected - 160 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(96\) WHEN Int64\(\-76\) \* Int64\(95\) \+ \(\- \(\- Int64\(99\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-35\) THEN \(\- Int64\(97\)\) ELSE NULL END\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(46\) 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\(96\) WHEN Int64\(\-76\) \* Int64\(95\) \+ \(\- \(\- Int64\(99\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-35\) THEN \(\- Int64\(97\)\) ELSE NULL END\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(46\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CASE + 96 WHEN - 76 * + 95 + - ( - + 99 ) + + COUNT ( * ) + - 35 THEN - + 97 ELSE NULL END + + COUNT ( * ) AS col0, - 2 * + - 80 * COUNT ( * ), 46 AS col0 query I rowsort label-223 @@ -2343,7 +2343,7 @@ SELECT ALL - + 60 * - 92 * + 52 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - -5291 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col0" at position 0 and "Int64\(\-98\) \* Int64\(54\) \+ 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 "Int64\(\-98\) \* Int64\(54\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + ( + 47 ) AS col0, - 98 * + + 54 + + COUNT ( * ) AS col0 query I rowsort label-440 @@ -2486,7 +2486,7 @@ SELECT - 22 * - 56 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 65 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) 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\(65\) 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 65 AS col0, COUNT ( * ) AS col0 query I rowsort @@ -6064,7 +6064,7 @@ SELECT + + ( 14 ) # 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\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(81\) / Int64\(26\) \+ CASE Int64\(\-1\) WHEN coalesce\(count\(\(\- Int64\(7\)\)\), Int64\(78\)\) / Int64\(77\) \- Int64\(\-16\) \- \(\- Int64\(\-42\)\) \+ Int64\(\-85\) \+ count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-67\) THEN coalesce\(Int64\(36\), Int64\(\-54\), Int64\(80\)\) 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\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(81\) / Int64\(26\) \+ CASE Int64\(\-1\) WHEN coalesce\(count\(\(\- Int64\(7\)\)\), Int64\(78\)\) / Int64\(77\) \- Int64\(\-16\) \- \(\- Int64\(\-42\)\) \+ Int64\(\-85\) \+ count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-67\) THEN coalesce\(Int64\(36\), Int64\(\-54\), Int64\(80\)\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 17 * + COUNT ( * ) AS col0, + 81 / + 26 + + + CASE - 1 WHEN + COALESCE ( + COUNT ( - + 7 ), + 78 ) / + 77 - - 16 - - - 42 + - 85 + + + COUNT ( * ) * COUNT ( * ) + - 67 THEN + COALESCE ( 36, - 54, + + 80 ) END AS col0 query I rowsort label-1153 @@ -12112,7 +12112,7 @@ SELECT 73 + - 83 + 15 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 "Int64\(1\) 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\(1\) 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 1 AS col2, + COUNT ( * ) AS col2 query I rowsort label-2307 @@ -12258,7 +12258,7 @@ SELECT + - 77 * - 44 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -1980 -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\(\-33\) \* 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\(\*\) )?AS col0" at position 0 and "Int64\(\-33\) \* Int64\(60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col0, - 33 * 60 AS col0 query I rowsort @@ -13695,7 +13695,7 @@ SELECT COUNT ( * ) / + 43 * - 6 * - 59 * - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - 1 -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\(\*\) AS col2" at position 1 have the 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\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 28 AS col2, COUNT ( * ) AS col2 query I rowsort @@ -17161,7 +17161,7 @@ SELECT + 41 AS col0, 23 + - - COUNT ( * ) AS col1 # 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 col0" at position 0 and "Int64\(66\) \* 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 "Int64\(66\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + COUNT ( * ) AS col0, + 66 * COUNT ( * ) AS col0 query I rowsort @@ -19432,7 +19432,7 @@ SELECT DISTINCT 38 + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -7096 # Datafusion - Expected - -24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) \+ Int64\(\-91\) \* Int64\(79\) AS col1" at position 0 and "Int64\(\-23\) \- 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\) \+ Int64\(\-91\) \* Int64\(79\) AS col1" at position 0 and "Int64\(\-23\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( + 93 ) + + - 91 * + 79 AS col1, + ( - 23 ) - + COUNT ( * ) col1 query I rowsort @@ -19727,7 +19727,7 @@ SELECT ALL 86 col2, NULLIF ( - + 53, - + 88 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 177 -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\(97\) \+ Int64\(80\) \+ Int64\(11\) / 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\(\*\) )?AS col1" at position 0 and "Int64\(97\) \+ Int64\(80\) \+ Int64\(11\) / Int64\(\-93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col1, 97 + + + 80 + 11 / - 93 AS col1 query II rowsort label-3756 @@ -20756,7 +20756,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) \+ Int64\(96\) 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\(\-9\) \+ Int64\(96\) 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 - 9 + + 96 col0, COUNT ( * ) AS col0 query II rowsort @@ -21004,7 +21004,7 @@ SELECT COUNT ( * ) + + - 89 # 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 col1" at position 0 and "Int64\(\-41\) \- nullif\(\(\- Int64\(\-53\)\), Int64\(89\)\) / coalesce\(Int64\(46\), Int64\(43\) \* count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\), max\(DISTINCT Int64\(15\)\) \- Int64\(\-37\) / CASE Int64\(\-27\) WHEN Int64\(74\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(78\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(8\) END \* \(\- Int64\(\-64\)\) \- 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\(\*\) )?AS col1" at position 0 and "Int64\(\-41\) \- nullif\(\(\- Int64\(\-53\)\), Int64\(89\)\) / coalesce\(Int64\(46\), Int64\(43\) \* count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\), max\(DISTINCT Int64\(15\)\) \- Int64\(\-37\) / CASE Int64\(\-27\) WHEN Int64\(74\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(78\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(8\) END \* \(\- Int64\(\-64\)\) \- Int64\(\-93\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) col1, - 41 - + NULLIF ( - + ( + - 53 ), + + 89 ) / + COALESCE ( + 46, 43 * COUNT ( * ) + COUNT ( * ), MAX ( DISTINCT + ( + 15 ) ) - + - 37 / CASE - 27 WHEN + + 74 + - COUNT ( * ) THEN + 78 WHEN + - COUNT ( * ) THEN 8 END * - - 64 - + - 93 ) AS col1 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 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\. 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 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\. 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 @@ -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 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\. SELECT ALL 15 + + CAST ( NULL AS INTEGER ) + - 50 * - + NULLIF ( - - 92, - ( + 66 ) ) AS col0, COUNT ( * ) AS col0 query II rowsort label-4835 @@ -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 Int32\)\), \(\- 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 @@ -27536,7 +27536,7 @@ SELECT + - 49 * COUNT ( * ) - - COALESCE ( - NULLIF ( 94, COUNT ( * ) + 24 ), ( # Datafusion - Expected - 76 # Datafusion - Expected - 1 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 "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 + 76 col0, COUNT ( * ) col0, + 89 AS col0 query II rowsort label-5244 @@ -30033,7 +30033,7 @@ SELECT + 15 / + 85 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - -1080 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col0" at position 0 and "Int64\(15\) \+ Int64\(\-15\) \* 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 "Int64\(33\) AS col0" at position 0 and "Int64\(15\) \+ Int64\(\-15\) \* Int64\(73\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 33 AS col0, 15 + - 15 * + ( + + 73 ) * + COUNT ( * ) AS col0 query I rowsort label-5719 @@ -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 Int32\)\)\)\)\) \+ 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 @@ -33656,7 +33656,7 @@ SELECT ALL - 81, 70 * 97 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) 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\) 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 AS col2, COUNT ( * ) AS col2 query I rowsort @@ -33940,7 +33940,7 @@ NULL # Datafusion - Expected - 31 # Datafusion - Expected - 24 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) \* count\(Int64\(1\)\) AS count\(\*\) 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\(31\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 31 * COUNT ( * ) AS col1, + 24 AS col1, 93 * COUNT ( * ) * COUNT ( ALL - + 20 ) * - COUNT ( * ) - COUNT ( * ) * - 29 col1 query I rowsort @@ -34981,7 +34981,7 @@ SELECT DISTINCT 74 + 15 + 68 * + + 54 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 6072 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) / Int64\(35\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-88\) \* Int64\(\-69\) \* 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\) / Int64\(35\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-88\) \* Int64\(\-69\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 53 / 35 AS col1, + COUNT ( * ) * - 88 * - 69 * + COUNT ( * ) col1 query I rowsort label-6662 @@ -35064,7 +35064,7 @@ SELECT ALL + 83 AS col1, 83 * - 43 AS col1, NULLIF ( MIN ( - 25 ), + 59 * + 18 + # Datafusion - Expected - 36 # Datafusion - Expected - 51 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col1" at position 0 and "Int64\(59\) \+ 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\(36\) AS col1" at position 0 and "Int64\(59\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 36 col1, + 53 + - 2, + + 59 + + COUNT ( * ) AS col1 query I rowsort label-6677 @@ -37977,7 +37977,7 @@ SELECT 89, - 85 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 344 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) / Int64\(2\) \+ Int64\(43\) AS col0" at position 0 and "Int64\(\-49\) \* Int64\(\-7\) \+ 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\(17\) / Int64\(2\) \+ Int64\(43\) AS col0" at position 0 and "Int64\(\-49\) \* Int64\(\-7\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( 17 ) / + 2 + + 43 AS col0, + ( - 49 ) * + - 7 + COUNT ( * ) AS col0 query I rowsort label-7226 @@ -38145,7 +38145,7 @@ NULL # 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 "Int64\(66\) \+ max\(Int64\(\-26\)\) 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\) \+ max\(Int64\(\-26\)\) 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 66 + + MAX ( ALL - 26 ) AS col2, COUNT ( * ) AS col2 query I rowsort label-7258 @@ -43821,7 +43821,7 @@ SELECT - + 38 * + + 12 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / \(\- Int64\(17\)\) \* Int64\(60\) \* Int64\(\-24\) 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\(17\)\) \* Int64\(60\) \* Int64\(\-24\) 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 ( * ) / - + 17 * + + 60 * - 24 col1, + COUNT ( * ) col1 query II rowsort label-8339 @@ -45113,7 +45113,7 @@ SELECT - + 48 * 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - -43 # Datafusion - Expected - 0 -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 "Int64\(1\) / \(\- 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\(\-43\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(1\) / \(\- Int64\(\-87\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 43 * COUNT ( * ) AS col2, + 1 / - - 87 AS col2 query I rowsort label-8586 @@ -48351,7 +48351,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -77 # Datafusion - Expected - -190181 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-74\) \+ \(\- max\(Int64\(3\)\)\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(62\) \* Int64\(59\) \* Int64\(\-52\) \+ 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\(\-74\) \+ \(\- max\(Int64\(3\)\)\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(62\) \* Int64\(59\) \* Int64\(\-52\) \+ Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 74 + + - MAX ( 3 ) / + COUNT ( * ) AS col0, + 62 * 59 * - 52 + 35 AS col0 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..a7eb6c0 100644 --- a/data/sqlite/random/expr/slt_good_86.slt +++ b/data/sqlite/random/expr/slt_good_86.slt @@ -3704,7 +3704,7 @@ SELECT + ( 22 ) * 7 * - 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - 582819 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) \* Int64\(6\) \* Int64\(23\) \* Int64\(\-44\) \- \(\- Int64\(\-93\)\) 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 "Int64\(\-96\) \* Int64\(6\) \* Int64\(23\) \* Int64\(\-44\) \- \(\- Int64\(\-93\)\) 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 DISTINCT - 96 * 6 * 23 * - 44 - - - 93 AS col1, COUNT ( * ) / + COUNT ( * ) AS col1 query I rowsort @@ -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 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\. SELECT ALL COALESCE ( + 79, + CAST ( NULL AS INTEGER ) ) * - 82 AS col2, COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: @@ -7291,7 +7291,7 @@ SELECT ALL + 40 + 98 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - -61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(61\) / \(\- 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\(76\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(61\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 76 + COUNT ( * ) AS col1, 61 / - COUNT ( * ) AS col1 query I rowsort label-1379 @@ -8255,7 +8255,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) 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\(88\) 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 + 88 AS col1, + COUNT ( * ) col1 query I rowsort @@ -8293,7 +8293,7 @@ SELECT ALL 25, - ( 98 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 47 -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\(\-43\) \+ min\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(\-43\) \+ min\(Int64\(90\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col2, - 43 + + MIN ( + 90 ) AS col2 query I rowsort label-1567 @@ -14651,7 +14651,7 @@ SELECT - 10 + 38 + 95 + + CASE + CAST ( NULL AS INTEGER ) WHEN ( 73 ) THEN - COU # Datafusion - Datafusion expected results: # Datafusion - Expected - -87 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT Int64\(\-87\)\) AS col2" at position 0 and "Int64\(15\) \* 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\(DISTINCT Int64\(\-87\)\) AS col2" at position 0 and "Int64\(15\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL SUM ( DISTINCT - 87 ) AS col2, + 15 * + COUNT ( * ) col2 query I rowsort @@ -16613,7 +16613,7 @@ SELECT + 27 / 82 * 3 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 244 # Datafusion - Expected - 402 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(38\)\) \* Int64\(\-7\) \+ Int64\(\-23\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-8\) \* Int64\(\-62\) \+ 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\(38\)\) \* Int64\(\-7\) \+ Int64\(\-23\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(\-8\) \* Int64\(\-62\) \+ Int64\(94\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + 38 * - 7 + - 23 + COUNT ( * ) AS col1, - 8 * - 62 + + 94 / - COUNT ( * ) AS col1 query I rowsort label-3157 @@ -16850,7 +16850,7 @@ SELECT + 61 AS col2, 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - 422 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \* Int64\(53\) \- Int64\(\-50\) \+ count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(7\) \* Int64\(53\) \- Int64\(\-50\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 7 * + + 53 - - 50 + COUNT ( * ) AS col2, 11 AS col2 query I rowsort label-3202 @@ -17393,7 +17393,7 @@ SELECT DISTINCT + NULLIF ( 0, + - 41 ) * 52 - + - 60 * + - ( - 30 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2231 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-72\) \- count\(Int64\(1\)\) AS count\(\*\) 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\(31\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-72\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 31 * + - COUNT ( * ) * + ( - 72 ) - + COUNT ( * ) AS col1, + 83 AS col1 query I rowsort label-3306 @@ -18573,7 +18573,7 @@ NULL # 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\(1\) \- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(1\) \- Int64\(\-33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + COUNT ( * ) col2, 1 - - 33 AS col2 query I rowsort label-3532 @@ -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 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\. SELECT DISTINCT CAST ( - 7 AS INTEGER ) AS col1, - 13 + + COUNT ( * ) AS col1 query II rowsort label-3556 @@ -24363,7 +24363,7 @@ SELECT - 89 * + - 36 * - 96 * 79 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - 1 -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\(\*\) AS col1" at position 1 have the 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\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 82 AS col1, + COUNT ( * ) AS col1 query I rowsort @@ -25388,7 +25388,7 @@ SELECT + 15 + + ( - + 11 ) + + 28 * 23 # 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 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\(\*\)\) 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 ( * ) col2, + COUNT ( * ) AS col2 query I rowsort label-4835 @@ -30463,7 +30463,7 @@ SELECT + - 47 * - - NULLIF ( + - 24, + 51 ) * - 93 AS col2 # Datafusion - Expected - -5180 # Datafusion - Expected - 49 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) \- Int64\(87\) \+ Int64\(57\) \* \(\- Int64\(89\)\) 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\(\-20\) \- Int64\(87\) \+ Int64\(57\) \* \(\- Int64\(89\)\) 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 + - 20 - ( + 87 ) + + 57 * - ( + 89 ) AS col0, ( - - 49 ) * + COUNT ( * ), COUNT ( * ) col0 query II rowsort @@ -30853,7 +30853,7 @@ SELECT DISTINCT 60 * 61 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(DISTINCT 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 "\(\- sum\(DISTINCT 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 ALL - SUM ( DISTINCT - 14 ) col0, COUNT ( * ) AS col0 query I rowsort label-5876 @@ -35541,7 +35541,7 @@ SELECT + 45 * + 69 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -2480 -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\(Int64\(31\)\)\) \* 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\(\*\) )?AS col1" at position 0 and "\(\- min\(Int64\(31\)\)\) \* Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, - MIN ( ALL 31 ) * + 80 AS col1 query II rowsort @@ -43224,7 +43224,7 @@ SELECT + MAX ( DISTINCT + + 52 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - 1 -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\(\*\) AS col0" at position 1 have the 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\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 81 col0, + COUNT ( * ) AS col0 query I rowsort @@ -44822,7 +44822,7 @@ SELECT 38 + 35 - - - ( - 90 ) / + 86 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) 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\) 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 col2, COUNT ( * ) AS col2 query I rowsort @@ -50191,7 +50191,7 @@ SELECT + 84 * 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 22 -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\(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\(\*\) )?AS col1" at position 0 and "Int64\(22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col1, + 22 AS col1 query I rowsort label-9572 @@ -50682,7 +50682,7 @@ SELECT ALL 71 * 46 AS col1 # 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 "count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(\-77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( + COUNT ( * ) ) AS col2, - 77 AS col2 query I rowsort @@ -50698,7 +50698,7 @@ SELECT ALL COUNT ( + - 34 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \+ count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(16\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 16 + + ( COUNT ( * ) ) AS col2, 59 AS col2 query I rowsort label-9670 diff --git a/data/sqlite/random/expr/slt_good_87.slt b/data/sqlite/random/expr/slt_good_87.slt index 6381b51..418e06d 100644 --- a/data/sqlite/random/expr/slt_good_87.slt +++ b/data/sqlite/random/expr/slt_good_87.slt @@ -189,7 +189,7 @@ SELECT DISTINCT 89 + 16 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 35 -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\(\-41\)\) \+ Int64\(80\) \+ 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "\(\- Int64\(\-41\)\) \+ Int64\(80\) \+ Int64\(\-86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) col1, - ( - 41 ) + 80 + + - 86 AS col1 query I rowsort @@ -2118,7 +2118,7 @@ SELECT DISTINCT COUNT ( * ) - - + COUNT ( * ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) 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\) 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 AS col2, COUNT ( * ) AS col2 query I rowsort @@ -2950,7 +2950,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -30 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) AS col1" at position 0 and "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\(\-30\) AS col1" at position 0 and "Int64\(18\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 30 AS col1, + 18 * + COUNT ( * ) AS col1 query I rowsort label-564 @@ -3365,7 +3365,7 @@ SELECT - - 15 * + COUNT ( * ) + 61 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 "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 "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 DISTINCT COUNT ( * ) AS col2, - COUNT ( * ) AS col2 query I rowsort label-644 @@ -3591,7 +3591,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -32 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-32\) 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\(\-32\) 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 - 32 AS col2, COUNT ( * ) col2 query I rowsort @@ -4385,7 +4385,7 @@ SELECT 77 * - + 43 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -21 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \+ \(\- 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 "Int64\(32\) \+ \(\- 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 32 + - + 53 AS col0, + COUNT ( * ) col0 query II rowsort @@ -4520,7 +4520,7 @@ SELECT + 24 * - - 32 col0 # 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 "max\(Int64\(50\)\) \+ count\(Int64\(1\)\) AS count\(\*\) 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 "max\(Int64\(50\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + MAX ( ALL + 50 ) + + COUNT ( * ) col2, + 64 col2 query I rowsort @@ -7163,7 +7163,7 @@ SELECT DISTINCT - 1 * + 92 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 "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 "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 + COUNT ( * ) col2, COUNT ( * ) AS col2 query I rowsort @@ -7977,7 +7977,7 @@ SELECT + + 15 / - 58 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - 1 -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\(\*\) AS col1" at position 1 have the 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\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 66 AS col1, COUNT ( * ) AS col1 query I rowsort label-1539 @@ -8896,7 +8896,7 @@ SELECT + 55 + - 13 + - - 91 # 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 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\(\*\)\) 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 ( * ) col2, + COUNT ( * ) col2 query I rowsort @@ -9303,7 +9303,7 @@ SELECT - 91 + 48 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2990 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(46\)\) \* 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 "\(\- Int64\(46\)\) \* 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 DISTINCT - + 46 * - 65 col2, COUNT ( * ) AS col2 query I rowsort label-1796 @@ -9722,7 +9722,7 @@ SELECT + + COUNT ( * ) - + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 86 -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\(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\(\*\) )?AS col2" at position 0 and "Int64\(86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col2, + 86 col2 query I rowsort @@ -10928,7 +10928,7 @@ NULL # 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\) 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\(0\) 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 0 AS col1, + COUNT ( * ) AS col1 query I rowsort label-2114 @@ -11606,7 +11606,7 @@ SELECT - ( 35 ) 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 "\(\- 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\(\*\)\) 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 ( * ) AS col1, + COUNT ( * ) AS col1 query I rowsort label-2247 @@ -14712,7 +14712,7 @@ SELECT ALL + 2 * 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) 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\) 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 63 AS col1, COUNT ( * ) AS col1 query I rowsort @@ -15292,7 +15292,7 @@ SELECT COUNT ( * ) AS col0, 26 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -62 -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\(1\) \* 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(1\) \* Int64\(\-62\) \* \(\- \(\- 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, + 1 * - 62 * - - COUNT ( * ) AS col0 query I rowsort label-2960 @@ -16440,7 +16440,7 @@ SELECT DISTINCT + COUNT ( * ) * - NULLIF ( + 53, - + 41 ) * - + 20 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 "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- count\(Int64\(\-33\)\)\) / 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "\(\- count\(Int64\(\-33\)\)\) / Int64\(\-1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) col2, - COUNT ( - 33 ) / - 1 AS col2 query I rowsort label-3182 @@ -17429,7 +17429,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 "\(\- \(\- \(\- coalesce\(Int64\(\-92\), Int64\(\-5\) \* \(\- \(\- 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 "\(\- \(\- \(\- coalesce\(Int64\(\-92\), Int64\(\-5\) \* \(\- \(\- 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 DISTINCT - ( - - COALESCE ( - 92, - 5 * - - COUNT ( * ) ) ) AS col0, COUNT ( * ) AS col0 query I rowsort @@ -18794,7 +18794,7 @@ SELECT ALL - - ( - 11 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) 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\(79\) 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 + 79 AS col1, + COUNT ( * ) AS col1 query I rowsort label-3639 @@ -19034,7 +19034,7 @@ SELECT ALL 29 * - - 75 AS col2 # 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 "Int64\(92\) 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\(92\) 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 92 AS col0, + COUNT ( * ) AS col0 query I rowsort @@ -19396,7 +19396,7 @@ SELECT 41 * + + COUNT ( * ) * - - 86 # Datafusion - Datafusion expected results: # Datafusion - Expected - -28 # Datafusion - Expected - 1 -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\(\*\) AS col2" at position 1 have the 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\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 28 col2, ( COUNT ( * ) ) AS col2 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 Int32\) 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: @@ -21948,7 +21948,7 @@ SELECT ALL - 48 + ( - 18 ) # 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\) / 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\(54\) / 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 + 54 / + COUNT ( * ) AS col2, - COUNT ( * ) col2 query I rowsort @@ -25789,7 +25789,7 @@ SELECT CAST ( - 88 AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -52 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) \+ count\(Int64\(1\)\) AS count\(\*\) 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\(\-53\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 53 + + COUNT ( * ) AS col0, ( 4 ) col0 query I rowsort label-4995 @@ -26180,7 +26180,7 @@ SELECT ALL - 13 / - COUNT ( * ) 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 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, 1 AS col2 query I rowsort label-5070 @@ -27378,7 +27378,7 @@ SELECT - ( 8 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) 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\(72\) 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 72 AS col0, COUNT ( * ) * COUNT ( * ) AS col0 query II rowsort @@ -27936,7 +27936,7 @@ SELECT ALL + 43 + 93 # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) / count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(\-82\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 82 / COUNT ( * ) col2, 69 col2 query I rowsort label-5409 @@ -28126,7 +28126,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - 3600 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(75\) \* 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\(74\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(75\) \* Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 74 * + + COUNT ( * ) AS col0, + 75 * 48 AS col0 query I rowsort label-5445 @@ -29434,7 +29434,7 @@ SELECT + - 85 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 768 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \* min\(Int64\(48\)\) 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\(16\) \* min\(Int64\(48\)\) 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 + + ( 16 ) * MIN ( ALL 48 ) AS col1, COUNT ( * ) col1 query I rowsort @@ -33563,7 +33563,7 @@ SELECT NULLIF ( - - 31, 64 ) 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 "count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 DISTINCT + COUNT ( * ) AS col2, + MAX ( ALL - 3 ) col2 query I rowsort @@ -35027,7 +35027,7 @@ SELECT + - 20 + 96 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 41 -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\) AS col0" at position 1 have the same name\. Consider aliasing \("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\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col0, + 41 col0 query I rowsort label-6782 @@ -35512,7 +35512,7 @@ SELECT ALL + 66 + - ( + COUNT ( * ) ) AS col2 # 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 "Int64\(\-59\) 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\(\-59\) 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 - 59 AS col2, + ( + COUNT ( * ) ) AS col2 query II 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 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\. SELECT ALL + 66 + ( CAST ( NULL AS INTEGER ) ) col2, COUNT ( * ) AS col2 query I rowsort label-7157 @@ -38308,7 +38308,7 @@ SELECT DISTINCT + - 92 - 79 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) / 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\(25\) / 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 DISTINCT + + 25 / + + COUNT ( * ) AS col0, COUNT ( * ) AS col0 query II rowsort label-7419 @@ -38979,7 +38979,7 @@ SELECT MAX ( 88 ) + - 94 # Datafusion - Datafusion expected results: # Datafusion - Expected - -66 # Datafusion - Expected - -93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) AS col0" at position 0 and "Int64\(\-92\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(DISTINCT Int64\(\-27\)\)\) \* 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\(\-66\) AS col0" at position 0 and "Int64\(\-92\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(DISTINCT Int64\(\-27\)\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 66 AS col0, - 92 * + COUNT ( * ) + - COUNT ( DISTINCT - 27 ) * + COUNT ( * ) AS col0 query I rowsort label-7550 @@ -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 Int32\)\) 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 @@ -43640,7 +43640,7 @@ SELECT DISTINCT - ( + - 55 ) col1 # 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 "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\(Int64\(1\)\) (AS count\(\*\) )?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 + COUNT ( * ) AS col1, - 95 AS col1 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_88.slt b/data/sqlite/random/expr/slt_good_88.slt index d45a76d..f4b2ec7 100644 --- a/data/sqlite/random/expr/slt_good_88.slt +++ b/data/sqlite/random/expr/slt_good_88.slt @@ -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 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\. SELECT - - NULLIF ( - - SUM ( + 76 ), 42 + + 45 + - + CAST ( + 11 AS INTEGER ) ) AS col0, COUNT ( * ) AS col0 query I rowsort label-101 @@ -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 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\. SELECT - 4 AS col1, - MIN ( ALL - - CAST ( 19 AS INTEGER ) ) + + COUNT ( * ) + + COUNT ( * ) AS col1 query I rowsort label-1469 @@ -7795,7 +7795,7 @@ SELECT - - 10 * 30 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -158 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(9\) WHEN Int64\(59\) THEN count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-7\)\) \* Int64\(0\) END \* \(\- CASE \(\- Int64\(13\)\) WHEN \(\- Int64\(16\)\) THEN NULL ELSE \(\- Int64\(\-2\)\) \* Int64\(\-57\) END\) \+ Int64\(97\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- Int64\(95\)\) \- 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 "CASE Int64\(9\) WHEN Int64\(59\) THEN count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-7\)\) \* Int64\(0\) END \* \(\- CASE \(\- Int64\(13\)\) WHEN \(\- Int64\(16\)\) THEN NULL ELSE \(\- Int64\(\-2\)\) \* Int64\(\-57\) END\) \+ Int64\(97\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "\(\- Int64\(95\)\) \- Int64\(63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CASE + 9 WHEN + 59 THEN + + COUNT ( * ) * - - 7 * 0 END * - ( CASE - + 13 WHEN - + 16 THEN NULL ELSE - - 2 * - 57 END ) + + 97 - COUNT ( * ) AS col0, - ( + + 95 ) - 63 AS col0 query I rowsort label-1474 @@ -11138,7 +11138,7 @@ SELECT DISTINCT 73 + 33 + + - CAST ( + 91 AS INTEGER ) - ( + 41 ) col2 # 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\(34\) 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\(34\) 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 34 AS col0, + ( + COUNT ( * ) ) col0 query I rowsort label-2105 @@ -13617,7 +13617,7 @@ SELECT 92 AS col2, - 90 # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) 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\(72\) 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 + 72 col1, + COUNT ( * ) AS col1 # Datafusion - Types were automatically converted from: @@ -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 Int32\) \* 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 @@ -16878,7 +16878,7 @@ SELECT + + COALESCE ( + 99, 67 + - 71, - 91 ) + + + 13 # Datafusion - Datafusion expected results: # Datafusion - Expected - -67 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-67\) 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\(\-67\) 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 + - 67 AS col1, + COUNT ( * ) AS col1 query I rowsort @@ -17396,7 +17396,7 @@ NULL # Datafusion - Expected - 1 # Datafusion - Expected - -1073 # Datafusion - Expected - 3417 -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\(13\) \* \(\- Int64\(78\)\) \+ \(\- 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\(\*\) )?AS col1" at position 0 and "Int64\(13\) \* \(\- Int64\(78\)\) \+ \(\- Int64\(59\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, 13 * - + 78 + - + 59 AS col1, - NULLIF ( 51, 44 ) * + - 67 query I rowsort label-3298 @@ -20545,7 +20545,7 @@ SELECT ALL 43 * 16 # 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\(72\) \+ 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\(72\) \+ 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 DISTINCT 72 + + COUNT ( * ) AS col2, - ( + COUNT ( * ) ) col2 query II rowsort @@ -27288,7 +27288,7 @@ SELECT - 30 * 27 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -38 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) AS col0" at position 0 and "Int64\(48\) \* 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\(\-38\) AS col0" at position 0 and "Int64\(48\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 38 AS col0, + 48 * COUNT ( * ) AS col0 query I rowsort @@ -29020,7 +29020,7 @@ SELECT ALL + NULLIF ( + 6, - 31 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(86\) \+ 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\(\-4\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(86\) \+ Int64\(\-43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 4 * COUNT ( * ) AS col2, 86 + + ( - 43 ) AS col2 query I rowsort label-5506 @@ -29419,7 +29419,7 @@ SELECT - - 65 * 58 * + + 51 * MAX ( DISTINCT + + 87 ) # 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\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(\-5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, - 5 AS col1 query I rowsort @@ -29760,7 +29760,7 @@ SELECT ALL - + NULLIF ( + 78, + COUNT ( * ) / 8 + 61 * + 65 ) # 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 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, + 24 AS col1 query I rowsort @@ -30830,7 +30830,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \+ count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(23\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 23 + COUNT ( * ) AS col1, 15 AS col1 query I rowsort label-5855 @@ -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 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\. SELECT ALL + CAST ( + ( - ( + - 2 ) ) AS INTEGER ) * - 96 + COUNT ( * ) AS col0, 92 AS col0 query I rowsort label-6205 @@ -34585,7 +34585,7 @@ SELECT + - COALESCE ( - CASE 61 WHEN ( + 94 ) * + 51 THEN NULL WHEN COALESCE ( - # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) 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\(32\) 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 + 32 col2, + COUNT ( * ) col2 query I rowsort @@ -39200,7 +39200,7 @@ SELECT + 64 * 39 * + + 28 # 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 "\(\- Int64\(\-22\)\) 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\(\-22\)\) 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 - - 22 AS col0, + COUNT ( * ) AS col0 query I rowsort label-7444 @@ -39951,7 +39951,7 @@ SELECT ALL + 85 / 24, 27 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -20 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-21\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- nullif\(Int64\(3\), 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\(\-21\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "\(\- nullif\(Int64\(3\), Int64\(\-53\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 21 + COUNT ( * ) AS col1, - NULLIF ( + 3, + - 53 ) AS col1 query I rowsort label-7586 @@ -40044,7 +40044,7 @@ SELECT ALL + 80 + + ( + 22 ) # 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\) AS col2" at position 0 and "Int64\(12\) \- 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\(14\) AS col2" at position 0 and "Int64\(12\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 14 AS col2, 12 - + COUNT ( * ) AS col2 query I rowsort @@ -41373,7 +41373,7 @@ SELECT DISTINCT COUNT ( DISTINCT + 19 ) # 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 "Int64\(40\) 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\(40\) 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 ( 40 ) AS col1, COUNT ( * ) AS col1 query II rowsort label-7853 @@ -42498,7 +42498,7 @@ SELECT DISTINCT COUNT ( DISTINCT + 95 ) + - 52 col2 # Datafusion - Expected - NULL # Datafusion - Expected - 20 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* CASE nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(63\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN Int64\(\-74\) THEN Int64\(5\) / Int64\(79\) ELSE NULL END 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* CASE nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(63\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN Int64\(\-74\) THEN Int64\(5\) / Int64\(79\) ELSE NULL END 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 ALL - COUNT ( * ) * CASE NULLIF ( + COUNT ( * ), + + 63 ) WHEN + COUNT ( * ) THEN NULL WHEN - 74 THEN + 5 / + + 79 ELSE NULL END AS col0, + 20 / + COUNT ( * ) AS col0, + + 85 AS col0 query I rowsort @@ -43268,7 +43268,7 @@ SELECT - CASE - - 73 WHEN - 62 THEN NULL ELSE 76 END AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -36 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) 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 "Int64\(\-36\) 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 - 36 AS col1, COUNT ( * ) * COUNT ( * ) AS col1 query II rowsort @@ -44168,7 +44168,7 @@ SELECT - 43 + - 42 + - 24 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6431 # Datafusion - Expected - -33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) \* \(\- Int64\(\-66\)\) \- Int64\(29\) AS col1" at position 0 and "Int64\(\-33\) \* 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\(\-97\) \* \(\- Int64\(\-66\)\) \- Int64\(29\) AS col1" at position 0 and "Int64\(\-33\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 97 * - - 66 - + + 29 AS col1, - 33 * COUNT ( * ) col1 query II rowsort label-8379 @@ -46444,7 +46444,7 @@ SELECT + 99 - - - 2 * COALESCE ( + COALESCE ( + + 55, + 0 + - 52 * - - 35 ), + C # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -75 -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\(\-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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col0, COUNT ( * ) + + - 76 col0 query II rowsort label-8809 @@ -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 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\. SELECT ALL + CAST ( - 71 AS INTEGER ) + COUNT ( * ) AS col1, + 13 * + 98 AS col1 query I rowsort label-8870 @@ -48127,7 +48127,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 "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\(42\) 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 + 42 AS col0, + COUNT ( * ) AS col0 query I rowsort label-9136 @@ -50869,7 +50869,7 @@ SELECT COUNT ( * ) * - 5 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \* count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(57\) \* count\(Int64\(1\)\) (AS count\(\*\) )?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 DISTINCT 57 * + COUNT ( * ) AS col1, - COUNT ( * ) * 51 AS col1 query I rowsort label-9657 @@ -51002,7 +51002,7 @@ SELECT ALL + 45 / 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) 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\(26\) 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 26 AS col2, + COUNT ( * ) 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..bf25937 100644 --- a/data/sqlite/random/expr/slt_good_89.slt +++ b/data/sqlite/random/expr/slt_good_89.slt @@ -1375,7 +1375,7 @@ SELECT ALL + 94 + - 57 * - - 54 * 37 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) \+ count\(Int64\(1\)\) AS count\(\*\) 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\(44\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 44 + + + COUNT ( * ) col0, 30 col0 query I rowsort @@ -2082,7 +2082,7 @@ SELECT ALL - 77 - - 67 # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - 3073 -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\) \* 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\(53\) AS col0" at position 0 and "Int64\(32\) \* Int64\(96\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 53 AS col0, 32 * 96 + + COUNT ( * ) col0 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 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\. SELECT + 25 - - + CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col0, CAST ( + 13 AS INTEGER ) * 41 * + + 14 + COUNT ( * ) + 80 AS col0 query I rowsort label-1184 @@ -7860,7 +7860,7 @@ SELECT ALL 67 AS col2, 67 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col0" at position 0 and "Int64\(57\) / 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 "Int64\(57\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 69 AS col0, 57 / COUNT ( * ) AS col0 query I rowsort @@ -9977,7 +9977,7 @@ SELECT + 10 * + NULLIF ( + 15, - 88 ) # 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\(\-15\) \+ Int64\(50\) \- Int64\(\-94\) / Int64\(76\) AS col1" at position 0 and "CAST\(NULL AS Float64\) \* Int64\(\-39\) \+ 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\(\-15\) \+ Int64\(50\) \- Int64\(\-94\) / Int64\(76\) AS col1" at position 0 and "CAST\(NULL AS Float64\) \* Int64\(\-39\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 15 + 50 - + - 94 / + + 76 AS col1, CAST ( NULL AS FLOAT8 ) * - 39 + + COUNT ( * ) AS col1 query II rowsort label-1897 @@ -10403,7 +10403,7 @@ SELECT DISTINCT 67 col1, 40 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) / Int64\(84\) \* 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 "Int64\(\-97\) / Int64\(84\) \* 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 ALL - 97 / + 84 * COUNT ( * ) col1, 47 AS col1 query I rowsort @@ -12772,7 +12772,7 @@ SELECT 54 * - + 98 * - 88 # Datafusion - Expected - -1 # Datafusion - Expected - 1 # Datafusion - Expected - -37 -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\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("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\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) AS col2, + COUNT ( * ) AS col2, - + 37 query I rowsort @@ -14083,7 +14083,7 @@ SELECT - - NULLIF ( + - 98, - 34 * - + ( 91 ) ) # 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 col1" at position 0 and "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\(\-3\) AS col1" at position 0 and "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 ALL - 3 AS col1, + COUNT ( * ) * - COUNT ( * ) * + + COUNT ( * ) AS col1 query I rowsort label-2683 @@ -14513,7 +14513,7 @@ SELECT - ( - 37 ) + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) 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\(32\) 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 + 32 AS col2, COUNT ( * ) AS col2 query I rowsort label-2765 @@ -14934,7 +14934,7 @@ SELECT ALL COALESCE ( - + CAST ( - 29 AS INTEGER ), + 66 ) / + - 78 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - -1386 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(21\) \* Int64\(\-22\) \* 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\(93\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(21\) \* Int64\(\-22\) \* Int64\(3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( 93 ) + + COUNT ( * ) AS col0, 21 * + - 22 * + 3 AS col0 query I rowsort @@ -21636,7 +21636,7 @@ SELECT + 10 + - + 28 + - + 31 * - ( - 19 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - -95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-2\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(95\)\) \* count\(\(\- Int64\(\-41\)\)\) \* 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\(Int64\(\-2\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(95\)\) \* count\(\(\- Int64\(\-41\)\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + SUM ( + - 2 ) * + COUNT ( * ) AS col0, COUNT ( * ) * - + 95 * + + COUNT ( - - 41 ) * + + COUNT ( * ) AS col0 query I rowsort label-4124 @@ -24995,7 +24995,7 @@ SELECT DISTINCT 56 / - 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 98 -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\(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 "Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col0, 98 AS col0 query I rowsort label-4761 @@ -26636,7 +26636,7 @@ SELECT + 74 - + COUNT ( * ) * - + COUNT ( * ) 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 "count\(Int64\(66\)\) 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\(66\)\) 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 + COUNT ( 66 ) AS col2, COUNT ( * ) AS col2 query I rowsort label-5076 @@ -29170,7 +29170,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) 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\(86\) 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 86 AS col0, COUNT ( * ) AS col0 query I rowsort label-5559 @@ -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 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\. 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 Int32\) 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: @@ -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 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\. 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: @@ -43700,7 +43700,7 @@ SELECT + + 26 + - CAST ( - COUNT ( * ) AS INTEGER ) # 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 "Int64\(91\) \* count\(Int64\(1\)\) AS count\(\*\) 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\(91\) \* count\(Int64\(1\)\) (AS count\(\*\) )?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 + + 91 * COUNT ( * ) AS col1, + 26 AS col1 # Datafusion - Types were automatically converted from: @@ -44213,7 +44213,7 @@ SELECT - CAST ( - 70 AS INTEGER ) * - 15 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 934 -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 "nullif\(Int64\(85\), count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(79\)\) \* Int64\(11\) \- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "nullif\(Int64\(85\), count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(79\)\) \* Int64\(11\) \- count\(Int64\(\-3\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, ( NULLIF ( + 85, + COUNT ( * ) + ( + 79 ) ) ) * 11 - COUNT ( ALL + - 3 ) AS col0 query I rowsort label-8426 @@ -47436,7 +47436,7 @@ SELECT ALL 20 * + ( COUNT ( * ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 503034 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) \* Int64\(87\) \* Int64\(\-98\) 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\(\-59\) \* Int64\(87\) \* Int64\(\-98\) 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 - 59 * 87 * - 98 col1, + COUNT ( * ) col1 query I rowsort label-9044 @@ -48677,7 +48677,7 @@ SELECT - 81 / 16 # Datafusion - Datafusion expected results: # Datafusion - Expected - -18 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) \* count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(\-18\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 18 * + + COUNT ( * ) AS col1, + 60 AS col1 query I rowsort @@ -48884,7 +48884,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) 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\(50\) 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 50 AS col0, COUNT ( * ) AS col0 query I rowsort label-9318 @@ -52164,7 +52164,7 @@ SELECT ( + + COUNT ( * ) ) - 84 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \+ \(\- Int64\(\-82\)\) / Int64\(\-43\) AS col1" at position 0 and "Int64\(44\) \+ 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\(69\) \+ \(\- Int64\(\-82\)\) / Int64\(\-43\) AS col1" at position 0 and "Int64\(44\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 69 + - - 82 / - 43 AS col1, + 44 + COUNT ( * ) AS col1 query I rowsort label-9947 diff --git a/data/sqlite/random/expr/slt_good_9.slt b/data/sqlite/random/expr/slt_good_9.slt index 8be04a5..3ca5a1d 100644 --- a/data/sqlite/random/expr/slt_good_9.slt +++ b/data/sqlite/random/expr/slt_good_9.slt @@ -102,7 +102,7 @@ SELECT + 85 + 94 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) 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\(76\) 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 76 AS col2, COUNT ( * ) AS col2 query I rowsort label-13 @@ -2379,7 +2379,7 @@ SELECT - 16 * - - 52 AS col2, + 64 / 15 + + 67 * - 92 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-9\)\) 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\(\-9\)\) 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 - - 9 AS col2, + COUNT ( * ) AS col2 query I rowsort @@ -2390,7 +2390,7 @@ SELECT ALL + ( - - 5 ) # 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\(53\) / CASE Int64\(\-61\) WHEN Int64\(73\) \+ count\(Int64\(1\)\) AS count\(\*\) THEN count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-10\) \+ \(\- Int64\(\-16\)\) \+ Int64\(38\) / count\(DISTINCT Int64\(78\)\) \+ Int64\(15\) \+ Int64\(1\) WHEN \(\- Int64\(91\)\) THEN count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(49\) END \+ Int64\(14\) / 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\(53\) / CASE Int64\(\-61\) WHEN Int64\(73\) \+ count\(Int64\(1\)\) AS count\(\*\) THEN count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-10\) \+ \(\- Int64\(\-16\)\) \+ Int64\(38\) / count\(DISTINCT Int64\(78\)\) \+ Int64\(15\) \+ Int64\(1\) WHEN \(\- Int64\(91\)\) THEN count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(49\) END \+ Int64\(14\) / Int64\(6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col1, 53 / CASE - 61 WHEN 73 + COUNT ( * ) THEN COUNT ( * ) * - 10 + - - 16 + + + 38 / COUNT ( DISTINCT 78 ) + + 15 + 1 WHEN - + 91 THEN + COUNT ( * ) + 49 END + 14 / 6 col1 query II rowsort @@ -3881,7 +3881,7 @@ SELECT - 21 + - MAX ( ALL - - 87 ) - - 33 / 73 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 7 -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\(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\(\*\) )?AS col1" at position 0 and "Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, 7 AS col1 query I rowsort @@ -9237,7 +9237,7 @@ SELECT ALL 25 + CAST ( - MIN ( + 87 ) AS INTEGER ) AS col1 # Datafusion - Expected - 51 # Datafusion - Expected - 57 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(57\) \* \(\- \(\- 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\(50\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(57\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 50 + + COUNT ( * ) AS col0, + 57 * - - COUNT ( * ) AS col0, 92 + - 17 AS col2 query I rowsort label-1749 @@ -12684,7 +12684,7 @@ SELECT ALL - 52 / + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col0" at position 0 and "Int64\(15\) / 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\(63\) AS col0" at position 0 and "Int64\(15\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 63 col0, 15 / + + COUNT ( * ) col0 query I rowsort label-2402 @@ -14581,7 +14581,7 @@ SELECT ALL 22 * + 10 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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\(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 ALL 79 col0, COUNT ( * ) AS col0 query I rowsort label-2760 @@ -17639,7 +17639,7 @@ SELECT ALL - - 82 - + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) 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\(19\) 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 19 AS col1, COUNT ( * ) AS col1 query I rowsort label-3348 @@ -22950,7 +22950,7 @@ SELECT ALL 16 + + + NULLIF ( - 39, MAX ( COALESCE ( - - 46, CAST ( NULL AS INTEG # Datafusion - Datafusion expected results: # Datafusion - Expected - -52 # Datafusion - Expected - -1186 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- Int64\(52\)\)\) AS col1" at position 0 and "Int64\(15\) \* \(\- Int64\(79\)\) \- 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\(52\)\)\) AS col1" at position 0 and "Int64\(15\) \* \(\- Int64\(79\)\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT SUM ( ALL - + 52 ) AS col1, 15 * - + 79 - + COUNT ( * ) AS col1 query I rowsort @@ -26982,7 +26982,7 @@ SELECT DISTINCT + 31 + + - 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - -64 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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\(\-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 - 64 AS col2, COUNT ( * ) AS col2 query II rowsort @@ -27222,7 +27222,7 @@ SELECT DISTINCT SUM ( - 77 ) col1, COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 421 -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\) \* Int64\(34\) \- Int64\(78\) \+ Int64\(48\) \+ 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\(\*\) )?AS col1" at position 0 and "Int64\(11\) \* Int64\(34\) \- Int64\(78\) \+ Int64\(48\) \+ Int64\(77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col1, 11 * 34 - 78 + + + 48 + + 77 AS col1 query I 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 Int32\) / \(\- 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 @@ -29608,7 +29608,7 @@ SELECT + 54 * - 74 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 110 -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\(42\) \- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(42\) \- Int64\(\-68\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, 42 - + - 68 AS col1 query I rowsort @@ -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 Int32\) 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 @@ -36897,7 +36897,7 @@ SELECT + - MIN ( DISTINCT 41 ) + - + NULLIF ( + 52, + 87 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 1783 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-92\)\) AS col1" at position 0 and "Int64\(78\) \* Int64\(24\) \- \(\- 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 "\(\- Int64\(\-92\)\) AS col1" at position 0 and "Int64\(78\) \* Int64\(24\) \- \(\- Int64\(\-89\)\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 92 AS col1, 78 * 24 - - - 89 / COUNT ( * ) AS col1 query I rowsort @@ -39474,7 +39474,7 @@ SELECT DISTINCT 41 * - 28 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - 316 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(56\) \* Int64\(4\) \+ \(\- Int64\(\-92\)\) \+ Int64\(73\) / 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\(3\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(56\) \* Int64\(4\) \+ \(\- Int64\(\-92\)\) \+ Int64\(73\) / Int64\(82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 3 + + COUNT ( * ) AS col1, + ( 56 ) * 4 + - - 92 + 73 / + 82 AS col1 query I rowsort label-7512 @@ -39963,7 +39963,7 @@ SELECT + 83 col2, + 74 # Datafusion - Expected - 21 # Datafusion - Expected - 418 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) \* Int64\(\-5\) \+ Int64\(\-37\) AS col1" at position 1 and "Int64\(52\) \+ 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\) \* Int64\(\-5\) \+ Int64\(\-37\) AS col1" at position 1 and "Int64\(52\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 21, - 91 * - 5 + - 37 AS col1, 52 + + COUNT ( * ) col1 query I rowsort @@ -41494,7 +41494,7 @@ SELECT 1 + COUNT ( ALL - 9 ) 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 "\(\- 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\(\*\)\) 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 ( * ) AS col1, COUNT ( * ) col1 query I rowsort label-7898 @@ -42149,7 +42149,7 @@ SELECT DISTINCT ( + + 84 ) * - + 94 * + 48 * - COUNT ( ALL + - 25 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -32 -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 "\(\- max\(DISTINCT 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "\(\- max\(DISTINCT Int64\(32\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col1, - MAX ( DISTINCT 32 ) AS col1 query I rowsort label-8024 @@ -43183,7 +43183,7 @@ SELECT 64 - ( - 15 ) # Datafusion - Expected - 23 # Datafusion - Expected - 1 # Datafusion - Expected - -1780 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 and "Int64\(\-20\) \* Int64\(89\) 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\(\*\) )?AS col2" at position 1 and "Int64\(\-20\) \* Int64\(89\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 23, COUNT ( * ) AS col2, - 20 * 89 AS col2 query I rowsort @@ -45870,7 +45870,7 @@ SELECT 21 + + 75 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 41 -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\(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 "Int64\(41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COUNT ( * ) col1, 41 AS col1 query I rowsort @@ -47058,7 +47058,7 @@ SELECT 52 * + 32 / - 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) 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\(94\) 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 94 AS col2, + COUNT ( * ) AS col2 query I rowsort @@ -50495,7 +50495,7 @@ SELECT ALL - ( MIN ( + - 47 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 273910 -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\(86\) \* Int64\(49\) \* 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\(\*\) )?AS col2" at position 0 and "Int64\(86\) \* Int64\(49\) \* Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, 86 * + 49 * 65 AS col2 # Datafusion - Datafusion expected results: diff --git a/data/sqlite/random/expr/slt_good_90.slt b/data/sqlite/random/expr/slt_good_90.slt index 79781ab..d2fa037 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 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\. 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 @@ -425,7 +425,7 @@ SELECT MAX ( ALL + + ( - 4 ) ) + + 57 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -39 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) 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\(\-39\) 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 - 39 AS col0, + COUNT ( * ) * ( COUNT ( * ) ) col0 query I rowsort @@ -1234,7 +1234,7 @@ SELECT - MIN ( + 93 ) / + 31 + - 35 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 43 -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\(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\(43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, + 43 AS col2 query I rowsort @@ -4230,7 +4230,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1496 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \* Int64\(48\) \+ Int64\(56\) 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\(30\) \* Int64\(48\) \+ Int64\(56\) 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 + 30 * 48 + 56 AS col2, COUNT ( * ) col2 query II rowsort label-803 @@ -5976,7 +5976,7 @@ SELECT ( + COUNT ( * ) ) + - - 27 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) 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\) 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 AS col2, + COUNT ( * ) AS col2 query II rowsort @@ -6061,7 +6061,7 @@ SELECT ALL - - COUNT ( * ) + - 53 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -90 -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\(\-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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(\-90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, - 90 AS col1 query I rowsort @@ -8270,7 +8270,7 @@ SELECT - COUNT ( ALL + 38 ) * - 75 + + COUNT ( * ) * + MIN ( + 14 ) + + 26 AS co # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) 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\(\-65\) 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 + - 65 AS col0, COUNT ( * ) AS col0 query I rowsort label-1567 @@ -13004,7 +13004,7 @@ SELECT 52 * + + 35 # 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 \(\- avg\(Int64\(34\)\)\) WHEN Int64\(67\) THEN Int64\(\-32\) ELSE NULL END\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "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 "\(\- CASE \(\- avg\(Int64\(34\)\)\) WHEN Int64\(67\) THEN Int64\(\-32\) ELSE NULL END\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "count\(Int64\(\-5\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( - CASE - + AVG ( ALL + 34 ) WHEN + + 67 THEN - 32 ELSE NULL END ) + + COUNT ( * ) col1, COUNT ( - 5 ) col1 query I rowsort label-2475 @@ -16100,7 +16100,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -2769 # Datafusion - Expected - 3108 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) \* \(\- Int64\(\-71\)\) AS col2" at position 0 and "Int64\(84\) \* \(\- 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 "Int64\(\-39\) \* \(\- Int64\(\-71\)\) AS col2" at position 0 and "Int64\(84\) \* \(\- Int64\(\-37\)\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 39 * - - 71 AS col2, + 84 * - - 37 / COUNT ( * ) AS col2 query I rowsort @@ -16860,7 +16860,7 @@ SELECT ALL - + 44, 9 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 126 -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 "min\(Int64\(37\)\) \+ 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "min\(Int64\(37\)\) \+ Int64\(89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, + MIN ( 37 ) + + 89 AS col2 query I rowsort @@ -20402,7 +20402,7 @@ SELECT DISTINCT ( SUM ( DISTINCT + + 5 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) \* count\(Int64\(1\)\) AS count\(\*\) 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\(94\) \* count\(Int64\(1\)\) (AS count\(\*\) )?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 + 94 * + + COUNT ( * ) AS col2, 37 AS col2 query I rowsort label-3880 @@ -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 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\. SELECT 47 * CAST ( NULL AS INTEGER ) + - 17 AS col0, COUNT ( * ) col0 query I rowsort @@ -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 Int32\) \* 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 @@ -26375,7 +26375,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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col1, COUNT ( * ) AS col1 query I rowsort label-5012 @@ -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 Int32\) \+ 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 @@ -30440,7 +30440,7 @@ SELECT - ( + CAST ( 6 AS INTEGER ) ) * + 22 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) 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\(64\) 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 64 AS col1, COUNT ( * ) AS col1 query I rowsort label-5788 @@ -33997,7 +33997,7 @@ SELECT ALL CAST ( NULL AS FLOAT8 ) AS col1, CASE - - ( + 15 ) WHEN + 90 * - 56 + # 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\(\-2\) 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\(\-2\) 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 - 2 col1, + COUNT ( * ) AS col1 query I rowsort @@ -35552,7 +35552,7 @@ SELECT ALL + + 33 * 53 # 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\(\-95\) \+ count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN Int64\(\-91\) \* Int64\(95\) THEN NULL WHEN \(\- coalesce\(Int64\(23\), \(\- Int64\(5\)\) \* \(\- Int64\(76\)\)\)\) THEN Int64\(6\) END\) \+ \(\- Int64\(21\)\) \+ Int64\(63\) \+ Int64\(\-95\) \* Int64\(\-22\) \* Int64\(71\) \+ \(\- Int64\(39\)\) / count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) 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 "\(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(\-95\) \+ count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN Int64\(\-91\) \* Int64\(95\) THEN NULL WHEN \(\- coalesce\(Int64\(23\), \(\- Int64\(5\)\) \* \(\- Int64\(76\)\)\)\) THEN Int64\(6\) END\) \+ \(\- Int64\(21\)\) \+ Int64\(63\) \+ Int64\(\-95\) \* Int64\(\-22\) \* Int64\(71\) \+ \(\- Int64\(39\)\) / count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(\-4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CASE COUNT ( * ) WHEN - 95 + COUNT ( * ) THEN NULL WHEN - 91 * + 95 THEN NULL WHEN - COALESCE ( 23, + - ( + 5 ) * + ( - + 76 ) ) THEN 6 END + - + 21 + 63 + - 95 * - 22 * 71 + - ( + 39 ) / + + COUNT ( * ) * COUNT ( * ) AS col2, - 4 AS col2 query I rowsort @@ -36070,7 +36070,7 @@ SELECT ( + 47 ) * 90 * MAX ( ALL 1 ) + + + 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -86 -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\(\-86\) / 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\(\-86\) / 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, - 86 / ( COUNT ( * ) ) col2 query I rowsort @@ -42844,7 +42844,7 @@ SELECT ALL 94, + 84 * COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) 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\(\-95\) 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 - 95 AS col2, COUNT ( * ) AS col2 # Datafusion - Types were automatically converted from: @@ -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 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\. SELECT - CAST ( + + 16 AS INTEGER ) / + 76 col0, COUNT ( * ) AS col0 query I rowsort @@ -46511,7 +46511,7 @@ SELECT ALL MAX ( + 2 ) + - 37 * - 44 * - + 16 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - 9711 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col1" at position 0 and "Int64\(84\) \+ Int64\(83\) \* Int64\(24\) \+ Int64\(83\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(92\) \* 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\(82\) AS col1" at position 0 and "Int64\(84\) \+ Int64\(83\) \* Int64\(24\) \+ Int64\(83\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(92\) \* 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 82 AS col1, 84 + 83 * 24 + 83 * + + COUNT ( * ) * + + 92 * COUNT ( * ) - COUNT ( * ) col1 query II rowsort label-8851 @@ -47780,7 +47780,7 @@ SELECT 52 * - + 78 * + + 32 * 79 + - 90 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 27 -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\(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\(\*\) )?AS col2" at position 0 and "Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, 27 AS col2 query I rowsort label-9095 @@ -49914,7 +49914,7 @@ SELECT ALL MIN ( ALL 93 ) * + 80 + - 54 / 24, 31 * + SUM ( + + 20 ) * - - 70 - 3 # 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 "avg\(Int64\(31\)\) \* \(\- CAST\(NULL AS Float64\)\) \* Int64\(84\) \+ Int64\(\-5\) AS col2" at position 0 and "Int64\(\-74\) / 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\(Int64\(31\)\) \* \(\- CAST\(NULL AS Float64\)\) \* Int64\(84\) \+ Int64\(\-5\) AS col2" at position 0 and "Int64\(\-74\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL AVG ( 31 ) * - CAST ( NULL AS FLOAT8 ) * + 84 + - 5 AS col2, - 74 / COUNT ( * ) AS col2 # Datafusion - Types were automatically converted from: diff --git a/data/sqlite/random/expr/slt_good_91.slt b/data/sqlite/random/expr/slt_good_91.slt index 11e421f..4322b74 100644 --- a/data/sqlite/random/expr/slt_good_91.slt +++ b/data/sqlite/random/expr/slt_good_91.slt @@ -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 Int32\) / 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 @@ -4360,7 +4360,7 @@ SELECT ALL + MAX ( - 42 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - -84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-7\) \* count\(Int64\(1\)\) AS count\(\*\) 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-7\) \* count\(Int64\(1\)\) (AS count\(\*\) )?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 - COUNT ( * ) * ( - 7 ) * + + COUNT ( * ) AS col2, - 84 AS col2 query I rowsort label-827 @@ -6045,7 +6045,7 @@ SELECT ALL + ( + + 21 ) AS col0 # 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\(\-73\) 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\) 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 ( - 73 ) AS col2, + COUNT ( * ) AS col2 query I rowsort label-1147 @@ -6150,7 +6150,7 @@ NULL # 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 "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 "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 ALL 77 AS col0, + COUNT ( * ) AS col0 query I rowsort label-1167 @@ -9285,7 +9285,7 @@ SELECT + 94 * - 13 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -136 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \* \(\- Int64\(8\)\) 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\(17\) \* \(\- Int64\(8\)\) 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 17 * - + 8 AS col0, + COUNT ( * ) + + COUNT ( * ) AS col0 query I rowsort @@ -14928,7 +14928,7 @@ SELECT + 93 - + 10 + + - 0 + CAST ( - 90 AS INTEGER ) * + - 19 AS col1 # Datafusion - Expected - 64 # 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 col1" at position 1 and "Int64\(53\) 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 "Int64\(53\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 63 + COUNT ( * ) AS col2, COUNT ( * ) AS col1, 53 AS col1 query I rowsort @@ -15142,7 +15142,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\(\-98\) \- Int64\(\-20\) \+ Int64\(\-64\) \- Int64\(26\) \+ CASE Int64\(38\) WHEN Int64\(37\) THEN Int64\(1\) END \+ Int64\(3\) \* \(\- \(\- coalesce\(Int64\(77\), Int64\(\-64\) \- Int64\(27\) \* Int64\(\-47\)\)\)\) 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\(\-98\) \- Int64\(\-20\) \+ Int64\(\-64\) \- Int64\(26\) \+ CASE Int64\(38\) WHEN Int64\(37\) THEN Int64\(1\) END \+ Int64\(3\) \* \(\- \(\- coalesce\(Int64\(77\), Int64\(\-64\) \- Int64\(27\) \* Int64\(\-47\)\)\)\) 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 - 98 - - 20 + + - 64 - 26 + CASE + 38 WHEN 37 THEN 1 END + + 3 * - - COALESCE ( + + 77, + - 64 - + 27 * - 47 ) AS col1, COUNT ( * ) AS col1 query II rowsort @@ -28117,7 +28117,7 @@ SELECT - 51 * - + COUNT ( * ) + - + 39 AS col0, + 55 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(1\)\) AS count\(\*\) 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\(96\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 96 / - + COUNT ( * ) + + COUNT ( * ) AS col2, 21 AS col2 query I rowsort @@ -28604,7 +28604,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) 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 "Int64\(9\) 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 DISTINCT 9 AS col2, COUNT ( * ) / COUNT ( * ) 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 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\. SELECT ALL + 57 AS col2, CAST ( + COUNT ( * ) AS INTEGER ) * ( + - COUNT ( * ) ) - - 28 * + - 32 col2 query I rowsort label-5722 @@ -33382,7 +33382,7 @@ SELECT - ( + 67 ) + + 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -799 -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\(36\)\) \* \(\- Int64\(\-24\)\) \+ 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\(\*\) )?AS col2" at position 0 and "\(\- Int64\(36\)\) \* \(\- Int64\(\-24\)\) \+ Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col2, - ( + 36 ) * - - 24 + + ( + 65 ) AS col2 query I rowsort label-6343 @@ -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 Int32\) \+ 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 @@ -35611,7 +35611,7 @@ SELECT DISTINCT - 90 * - + ( + 51 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - -402 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \+ Int64\(5\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-6\) \* \(\- 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\(30\) \+ Int64\(5\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(\-6\) \* \(\- Int64\(\-67\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 30 + 5 * + COUNT ( * ) AS col2, - 6 * - - 67 AS col2 query I rowsort label-6764 @@ -38192,7 +38192,7 @@ SELECT ALL MAX ( ALL + - 26 ) / - 35 * - 84 - - COUNT ( * ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -94 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) 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\(\-94\) 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 - 94 AS col2, COUNT ( * ) AS col2 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 Int32\)\) \* 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 @@ -40529,7 +40529,7 @@ SELECT ALL NULLIF ( 44, - 83 * 55 ) + + 69 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -75 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) AS col1" at position 0 and "Int64\(53\) \* 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\(53\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 75 AS col1, 53 * + COUNT ( * ) AS col1 # Datafusion - Types were automatically converted from: @@ -46883,7 +46883,7 @@ SELECT DISTINCT - 68 * + 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - 172536 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \* Int64\(\-28\) \* \(\- Int64\(79\)\) 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 "Int64\(78\) \* Int64\(\-28\) \* \(\- Int64\(79\)\) 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 78 * - 28 * - + 79 col0, 30 * COUNT ( * ) AS col0 query I rowsort @@ -50209,7 +50209,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -98 # Datafusion - Expected - 1 -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\(\*\) AS col0" at position 1 have the 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\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 98 AS col0, COUNT ( * ) col0 query I rowsort @@ -52070,7 +52070,7 @@ SELECT COUNT ( * ) + + ( - COUNT ( - 51 ) ) + + 28 AS col2, CAST ( + 27 AS INTEG # Datafusion - Expected - 36 # Datafusion - Expected - -41 # Datafusion - Expected - 50 -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\(49\), Int64\(32\)\) \+ 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\(36\) AS col1" at position 0 and "coalesce\(Int64\(49\), Int64\(32\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 36 AS col1, + CAST ( - 41 AS INTEGER ) AS col0, + + COALESCE ( + 49, + 32 ) + COUNT ( * ) AS col1 query I rowsort @@ -52262,7 +52262,7 @@ SELECT ALL 20 - + - 80 - - 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - -30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) 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 "Int64\(74\) 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 DISTINCT 74 AS col0, - 30 * + COUNT ( * ) AS col0 query II rowsort diff --git a/data/sqlite/random/expr/slt_good_92.slt b/data/sqlite/random/expr/slt_good_92.slt index bbf4d16..f9223f4 100644 --- a/data/sqlite/random/expr/slt_good_92.slt +++ b/data/sqlite/random/expr/slt_good_92.slt @@ -389,7 +389,7 @@ SELECT + 84 * + + 71 + + 86 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6973 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) \* \(\- Int64\(83\)\) \- \(\- Int64\(84\)\) 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\(\-83\) \* \(\- Int64\(83\)\) \- \(\- Int64\(84\)\) 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 + - 83 * + - ( + 83 ) - - + 84 AS col2, COUNT ( * ) AS col2 query I rowsort label-68 @@ -1070,7 +1070,7 @@ SELECT + 92 * + + 37 + + 90 # 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 count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(94\) THEN Int64\(38\) 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 "CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(94\) THEN Int64\(38\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col2, CASE + COUNT ( * ) WHEN 94 THEN 38 END AS col2 query I rowsort @@ -6964,7 +6964,7 @@ SELECT + 49 * - 79 + + 51 AS col1, AVG ( DISTINCT + CAST ( + - CASE + 23 WHEN 48 # Datafusion - Datafusion expected results: # Datafusion - Expected - 174 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \- Int64\(\-93\) \+ coalesce\(Int64\(48\), Int64\(46\), coalesce\(Int64\(31\), CASE WHEN NOT Int64\(84\) IS NOT NULL THEN Int64\(48\) \+ Int64\(54\) \* Int64\(52\) ELSE NULL END\)\) \+ Int64\(32\) \* count\(Int64\(1\)\) AS count\(\*\) 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 "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \- Int64\(\-93\) \+ coalesce\(Int64\(48\), Int64\(46\), coalesce\(Int64\(31\), CASE WHEN NOT Int64\(84\) IS NOT NULL THEN Int64\(48\) \+ Int64\(54\) \* Int64\(52\) ELSE NULL END\)\) \+ Int64\(32\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(\-5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - COUNT ( * ) - - 93 + + COALESCE ( 48, + 46, + COALESCE ( + 31, + CASE WHEN NOT + 84 IS NOT NULL THEN + 48 + 54 * + 52 ELSE NULL END ) ) + + + 32 * + + COUNT ( * ) AS col1, - 5 AS col1 query I rowsort @@ -13166,7 +13166,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 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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 + COUNT ( * ) AS col1, + 92 AS col1 query I rowsort @@ -15229,7 +15229,7 @@ SELECT + ( + + 91 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -3584 -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\(64\) \* 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(64\) \* Int64\(\-56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) col0, ( 64 ) * - 56 AS col0 # Datafusion - Datafusion expected results: @@ -16418,7 +16418,7 @@ SELECT - CAST ( - - 84 AS INTEGER ) + - - 62 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 "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 76 AS col0, COUNT ( * ) AS col0 query II 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 Int32\) \+ \(\- 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 @@ -20757,7 +20757,7 @@ SELECT ALL 67 + + - 76 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -96 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(1\), Int64\(45\)\) \* Int64\(\-96\) \* count\(Int64\(1\)\) AS count\(\*\) 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 "nullif\(Int64\(1\), Int64\(45\)\) \* Int64\(\-96\) \* count\(Int64\(1\)\) (AS count\(\*\) )?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 NULLIF ( + + ( + + 1 ), 45 ) * - 96 * + COUNT ( * ) AS col1, 2 col1 query I rowsort label-3948 @@ -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 Int32\)\) 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 @@ -24257,7 +24257,7 @@ SELECT ( - ( 53 ) ) # 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 "Int64\(\-93\) 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 "Int64\(\-93\) 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 DISTINCT - 93 AS col1, COUNT ( * ) * COUNT ( * ) AS col1 query I rowsort label-4617 @@ -28846,7 +28846,7 @@ NULL # 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 "count\(Int64\(1\)\) AS count\(\*\) 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\(\*\) )?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 ( * ) AS col1, + 39 AS col1 query I rowsort label-5490 @@ -30192,7 +30192,7 @@ SELECT SUM ( + - 25 ) * + 35 * - 65 + + + 31 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 "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 "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 COUNT ( * ) AS col2, + 3 AS col2 query I rowsort label-5745 @@ -31341,7 +31341,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3381 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) \* Int64\(\-77\) \+ Int64\(7\) \* count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(44\) \* Int64\(\-77\) \+ Int64\(7\) \* count\(Int64\(1\)\) (AS count\(\*\) )?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 44 * + ( - 77 ) + + 7 * COUNT ( * ) AS col0, 49 AS col0 query I rowsort @@ -31818,7 +31818,7 @@ SELECT - ( - 10 ) AS col2 # 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 "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- max\(\(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "\(\- max\(\(\- Int64\(\-37\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col0, - MAX ( ALL - - 37 ) AS col0 query II rowsort label-6051 @@ -32842,7 +32842,7 @@ SELECT ALL + ( + - 33 ) + 15 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 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\(\*\)\) 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 ( * ) ) col0, + COUNT ( * ) AS col0 query I rowsort @@ -38841,7 +38841,7 @@ SELECT + 43 + + ( - ( - - 44 ) ) + - 51 * 93 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -75 -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\) AS col2" at position 1 have the same name\. Consider aliasing \("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\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COUNT ( * ) AS col2, - 75 AS col2 query I rowsort label-7394 @@ -39421,7 +39421,7 @@ SELECT COUNT ( * ) + 81 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) 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\(44\) 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 + 44 AS col1, COUNT ( * ) AS col1 # Datafusion - Types were automatically converted from: @@ -40082,7 +40082,7 @@ SELECT MAX ( + + 19 ) * 10 + ( - 40 ) + + 30 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 32 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, 32 AS col1 query I rowsort label-7626 @@ -40141,7 +40141,7 @@ SELECT + 65 * - 94 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -65 -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 "max\(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\(\*\) )?AS col1" at position 0 and "max\(Int64\(\-65\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col1, + MAX ( - 65 ) AS col1 query I rowsort @@ -40249,7 +40249,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1530 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) \* Int64\(17\) 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\(\-90\) \* Int64\(17\) 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 - 90 * + 17 AS col1, COUNT ( * ) AS col1 query I rowsort label-7658 @@ -42624,7 +42624,7 @@ SELECT DISTINCT + + ( - - COUNT ( * ) ) + + + 14 AS col2 # 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\(Int64\(1\)\) AS count\(\*\) 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\(Int64\(1\)\) (AS count\(\*\) )?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 ( * ) AS col2, ( - 61 ) col2 query II rowsort label-8110 @@ -43099,7 +43099,7 @@ SELECT - 92 + 97 * + 1 # 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 "sum\(Int64\(48\)\) 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\(Int64\(48\)\) 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 SUM ( + 48 ) AS col0, + COUNT ( * ) AS col0 query I rowsort @@ -43279,7 +43279,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -231 # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) \+ Int64\(\-86\) \+ \(\- coalesce\(\(\- Int64\(\-77\)\), coalesce\(Int64\(97\), \(\- CASE Int64\(\-6\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(58\) / Int64\(33\) \* Int64\(22\) END\)\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- coalesce\(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\(\-68\) \+ Int64\(\-86\) \+ \(\- coalesce\(\(\- Int64\(\-77\)\), coalesce\(Int64\(97\), \(\- CASE Int64\(\-6\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(58\) / Int64\(33\) \* Int64\(22\) END\)\)\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "\(\- coalesce\(Int64\(76\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 68 + - 86 + + - COALESCE ( - - 77, + COALESCE ( + + 97, - + CASE - 6 WHEN + - ( + COUNT ( * ) ) THEN 58 / + 33 * 22 END ) ) * ( COUNT ( * ) ) AS col1, - COALESCE ( 76, - COUNT ( * ) ) col1 query I rowsort label-8235 @@ -45301,7 +45301,7 @@ SELECT + 44 * 98 col2 # Datafusion - Expected - 43 # Datafusion - Expected - 9 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 and "Int64\(71\) 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\(9\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 and "Int64\(71\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COALESCE ( - - 14, - + 84 ) + + 29 AS col0, 9 * + COUNT ( * ) AS col2, + + 71 col2 query I rowsort label-8623 @@ -46515,7 +46515,7 @@ SELECT - 96 * + COUNT ( 82 ) + - 38 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 720 -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\(36\) \* 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(36\) \* Int64\(20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, 36 * + 20 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 Int32\) \* 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 @@ -49793,7 +49793,7 @@ SELECT COUNT ( * ), - 84 col1 # 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 "Int64\(\-10\) 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\(\-10\) 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 - 10 col0, + COUNT ( * ) AS col0 query I rowsort label-9478 @@ -51003,7 +51003,7 @@ SELECT + 18 + - 67 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 38 -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\) AS col2" at position 1 have the same name\. Consider aliasing \("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\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col2, 38 AS col2 # Datafusion - Types were automatically converted from: @@ -51560,7 +51560,7 @@ SELECT ALL - 31 AS col0, MIN ( ALL - 10 ) + - 28 AS col1 # 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\) 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\(0\) 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 + + 0 AS col0, + COUNT ( * ) AS col0 query I rowsort label-9811 diff --git a/data/sqlite/random/expr/slt_good_93.slt b/data/sqlite/random/expr/slt_good_93.slt index 7bf263d..b24e327 100644 --- a/data/sqlite/random/expr/slt_good_93.slt +++ b/data/sqlite/random/expr/slt_good_93.slt @@ -3555,7 +3555,7 @@ SELECT ALL - + 58 + - + 54 * 89 AS col2 # Datafusion - Expected - 3078 # Datafusion - Expected - -69 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \* Int64\(81\) AS col2" at position 0 and "min\(coalesce\(Int64\(\-68\), Int64\(\-48\), Int64\(56\)\)\) \- 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\(38\) \* Int64\(81\) AS col2" at position 0 and "min\(coalesce\(Int64\(\-68\), Int64\(\-48\), Int64\(56\)\)\) \- count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 38 * + 81 AS col2, MIN ( COALESCE ( + - 68, - 48, + + 56 ) ) - + COUNT ( * ) AS col2, 71 AS col0 query I rowsort label-669 @@ -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 Int32\) 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 @@ -5900,7 +5900,7 @@ SELECT ALL - 15, - 91 + + 95 AS col0 # Datafusion - Expected - 1 # Datafusion - Expected - -52 # 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 "\(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 COUNT ( * ) AS col0, - 52 AS col1, - COUNT ( * ) AS col0 query I rowsort @@ -12011,7 +12011,7 @@ SELECT ALL + 10 + - 55 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 55 -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\(12\) \+ Int64\(5\) \- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(12\) \+ Int64\(5\) \- Int64\(\-38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col2, + 12 + 5 - - 38 AS col2 query I rowsort label-2284 @@ -12803,7 +12803,7 @@ SELECT ( COUNT ( * ) ) * - - ( + 29 ) + - 52 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 1 -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\(\*\) AS col0" at position 1 have the 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\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 25 AS col0, + COUNT ( * ) AS col0 query I rowsort label-2433 @@ -14164,7 +14164,7 @@ SELECT 76 / 12 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -2356 -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\(62\) \* \(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(62\) \* \(\- Int64\(38\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) col1, 62 * - + 38 AS col1 query I rowsort @@ -16303,7 +16303,7 @@ SELECT MIN ( 9 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 182 -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\(96\) \+ \(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(96\) \+ \(\- Int64\(\-86\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, 96 + - - 86 AS col1 query II rowsort label-3094 @@ -19255,7 +19255,7 @@ SELECT DISTINCT + COALESCE ( + 0, 58 ) * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - 1 -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\(\*\) AS col1" at position 1 have the 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\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 20 AS col1, + COUNT ( * ) AS col1 query I rowsort @@ -22899,7 +22899,7 @@ SELECT ALL - 80 * 6 + ( + COUNT ( DISTINCT - - 7 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -74 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-74\) 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\(\-74\) 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 ( - 74 ) AS col1, COUNT ( * ) AS col1 query I rowsort @@ -24325,7 +24325,7 @@ SELECT + - CAST ( 80 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 65 # Datafusion - Expected - -532 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(38\) \* 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\(65\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(38\) \* Int64\(\-14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 65 / + COUNT ( * ) AS col1, 38 * - 14 AS col1 query I rowsort label-4619 @@ -27967,7 +27967,7 @@ SELECT ALL 66 + + 6 # Datafusion - Expected - -458 # Datafusion - Expected - NULL # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(17\)\) \* Int64\(27\) \+ count\(Int64\(1\)\) AS count\(\*\) 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 "\(\- Int64\(17\)\) \* Int64\(27\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(18\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + 17 * + 27 + + COUNT ( * ) col0, 79 * + CAST ( NULL AS INTEGER ) * 27, + + 18 AS col0 query I rowsort label-5319 @@ -28797,7 +28797,7 @@ SELECT ALL COUNT ( * ) + 28 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) 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\(50\) 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 50 AS col0, + COUNT ( * ) AS col0 query I rowsort label-5478 @@ -30940,7 +30940,7 @@ SELECT - COALESCE ( + + 10, - 62, + 12 ) 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 "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\(\*\) )?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 ( * ) col1, + COUNT ( * ) AS col1 query I rowsort @@ -34072,7 +34072,7 @@ SELECT ALL 98 + - 28 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 6320 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- Int64\(4\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(79\) \* 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 "min\(\(\- Int64\(4\)\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(79\) \* Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + MIN ( - + 4 ) + + COUNT ( * ) AS col1, 79 * + 80 AS col1 query I rowsort @@ -38936,7 +38936,7 @@ SELECT DISTINCT - 34 / + 46 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3160 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \+ Int64\(35\) \* Int64\(88\) AS col2" at position 0 and "Int64\(11\) \+ 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\(80\) \+ Int64\(35\) \* Int64\(88\) AS col2" at position 0 and "Int64\(11\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 80 + 35 * + 88 AS col2, + 11 + + COUNT ( * ) AS col2 query II rowsort label-7411 @@ -39654,7 +39654,7 @@ SELECT + COUNT ( * ) * + 11 col2, - COUNT ( * ) * - COUNT ( * ) * - CAST ( NULL # 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 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\. SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) + + 2 AS col2, 36 AS col2 query II rowsort label-7545 @@ -46344,7 +46344,7 @@ SELECT - 28 col1, - ( + COALESCE ( - ( + 24 ), MIN ( + ( - 64 ) ) - + 19 * + 35 # 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 "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\(\*\) )?AS col1" at position 0 and "Int64\(1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COUNT ( * ) AS col1, 1 col1 query I rowsort label-8822 @@ -48357,7 +48357,7 @@ SELECT - COALESCE ( + - 74, 18, 24 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 11 -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 "\(\- max\(DISTINCT \(\- nullif\(Int64\(11\), 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 "\(\- max\(DISTINCT \(\- nullif\(Int64\(11\), Int64\(12\)\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, - MAX ( DISTINCT - NULLIF ( + 11, 12 ) ) col1 query I rowsort label-9202 @@ -48886,7 +48886,7 @@ SELECT - MIN ( ALL - 22 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -137 -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\(90\) \* \(\- 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(90\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-47\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col0, + 90 * - ( COUNT ( * ) ) + - 47 AS col0 query I rowsort label-9304 @@ -50188,7 +50188,7 @@ SELECT ALL 46 / 50 + 64 * - + 83 * - COUNT ( * ) 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 "nullif\(Int64\(4\), Int64\(61\)\) 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\(4\), Int64\(61\)\) 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 ( + 4, + 61 ) AS col2, + COUNT ( * ) AS col2 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_94.slt b/data/sqlite/random/expr/slt_good_94.slt index 8029981..8516933 100644 --- a/data/sqlite/random/expr/slt_good_94.slt +++ b/data/sqlite/random/expr/slt_good_94.slt @@ -3128,7 +3128,7 @@ SELECT ALL + 30 + + + 9 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -40 # Datafusion - Expected - 0 -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 "Int64\(90\) / 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\(\-41\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(90\) / Int64\(96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + ( + - 41 ) + + ( + COUNT ( * ) ) AS col1, 90 / 96 AS col1 query I rowsort label-585 @@ -5272,7 +5272,7 @@ SELECT MIN ( DISTINCT - - 82 ) # 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 "Int64\(7\) AS col2" at position 0 and "Int64\(6\) / 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\(7\) AS col2" at position 0 and "Int64\(6\) / 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 7 AS col2, 6 / + + COUNT ( * ) + + COUNT ( * ) AS col2 query I rowsort label-993 @@ -5330,7 +5330,7 @@ SELECT ALL 87 - - ( - + COUNT ( * ) ) 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 \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(\-54\) \* Int64\(\-92\) \+ Int64\(12\) \+ \(\- Int64\(58\)\) / Int64\(31\) THEN Int64\(33\) END \* Int64\(\-98\) 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 "CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(\-54\) \* Int64\(\-92\) \+ Int64\(12\) \+ \(\- Int64\(58\)\) / Int64\(31\) THEN Int64\(33\) END \* Int64\(\-98\) 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 CASE - COUNT ( * ) WHEN - 54 * ( - 92 ) + + 12 + - + 58 / + 31 THEN + 33 END * - 98 AS col2, COUNT ( * ) AS col2 query I rowsort label-1004 @@ -6087,7 +6087,7 @@ SELECT - 61 + - COUNT ( * ) AS col1, 7 + - + 93 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -4416 -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\(69\) \* 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(69\) \* Int64\(\-64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col0, 69 * - 64 AS col0 # Datafusion - Types were automatically converted from: @@ -6760,7 +6760,7 @@ SELECT ALL + COUNT ( * ) * - + ( - 12 ) # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, COUNT ( * ) AS col1 query II rowsort @@ -8568,7 +8568,7 @@ SELECT 83 - - - CAST ( + AVG ( - 94 ) AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 4 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col0, + 4 AS col0 query I rowsort label-1621 @@ -11279,7 +11279,7 @@ SELECT - + 75 * - + 26 * COALESCE ( - 9, + 54 ) * - + 45 * - + 90 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col2" at position 0 and "Int64\(93\) \* 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\(80\) AS col2" at position 0 and "Int64\(93\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 80 col2, 93 * COUNT ( * ) AS col2 query I rowsort label-2141 @@ -17449,7 +17449,7 @@ SELECT DISTINCT 85 AS col2, - 37 * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - 121 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \+ max\(Int64\(\-15\)\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "max\(DISTINCT Int64\(83\)\) \+ 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\(56\) \+ max\(Int64\(\-15\)\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "max\(DISTINCT Int64\(83\)\) \+ Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 56 + + MAX ( - 15 ) / + COUNT ( * ) AS col1, MAX ( DISTINCT 83 ) + 38 AS col1 query II rowsort label-3314 @@ -18050,7 +18050,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 78 -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 "nullif\(Int64\(78\), 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\(\*\) )?AS col2" at position 0 and "nullif\(Int64\(78\), Int64\(\-11\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col2, NULLIF ( + 78, + - 11 ) AS col2 query I rowsort @@ -18118,7 +18118,7 @@ SELECT ALL COUNT ( ALL - + 68 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - -119 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col0" at position 0 and "Int64\(\-49\) \- Int64\(71\) \+ 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\(8\) AS col0" at position 0 and "Int64\(\-49\) \- Int64\(71\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 8 AS col0, - 49 - + + 71 + + COUNT ( * ) col0 query I rowsort @@ -20002,7 +20002,7 @@ SELECT ALL - 98 + + 69 * + + 48 * COUNT ( DISTINCT + - CASE 22 WHEN + 75 THEN - # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - 30825 -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 "Int64\(59\) \* Int64\(75\) \+ \(\- min\(Int64\(40\)\)\) \* Int64\(11\) \* 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\(43\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(59\) \* Int64\(75\) \+ \(\- min\(Int64\(40\)\)\) \* Int64\(11\) \* Int64\(\-60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 43 / COUNT ( * ) AS col1, + 59 * + 75 + - MIN ( 40 ) * 11 * - 60 AS col1 query I rowsort label-3798 @@ -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 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\. 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 @@ -21157,7 +21157,7 @@ SELECT + 64 + 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - -21 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \+ Int64\(\-65\) \+ 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 "Int64\(39\) \+ Int64\(\-65\) \+ 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 + 39 + - 65 + 5 col1, COUNT ( * ) AS col1 # Datafusion - Types were automatically converted from: @@ -24206,7 +24206,7 @@ SELECT ALL + 89, - COUNT ( * ) 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 "\(\- CASE Int64\(56\) WHEN Int64\(\-5\) \+ Int64\(\-67\) \+ Int64\(15\) / count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(59\) \* Int64\(66\) / Int64\(\-80\) WHEN Int64\(78\) / Int64\(39\) \* Int64\(67\) THEN NULL WHEN count\(Int64\(1\)\) AS count\(\*\) / Int64\(71\) THEN Int64\(8\) END\) \* Int64\(\-39\) \+ Int64\(21\) \- Int64\(\-1\) \* Int64\(64\) 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\(56\) WHEN Int64\(\-5\) \+ Int64\(\-67\) \+ Int64\(15\) / count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(59\) \* Int64\(66\) / Int64\(\-80\) WHEN Int64\(78\) / Int64\(39\) \* Int64\(67\) THEN NULL WHEN count\(Int64\(1\)\) AS count\(\*\) / Int64\(71\) THEN Int64\(8\) END\) \* Int64\(\-39\) \+ Int64\(21\) \- Int64\(\-1\) \* Int64\(64\) 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 - CASE 56 WHEN + - 5 + + - 67 + 15 / COUNT ( * ) THEN 59 * + + 66 / + - 80 WHEN + 78 / 39 * + 67 THEN NULL WHEN COUNT ( * ) / 71 THEN 8 END * - 39 + + + 21 - - 1 * 64 col0, COUNT ( * ) AS col0 query I rowsort label-4599 @@ -24534,7 +24534,7 @@ SELECT COUNT ( * ), - COALESCE ( MIN ( - 82 ), + 75 * + 89, 32 * + 49 + - 11 * C # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col1" at position 0 and "Int64\(\-87\) / 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\(6\) AS col1" at position 0 and "Int64\(\-87\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 6 AS col1, - 87 / COUNT ( * ) AS col1 query II rowsort @@ -32372,7 +32372,7 @@ SELECT ALL - - 72 / - - CASE 65 WHEN 12 THEN NULL ELSE - - 30 * + COUNT ( * ) + # Datafusion - Datafusion expected results: # Datafusion - Expected - -401 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) \* Int64\(33\) \+ Int64\(\-39\) \+ count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) 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 "Int64\(\-11\) \* Int64\(33\) \+ Int64\(\-39\) \+ count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 11 * 33 + + - 39 + + COUNT ( * ) * + COUNT ( * ) AS col0, + 82 AS col0 query I rowsort label-6155 @@ -41871,7 +41871,7 @@ SELECT ALL - 38 + + 56 - 39 AS col0, 54 # 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 "nullif\(Int64\(78\), Int64\(\-10\)\) AS col2" at position 0 and "Int64\(40\) \* 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\(78\), Int64\(\-10\)\) AS col2" at position 0 and "Int64\(40\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + NULLIF ( 78, - 10 ) AS col2, + 40 * + COUNT ( * ) col2 query I rowsort @@ -42950,7 +42950,7 @@ SELECT ALL - SUM ( DISTINCT - 31 ) 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 "Int64\(18\) \- \(\- Int64\(\-40\)\) \- 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\(18\) \- \(\- Int64\(\-40\)\) \- 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 18 - - - 40 - COUNT ( * ) AS col0, + COUNT ( * ) AS col0 # Datafusion - Types were automatically converted from: @@ -44855,7 +44855,7 @@ NULL # Datafusion - Expected - -2 # Datafusion - Expected - -2160 # Datafusion - Expected - 109 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) AS col2" at position 0 and "Int64\(\-30\) \* 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\(\-2\) AS col2" at position 0 and "Int64\(\-30\) \* Int64\(72\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 2 col2, - 30 * + + 72 * COUNT ( * ) AS col2, 74 + 35 AS col2 query I rowsort label-8533 @@ -48304,7 +48304,7 @@ SELECT ALL - + 86 * + - 41 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col1" at position 0 and "Int64\(\-2\) \* 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\(96\) AS col1" at position 0 and "Int64\(\-2\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 96 AS col1, - 2 * + + COUNT ( * ) AS col1 query II rowsort @@ -52548,7 +52548,7 @@ SELECT ALL 2 * + 74 + + + 22 AS col2 # Datafusion - Expected - 1 # Datafusion - Expected - 162 # Datafusion - Expected - 1 -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\) \* Int64\(25\) \+ 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\(\*\) )?AS col2" at position 0 and "Int64\(10\) \* Int64\(25\) \+ Int64\(\-88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, 10 * + 25 + - 88 AS col2, + COUNT ( * ) query I rowsort diff --git a/data/sqlite/random/expr/slt_good_95.slt b/data/sqlite/random/expr/slt_good_95.slt index adad4cc..c3aa6ee 100644 --- a/data/sqlite/random/expr/slt_good_95.slt +++ b/data/sqlite/random/expr/slt_good_95.slt @@ -1360,7 +1360,7 @@ SELECT 73 * - - ( - - 92 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) 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\(26\) 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 26 col1, COUNT ( * ) AS col1 query II rowsort @@ -2407,7 +2407,7 @@ SELECT DISTINCT + COUNT ( * ) * - - SUM ( - - 86 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -26 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(3\) AS col2" at position 0 and "Int64\(30\) \+ 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\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(3\) AS col2" at position 0 and "Int64\(30\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 29 * + + COUNT ( * ) + + 3 AS col2, + 30 + + COUNT ( * ) AS col2 query II rowsort label-455 @@ -3928,7 +3928,7 @@ SELECT ALL + COUNT ( * ) * + 51 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5896 # Datafusion - Expected - 1067 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \* Int64\(88\) AS col0" at position 0 and "Int64\(\-11\) \* Int64\(\-97\) \* 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\(67\) \* Int64\(88\) AS col0" at position 0 and "Int64\(\-11\) \* Int64\(\-97\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 67 * 88 AS col0, - 11 * - 97 * + COUNT ( * ) AS col0 query I rowsort @@ -5474,7 +5474,7 @@ SELECT + 79 + - 24 # Datafusion - Datafusion expected results: # Datafusion - Expected - -110154 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) \* Int64\(26\) \+ Int64\(99\) \* Int64\(55\) \* Int64\(\-20\) \- \(\- 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 "Int64\(\-47\) \* Int64\(26\) \+ Int64\(99\) \* Int64\(55\) \* Int64\(\-20\) \- \(\- 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 - 47 * 26 + + 99 * 55 * - 20 - - - 32 AS col0, COUNT ( * ) AS col0 query I rowsort label-1040 @@ -13716,7 +13716,7 @@ SELECT CAST ( + 78 AS INTEGER ) # 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 "Int64\(23\) \+ Int64\(\-71\) \- Int64\(30\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "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\(23\) \+ Int64\(\-71\) \- Int64\(30\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(\-40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 23 + - 71 - 30 * + + COUNT ( * ) AS col1, - 40 AS col1 query I rowsort label-2613 @@ -14138,7 +14138,7 @@ SELECT + 54 / - + 83 * + - 98 AS col0 # Datafusion - Expected - 3120 # Datafusion - Expected - 1 # Datafusion - Expected - 12 -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\(\-12\)\) 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\(\-12\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 60 * 52, COUNT ( * ) AS col0, - - 12 AS col0 query I rowsort @@ -14273,7 +14273,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) 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\(87\) 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 + 87 col1, COUNT ( * ) AS col1 query I rowsort label-2719 @@ -15892,7 +15892,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -41 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) 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\(\-41\) 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 - 41 AS col1, COUNT ( * ) AS col1 query I rowsort label-3033 @@ -16805,7 +16805,7 @@ SELECT + 0 / - COUNT ( - 93 ) - + + 55 + + 94 + + NULLIF ( + - NULLIF ( + SUM ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \* count\(Int64\(1\)\) AS count\(\*\) 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\(69\) \* count\(Int64\(1\)\) (AS count\(\*\) )?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 69 * COUNT ( * ) AS col0, + 68 AS col0 query I rowsort label-3207 @@ -17902,7 +17902,7 @@ SELECT ALL - 32 * 86 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1330 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) \* Int64\(21\) \- Int64\(\-91\) 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\(59\) \* Int64\(21\) \- Int64\(\-91\) 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 59 * 21 - - 91 AS col2, COUNT ( * ) AS col2 query I rowsort label-3415 @@ -28066,7 +28066,7 @@ SELECT - 60 + COUNT ( * ) - + NULLIF ( + 85, + 78 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 6035 -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\(71\) \* 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(71\) \* Int64\(85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col1, 71 * + 85 AS col1 query I rowsort label-5354 @@ -28154,7 +28154,7 @@ SELECT CAST ( + + 78 AS INTEGER ) * - MAX ( ALL - + 63 ) + + COUNT ( * ) - NULLI # 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 "Int64\(81\) / Int64\(\-53\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-52\) / 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(81\) / Int64\(\-53\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-52\) / Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) col0, 81 / - 53 + - ( - COUNT ( * ) ) * - 52 / + 30 AS col0 query I rowsort label-5370 @@ -28485,7 +28485,7 @@ SELECT SUM ( ALL - 13 ) AS col1 # 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 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) col0, 57 AS col0 query I rowsort label-5433 @@ -28818,7 +28818,7 @@ SELECT + + ( - 67 ) / - + 87 + - 10 - + ( 56 ) + + COUNT ( 8 ) + - 32 / + 78 + + # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -147 -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\(Int64\(\-97\)\) \+ 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\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "sum\(Int64\(\-97\)\) \+ Int64\(\-50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, SUM ( - 97 ) + - 50 AS col2 query I rowsort @@ -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 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\. 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 @@ -30955,7 +30955,7 @@ SELECT ALL - 81 - + - 9 / + 20 AS col1 # 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 "min\(Int64\(\-49\)\) 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 "min\(Int64\(\-49\)\) 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 + MIN ( - 49 ) col1, COUNT ( * ) AS col1 query I rowsort label-5902 @@ -31622,7 +31622,7 @@ SELECT - 30 - 3 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 "count\(\(\- coalesce\(Int64\(\-4\), Int64\(\-81\) \- Int64\(87\)\)\)\) \+ 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "count\(\(\- coalesce\(Int64\(\-4\), Int64\(\-81\) \- Int64\(87\)\)\)\) \+ Int64\(\-68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col0, COUNT ( ALL - COALESCE ( + - 4, - 81 - + + 87 ) ) + - 68 AS col0 query II rowsort @@ -32238,7 +32238,7 @@ SELECT 22 * - 21 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 "Int64\(\-81\) \* 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(\-81\) \* Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, - 81 * + 0 col2 query I rowsort label-6144 @@ -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 Int32\)\) \+ 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 @@ -34710,7 +34710,7 @@ SELECT 88 * + 33 AS col2 # 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 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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 COUNT ( * ) AS col2, 89 AS col2 query I rowsort label-6622 @@ -36928,7 +36928,7 @@ SELECT + COALESCE ( + 82, - ( + 98 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1702 -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\(37\) \* 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\(\*\) )?AS col0" at position 0 and "Int64\(37\) \* Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col0, + 37 * + + 46 col0 query II rowsort label-7042 @@ -37280,7 +37280,7 @@ SELECT ALL - 50 * - - 62 # 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 "count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, 13 AS col0 query II rowsort @@ -39366,7 +39366,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1769 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \* Int64\(29\) 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\(61\) \* Int64\(29\) 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 + 61 * + + 29 AS col1, + COUNT ( * ) AS col1 query I rowsort label-7506 @@ -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 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\. 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 @@ -40274,7 +40274,7 @@ SELECT 83 * COALESCE ( - 72, + + 28, - 34 * 79 + + + 57 ) # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col0, + COUNT ( * ) AS col0 query II rowsort @@ -40420,7 +40420,7 @@ SELECT ALL 39 / + + 85 * + + 49 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 46 -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\(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\(\*\) )?AS col0" at position 0 and "Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col0, 46 AS col0 query II rowsort label-7706 @@ -44214,7 +44214,7 @@ SELECT 64 + + CAST ( + 27 AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 46 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "\(\- Int64\(46\)\) / \(\- 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, - ( + 46 ) / - COUNT ( * ) AS col0 query I rowsort label-8431 @@ -44311,7 +44311,7 @@ SELECT - 23 * 81 * - 93 # 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 "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 "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 COUNT ( * ) AS col1, 20 AS col1 query I rowsort label-8450 @@ -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 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\. 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 @@ -46454,7 +46454,7 @@ SELECT - COUNT ( - 9 ) + + - 42 - - 89 AS col0, - 10 + + 11 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \+ Int64\(\-25\) 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\(88\) \+ Int64\(\-25\) 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 88 + - 25 AS col0, + COUNT ( * ) AS col0 query I rowsort @@ -47387,7 +47387,7 @@ SELECT ALL ( 85 ) * + + CAST ( + 16 AS INTEGER ) * - - 6 + 93 # 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\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- nullif\(Int64\(\-94\), \(\- sum\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "\(\- nullif\(Int64\(\-94\), \(\- sum\(Int64\(60\)\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col2, - NULLIF ( - 94, - SUM ( ALL + + 60 ) ) AS col2 query I rowsort @@ -48197,7 +48197,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -69 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-69\)\)\) 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\(\-69\)\)\) 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 - ( - - 69 ) AS col2, COUNT ( * ) AS col2 query I rowsort @@ -48229,7 +48229,7 @@ SELECT COUNT ( * ) - - ( - 29 ) # 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 "Int64\(29\) 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 "Int64\(29\) 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 ALL 29 AS col1, COUNT ( * ) * COUNT ( * ) AS col1 query I rowsort label-9196 @@ -50545,7 +50545,7 @@ SELECT DISTINCT CAST ( CAST ( 65 AS INTEGER ) AS INTEGER ) * + - 22 - - 32 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 254 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \* coalesce\(Int64\(18\), \(\- Int64\(99\)\)\) \+ Int64\(92\) 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\(9\) \* coalesce\(Int64\(18\), \(\- Int64\(99\)\)\) \+ Int64\(92\) 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 + 9 * + COALESCE ( 18, + - ( + 99 ) ) + + 92 col2, COUNT ( * ) AS col2 query I rowsort label-9640 diff --git a/data/sqlite/random/expr/slt_good_96.slt b/data/sqlite/random/expr/slt_good_96.slt index f4bf651..71eea5d 100644 --- a/data/sqlite/random/expr/slt_good_96.slt +++ b/data/sqlite/random/expr/slt_good_96.slt @@ -410,7 +410,7 @@ SELECT - 59 col2, 45 # 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 "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-80\) \+ 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(\-80\) \+ Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COUNT ( * ) col2, - 80 + 52 AS col2 query I rowsort label-73 @@ -2635,7 +2635,7 @@ SELECT 87 * - 88 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 "sum\(DISTINCT Int64\(90\)\) / Int64\(4\) 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\(90\)\) / Int64\(4\) 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 ( DISTINCT 90 ) / 4 AS col1, COUNT ( * ) AS col1 query I rowsort @@ -6285,7 +6285,7 @@ SELECT CAST ( AVG ( - 73 ) AS INTEGER ) / COUNT ( * ) * 84 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -60689 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-56\) \* Int64\(31\) \* Int64\(35\) \+ \(\- Int64\(\-71\)\) 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\(\-56\) \* Int64\(31\) \* Int64\(35\) \+ \(\- Int64\(\-71\)\) 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 - 56 * + 31 * 35 + - - 71 AS col1, + COUNT ( * ) AS col1 query I rowsort @@ -6424,7 +6424,7 @@ SELECT ALL + 28 * + 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -16 -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\(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 "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 + COUNT ( * ) AS col0, - ( + 16 ) AS col0 query I rowsort label-1223 @@ -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 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\. 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 Int32\) 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 @@ -12408,7 +12408,7 @@ SELECT ( + MAX ( 68 ) ) * - - 98 - + - 50 * - 84 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 69 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 COUNT ( * ) col0, 69 AS col0 query I rowsort @@ -21530,7 +21530,7 @@ SELECT ALL NULLIF ( + + 97, ( + + ( - 90 ) ) ) + 34 / + 99 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - 3099 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \+ Int64\(\-40\) AS col1" at position 0 and "Int64\(67\) \- \(\- Int64\(81\)\) \* Int64\(37\) \+ Int64\(67\) \+ Int64\(43\) \+ 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\(58\) \+ Int64\(\-40\) AS col1" at position 0 and "Int64\(67\) \- \(\- Int64\(81\)\) \* Int64\(37\) \+ Int64\(67\) \+ Int64\(43\) \+ Int64\(\-76\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 58 + - 40 col1, 67 - - + 81 * + 37 + 67 + 43 + + - 76 + + COUNT ( * ) col1 query I rowsort @@ -23893,7 +23893,7 @@ SELECT + 21 * - 10 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -41 -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\(\-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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, COUNT ( * ) * - 41 AS col2 query I rowsort label-4556 @@ -26225,7 +26225,7 @@ SELECT 99 AS col0, COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -1131 -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\(87\) \* \(\- 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 "Int64\(87\) \* \(\- Int64\(13\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, 87 * - + 13 AS col0 query II rowsort label-4998 @@ -27543,7 +27543,7 @@ SELECT 74 * - ( - + 76 ) AS col1 # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 46 AS col0, COUNT ( * ) AS col0 query I rowsort label-5244 @@ -28677,7 +28677,7 @@ SELECT 28 / - COUNT ( * ) AS col0 # 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 "Int64\(45\) 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\(45\) 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 45 AS col1, + COUNT ( * ) AS col1 query I rowsort label-5460 @@ -32043,7 +32043,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \+ count\(Int64\(\-5\)\) / Int64\(\-56\) 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\(8\) \+ count\(Int64\(\-5\)\) / Int64\(\-56\) 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 8 + COUNT ( ALL - 5 ) / - 56 AS col1, COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: @@ -37599,7 +37599,7 @@ SELECT + + 96 * 97 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 "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\(\*\) )?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 ( * ) AS col0, COUNT ( * ) AS col0 query I rowsort @@ -42101,7 +42101,7 @@ SELECT + 18 * 69 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2360 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(58\) \+ Int64\(26\) \* coalesce\(\(\- Int64\(93\)\), Int64\(30\) \- Int64\(16\) \* Int64\(11\)\) 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\(\*\) \* Int64\(58\) \+ Int64\(26\) \* coalesce\(\(\- Int64\(93\)\), Int64\(30\) \- Int64\(16\) \* Int64\(11\)\) 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 ( * ) * 58 + 26 * COALESCE ( - + 93, + 30 - + + 16 * + 11 ) AS col2, + COUNT ( * ) AS col2 query I rowsort label-8013 @@ -44575,7 +44575,7 @@ SELECT DISTINCT + NULLIF ( - 51, - + 4 ) * ( 0 ) - - 6 + 71 * - 63 * + 87 + - 14 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 95 -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 "Int64\(58\) / Int64\(42\) \* \(\- 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\(45\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(58\) / Int64\(42\) \* \(\- Int64\(\-95\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 45 / + COUNT ( * ) AS col0, 58 / 42 * ( - - 95 ) AS col0 query I rowsort @@ -46774,7 +46774,7 @@ SELECT - 42 + - + 10 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(21\)\) 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 "min\(Int64\(21\)\) 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 MIN ( + 21 ) AS col1, COUNT ( * ) AS col1 query I rowsort label-8900 @@ -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 Int32\) 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 @@ -48244,7 +48244,7 @@ SELECT ALL + MIN ( DISTINCT + ( - ( + 65 ) ) ) # 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 col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CASE Int64\(\-29\) WHEN Int64\(13\) \+ \(\- Int64\(\-48\)\) THEN Int64\(72\) 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\(80\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CASE Int64\(\-29\) WHEN Int64\(13\) \+ \(\- Int64\(\-48\)\) THEN Int64\(72\) END\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 80 AS col2, COUNT ( * ) * - CASE - 29 WHEN 13 + - - 48 THEN + + 72 END + + COUNT ( * ) AS col2 query I rowsort label-9180 diff --git a/data/sqlite/random/expr/slt_good_97.slt b/data/sqlite/random/expr/slt_good_97.slt index 0d88425..56a3ea8 100644 --- a/data/sqlite/random/expr/slt_good_97.slt +++ b/data/sqlite/random/expr/slt_good_97.slt @@ -475,7 +475,7 @@ SELECT - 96, 54 col0 # 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\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 COUNT ( * ) AS col2, + 85 AS col2 query I rowsort @@ -1674,7 +1674,7 @@ SELECT + COUNT ( ALL 56 ) + + 72 - + 81 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 1 -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\(\*\) AS col2" at position 1 have the 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\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 78 AS col2, COUNT ( * ) AS col2 query II rowsort label-309 @@ -1759,7 +1759,7 @@ SELECT DISTINCT 82 * 51 + + + 24 * - - 42 * 71 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -64 # Datafusion - Expected - 648 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(54\) \* 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\(\-65\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(54\) \* Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 65 + + + COUNT ( * ) AS col2, 54 * + 12 AS col2 query I rowsort @@ -3508,7 +3508,7 @@ SELECT 82 * + 82 # 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 "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col1, COUNT ( * ) AS col1 query I rowsort label-659 @@ -3846,7 +3846,7 @@ SELECT + 7 * - 8 * + 13 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \- Int64\(0\) 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\(67\) \- Int64\(0\) 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 + 67 - + 0 AS col0, + COUNT ( * ) col0 query I rowsort @@ -4435,7 +4435,7 @@ SELECT + 17 + + - 98 + 49 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 192 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) \+ Int64\(99\) AS col2" at position 0 and "Int64\(61\) \* 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\(93\) \+ Int64\(99\) AS col2" at position 0 and "Int64\(61\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 93 + + 99 col2, 61 * + COUNT ( * ) col2 query I rowsort label-834 @@ -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 Int32\)\) 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 @@ -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 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\. SELECT DISTINCT + + 17 + + + COUNT ( DISTINCT + 46 ) / CAST ( NULL AS INTEGER ) col2, COUNT ( * ) AS col2 query I rowsort @@ -11778,7 +11778,7 @@ SELECT ALL ( + 76 ) / 31 + - + 39 # 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 "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) col1, + 17 AS col1 query I rowsort label-2228 @@ -14702,7 +14702,7 @@ SELECT - 73 + - 48 + 94 * + COUNT ( * ) * + 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 82 -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\) AS col0" at position 1 have the same name\. Consider aliasing \("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\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col0, + 82 AS col0 query I rowsort @@ -14954,7 +14954,7 @@ SELECT ALL 81 / - + 94 AS col2 # 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 "Int64\(\-87\) / Int64\(24\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-5\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(97\) \+ Int64\(\-80\) \- max\(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\(\-87\) / Int64\(24\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(\-5\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(97\) \+ Int64\(\-80\) \- max\(Int64\(\-89\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 87 / 24 * COUNT ( * ) AS col1, - 5 * + COUNT ( * ) / + 97 + - 80 - MAX ( - 89 ) col1 query II rowsort label-2838 @@ -16370,7 +16370,7 @@ SELECT COUNT ( * ) * - 43 # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(31\) 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\(56\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(31\) 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 56 + + COUNT ( * ) * 31 AS col0, COUNT ( * ) AS col0 query II rowsort @@ -20323,7 +20323,7 @@ SELECT MAX ( ALL - - ( + 51 ) ) + - - 28 + - 58 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 163 -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\(73\) \+ 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(73\) \+ Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, 73 + 90 AS col2 query I rowsort label-3859 @@ -20370,7 +20370,7 @@ SELECT 20 + + 69 # Datafusion - Expected - 1 # Datafusion - Expected - 23 # Datafusion - Expected - -43 -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\(DISTINCT Int64\(\-70\)\) \- 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\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "sum\(DISTINCT Int64\(\-70\)\) \- Int64\(\-93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) col2, + SUM ( DISTINCT - 70 ) - - 93 AS col2, - 43 query II rowsort label-3868 @@ -23355,7 +23355,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - -30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \* count\(Int64\(1\)\) AS count\(\*\) 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\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(\-30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 8 * + ( + COUNT ( * ) ) AS col2, - 30 AS col2 query I rowsort label-4442 @@ -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 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\. SELECT + + CAST ( - 15 AS INTEGER ) AS col2, + COUNT ( * ) AS col2 query I rowsort label-5084 @@ -27282,7 +27282,7 @@ SELECT ALL + + CAST ( + 12 AS INTEGER ) + + ( + 45 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(37\) \+ Int64\(27\) 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\(37\) \+ Int64\(27\) 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 ( * ) + 37 + + 27 AS col1, + COUNT ( * ) AS col1 query I rowsort label-5184 @@ -28748,7 +28748,7 @@ SELECT - MAX ( DISTINCT + + 93 ) + 35 * 73 AS col0 # 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 col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* CASE Int64\(41\) WHEN Int64\(\-77\) \+ Int64\(\-13\) \- Int64\(48\) THEN Int64\(36\) WHEN Int64\(97\) THEN NULL END \+ \(\- Int64\(23\)\) \+ Int64\(\-30\) \+ 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\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* CASE Int64\(41\) WHEN Int64\(\-77\) \+ Int64\(\-13\) \- Int64\(48\) THEN Int64\(36\) WHEN Int64\(97\) THEN NULL END \+ \(\- Int64\(23\)\) \+ Int64\(\-30\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 7 AS col2, COUNT ( * ) * + CASE 41 WHEN - 77 + - 13 - 48 THEN 36 WHEN + 97 THEN NULL END + - + 23 + - 30 + + COUNT ( * ) AS col2 query I rowsort label-5459 @@ -29024,7 +29024,7 @@ NULL # 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 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(\-53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( + COUNT ( * ) ) AS col2, - 53 AS col2 query II rowsort @@ -29280,7 +29280,7 @@ SELECT 87 * - + ( - 33 ) # 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 "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 "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, COUNT ( * ) AS col0 query I rowsort @@ -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 Int32\) 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 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\. SELECT ALL + COUNT ( ALL + + 92 ) AS col0, + 36 * - CAST ( NULL AS INTEGER ) / - 9 * 72 * - - COUNT ( * ) - - 50 + + COUNT ( * ) AS col0 query I rowsort label-6365 @@ -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 Int32\) \* 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 @@ -44817,7 +44817,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) 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\(21\) 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 21 AS col1, COUNT ( * ) AS col1 query I rowsort label-8510 @@ -48990,7 +48990,7 @@ SELECT - 2 AS col1, COUNT ( - 21 ) # 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 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(\-53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, - 53 AS col2 query I rowsort label-9309 @@ -50345,7 +50345,7 @@ SELECT - - 68 * + - 84 # Datafusion - Datafusion expected results: # Datafusion - Expected - -69 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-69\) 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\(\-69\) 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 - 69 AS col2, + COUNT ( * ) AS col2 query I rowsort @@ -52149,7 +52149,7 @@ SELECT ALL - 4 AS col2, - 40 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2412 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \* Int64\(24\) \+ Int64\(84\) 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\(97\) \* Int64\(24\) \+ Int64\(84\) 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 + ( + 97 ) * 24 + + + 84 AS col0, COUNT ( * ) AS col0 query I rowsort label-9923 diff --git a/data/sqlite/random/expr/slt_good_98.slt b/data/sqlite/random/expr/slt_good_98.slt index c913f4a..1f817ad 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 Int32\)\) 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 @@ -11414,7 +11414,7 @@ SELECT ALL + 38 + 5, ( - ( + 98 ) ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -58 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- sum\(DISTINCT Int64\(\-58\)\)\)\) 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\(DISTINCT Int64\(\-58\)\)\)\) 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 - - SUM ( DISTINCT - 58 ) AS col0, + COUNT ( * ) AS col0 query I rowsort label-2205 @@ -13736,7 +13736,7 @@ SELECT + COUNT ( + 24 ) 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 "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\(\*\) )?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 ( * ) AS col1, + COUNT ( * ) AS col1 query I rowsort @@ -16152,7 +16152,7 @@ SELECT ALL - - 87 / + - 83 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 41 -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\(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 "Int64\(41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, 41 AS col1 query I rowsort @@ -17777,7 +17777,7 @@ SELECT ( - + 54 ) # 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 "CAST\(NULL AS Float64\) \+ \(\- count\(Int64\(\-27\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(72\) \* 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 Float64\) \+ \(\- count\(Int64\(\-27\)\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(72\) \* Int64\(\-30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS FLOAT8 ) + + - COUNT ( - 27 ) + + COUNT ( * ) AS col1, 72 * + - 30 AS col1 query I rowsort label-3436 @@ -19449,7 +19449,7 @@ SELECT ALL ( + 91 ) + - 4 * COUNT ( * ) + + + 50 # 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 "count\(Int64\(1\)\) AS count\(\*\) 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, 87 AS col2 query I rowsort @@ -22002,7 +22002,7 @@ SELECT + COALESCE ( - - 81, - 53 ) + - COUNT ( * ) / - + 46 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -21 -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\(\*\) \* 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\(\*\) )?AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col1, COUNT ( * ) * - 21 AS col1 query I rowsort label-4254 @@ -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 Int32\)\) 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 @@ -28844,7 +28844,7 @@ SELECT ALL 33 * - COUNT ( * ) # 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 "Int64\(10\) 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 "Int64\(10\) 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 10 AS col1, COUNT ( * ) * COUNT ( * ) AS col1 query I rowsort label-5578 @@ -31463,7 +31463,7 @@ SELECT ALL - COUNT ( * ) + + - COUNT ( * ) # 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 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\(\*\) )?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 COUNT ( * ) AS col2, + COUNT ( * ) AS col2 query I rowsort @@ -31640,7 +31640,7 @@ SELECT ALL - 64 * ( + NULLIF ( - + 76, + 80 ) ) AS col0 # 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 "\(\- \(\- max\(Int64\(35\)\)\)\) 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\(Int64\(35\)\)\)\) 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 ( ALL + 35 ) AS col1, COUNT ( * ) AS col1 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 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\. SELECT DISTINCT + 1 - - CAST ( + CAST ( 1 AS INTEGER ) AS INTEGER ) AS col1, + COUNT ( * ) col1 query II rowsort @@ -34607,7 +34607,7 @@ SELECT MAX ( DISTINCT + + 39 ) AS col1 # 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 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(\-2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COUNT ( * ) AS col2, - 2 AS col2 query I rowsort @@ -41127,7 +41127,7 @@ SELECT 16 * COUNT ( * ) / - SUM ( - 39 ) - - 21 # 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\(1\) 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\(1\) 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 1 AS col2, + COUNT ( * ) AS col2 query I rowsort @@ -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 Int32\)\), \(\- 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 @@ -46881,7 +46881,7 @@ SELECT - - ( + 43 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) 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\(88\) 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 + 88 AS col1, + COUNT ( * ) col1 query I rowsort label-9077 @@ -48797,7 +48797,7 @@ SELECT DISTINCT CASE - - 33 WHEN 18 * + 21 + - + CAST ( NULL AS INTEGER ) - 0 + # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col1" at position 0 and "Int64\(7\) / 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\(84\) AS col1" at position 0 and "Int64\(7\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 84 AS col1, + 7 / + COUNT ( * ) AS col1 query I rowsort label-9445 diff --git a/data/sqlite/random/expr/slt_good_99.slt b/data/sqlite/random/expr/slt_good_99.slt index 9213a49..cdb8e1d 100644 --- a/data/sqlite/random/expr/slt_good_99.slt +++ b/data/sqlite/random/expr/slt_good_99.slt @@ -2386,7 +2386,7 @@ SELECT + 74 + - 42 col2 # 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 "Int64\(93\) 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\(93\) 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 93 AS col0, COUNT ( * ) col0 query I rowsort label-447 @@ -2408,7 +2408,7 @@ SELECT ALL 36 - + 95 + + + ( 21 ) / - + 25 + + 57 AS col2, - 91 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 48 -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\(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\(\*\) )?AS col0" at position 0 and "Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col0, 48 AS col0 query I rowsort @@ -4100,7 +4100,7 @@ SELECT ALL - + 88 * + - 47 - 50 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 5238 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col0" at position 0 and "Int64\(97\) \* Int64\(54\) / 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\(42\) AS col0" at position 0 and "Int64\(97\) \* Int64\(54\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 42 AS col0, 97 * ( + 54 ) / COUNT ( * ) AS col0 query I rowsort @@ -4369,7 +4369,7 @@ SELECT ALL - 80 * MIN ( - 71 ) + 11 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 4348 -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\(81\) \- Int64\(99\) \- Int64\(\-59\) \* 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(81\) \- Int64\(99\) \- Int64\(\-59\) \* Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, 81 - + 99 - - 59 * 74 AS col1 query I rowsort @@ -5724,7 +5724,7 @@ SELECT ALL 59 * 13 # Datafusion - Expected - -250 # Datafusion - Expected - 44 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) \* \(\- nullif\(Int64\(\-50\), Int64\(\-61\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(85\) \+ 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\(\-5\) \* \(\- nullif\(Int64\(\-50\), Int64\(\-61\)\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(85\) \+ Int64\(\-41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 5 * - NULLIF ( - 50, - 61 ) * + COUNT ( * ) AS col0, 85 + + - 41 AS col0, 30 AS col1 query I rowsort @@ -5890,7 +5890,7 @@ SELECT DISTINCT ( - 16 ) + + CASE - - 88 WHEN ( 91 ) + - 54 - 17 + - 40 * 11 * + # Datafusion - Datafusion expected results: # Datafusion - Expected - 184 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- nullif\(Int64\(\-92\), Int64\(\-97\)\)\) AS col2" at position 0 and "Int64\(1\) \+ Int64\(28\) \- Int64\(79\) / Int64\(74\) \* 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\(\-2\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- nullif\(Int64\(\-92\), Int64\(\-97\)\)\) AS col2" at position 0 and "Int64\(1\) \+ Int64\(28\) \- Int64\(79\) / Int64\(74\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 2 * - + COUNT ( * ) * - NULLIF ( - 92, - 97 ) AS col2, 1 + 28 - + 79 / + 74 * + COUNT ( * ) AS col2 query I rowsort label-1123 @@ -6888,7 +6888,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 2084 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \+ \(\- Int64\(\-99\)\) \* Int64\(21\) / 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 "Int64\(5\) \+ \(\- Int64\(\-99\)\) \* Int64\(21\) / 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 5 + - - 99 * + ( + 21 ) / COUNT ( * ) AS col0, 10 AS col0 query II rowsort label-1310 @@ -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 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\. 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 @@ -7915,7 +7915,7 @@ SELECT ( - COALESCE ( + CASE + 95 WHEN + - 55 + + - SUM ( ALL + 53 ) + + - COUNT # 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\(\-62\) \+ Int64\(39\) 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\(\-62\) \+ Int64\(39\) 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 - 62 + 39 AS col1, COUNT ( * ) col1 query II rowsort label-1504 @@ -8053,7 +8053,7 @@ SELECT NULLIF ( + - COUNT ( * ), - 12 + - 94 ) * + - CAST ( NULL 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\) \+ 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 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\. 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 @@ -8107,7 +8107,7 @@ SELECT 12 * - - 17 AS col2, + COUNT ( ALL - 21 ) + 66 + - + ( + 72 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 # Datafusion - Expected - -85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) \+ count\(Int64\(1\)\) AS count\(\*\) 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\(\-24\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(\-85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 24 + COUNT ( * ) AS col0, - 85 AS col0 query I rowsort label-1540 @@ -10029,7 +10029,7 @@ SELECT ALL NULLIF ( - - 97, + 13 ) - + - 87, 29 AS col2 # Datafusion - Expected - -54 # Datafusion - Expected - 0 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-22\)\) / Int64\(\-83\) AS col2" at position 1 and "Int64\(32\) \+ 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 "\(\- Int64\(\-22\)\) / Int64\(\-83\) AS col2" at position 1 and "Int64\(32\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MAX ( DISTINCT + 82 ) / - + 83 - 54 AS col0, ( - - 22 ) / - 83 AS col2, + + 32 + ( + COUNT ( * ) ) AS col2 query I rowsort label-1905 @@ -11852,7 +11852,7 @@ SELECT 74 + MIN ( - - ( + - 77 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - 301 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \+ Int64\(\-54\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(7\) \* \(\- 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\(81\) \+ Int64\(\-54\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(7\) \* \(\- Int64\(\-43\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 81 + + - 54 + COUNT ( * ) AS col0, + 7 * - - 43 AS col0 query I rowsort @@ -16794,7 +16794,7 @@ SELECT - + 54 - 23 + NULLIF ( + 90, + - SUM ( DISTINCT - 0 ) ) # 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 col1" at position 0 and "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\(\*\) )?AS col1" at position 0 and "Int64\(40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, + 40 AS col1 # Datafusion - Datafusion expected results: @@ -17225,7 +17225,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 68 -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\(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 "count\(Int64\(1\)\) (AS count\(\*\) )?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 COUNT ( * ) AS col1, 93 + - 25 col1 query I 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 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\. 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: @@ -22262,7 +22262,7 @@ SELECT ALL + MAX ( ALL + 55 ) + + 89 * + + 53 AS col2, 6 AS col1 # 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\(\-53\) \+ \(\- coalesce\(Int64\(\-26\), Int64\(\-57\) \* Int64\(52\) \* Int64\(60\)\)\) \+ \(\- Int64\(32\)\) 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\(\-53\) \+ \(\- coalesce\(Int64\(\-26\), Int64\(\-57\) \* Int64\(52\) \* Int64\(60\)\)\) \+ \(\- Int64\(32\)\) 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 - 53 + + ( + - COALESCE ( - 26, - 57 * 52 * 60 ) ) + - ( + 32 ) col0, + 20 * COUNT ( * ) AS col0 query I rowsort label-4236 @@ -26478,7 +26478,7 @@ SELECT - - 48 + 21 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -51 -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\) AS col2" at position 1 have the same name\. Consider aliasing \("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\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, - 51 AS col2 query I rowsort label-5039 @@ -29334,7 +29334,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -14 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) AS col0" at position 0 and "sum\(DISTINCT Int64\(\-57\)\) / count\(Int64\(1\)\) AS count\(\*\) \- Int64\(7\) / 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\(\-14\) AS col0" at position 0 and "sum\(DISTINCT Int64\(\-57\)\) / count\(Int64\(1\)\) AS count\(\*\) \- Int64\(7\) / count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 14 AS col0, SUM ( DISTINCT - 57 ) / COUNT ( * ) - + 7 / COUNT ( * ) AS col0 query I rowsort @@ -30444,7 +30444,7 @@ SELECT - 11 + + 66 + + 16 AS col2 # 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\(24\) \+ Int64\(18\) \+ count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CASE Int64\(23\) WHEN Int64\(\-31\) \* Int64\(61\) \* Int64\(21\) \- Int64\(41\) THEN Int64\(61\) \- Int64\(42\) WHEN Int64\(\-49\) THEN NULL ELSE NULL END \* Int64\(9\) \+ 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\(24\) \+ Int64\(18\) \+ count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "CASE Int64\(23\) WHEN Int64\(\-31\) \* Int64\(61\) \* Int64\(21\) \- Int64\(41\) THEN Int64\(61\) \- Int64\(42\) WHEN Int64\(\-49\) THEN NULL ELSE NULL END \* Int64\(9\) \+ Int64\(\-98\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 24 + 18 + + COUNT ( * ) * + + COUNT ( * ) AS col1, + CASE 23 WHEN - 31 * 61 * + 21 - + 41 THEN + 61 - + 42 WHEN - 49 THEN NULL ELSE NULL END * 9 + - 98 AS col1 query I rowsort label-5797 @@ -41042,7 +41042,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -91 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) \* count\(Int64\(1\)\) AS count\(\*\) 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\(\-91\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 91 * + + COUNT ( * ) AS col1, 38 AS col1 # Datafusion - Types were automatically converted from: @@ -42665,7 +42665,7 @@ SELECT - 12 col2, + 74 - 44 * - 8 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -2325 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \+ Int64\(92\) \- Int64\(\-26\) \+ Int64\(79\) \* \(\- \(\- CASE Int64\(58\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN \(\- avg\(Int64\(79\)\)\) END\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(25\) \* 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\(96\) \+ Int64\(92\) \- Int64\(\-26\) \+ Int64\(79\) \* \(\- \(\- CASE Int64\(58\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN \(\- avg\(Int64\(79\)\)\) END\)\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 0 and "Int64\(25\) \* Int64\(\-93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 96 + 92 - - 26 + + + 79 * - - CASE 58 WHEN - COUNT ( * ) THEN - ( + AVG ( 79 ) ) END * COUNT ( * ) col2, 25 * - 93 AS col2 query I rowsort @@ -43122,7 +43122,7 @@ SELECT ( + 83 ) col1, + 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "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\(\-55\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "Int64\(55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 55 * + + COUNT ( * ) AS col0, 55 AS col0 query I rowsort @@ -44433,7 +44433,7 @@ SELECT ALL + 66 + COUNT ( * ) * - NULLIF ( 30, 59 * 71 ) + - COUNT ( * ) + - - C # Datafusion - Datafusion expected results: # Datafusion - Expected - -66 # Datafusion - Expected - -100 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) AS col2" at position 0 and "Int64\(\-45\) \+ count\(Int64\(57\)\) \+ Int64\(\-58\) \+ \(\- Int64\(9\)\) / Int64\(80\) \- \(\- count\(Int64\(83\)\)\) \+ 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\) AS col2" at position 0 and "Int64\(\-45\) \+ count\(Int64\(57\)\) \+ Int64\(\-58\) \+ \(\- Int64\(9\)\) / Int64\(80\) \- \(\- count\(Int64\(83\)\)\) \+ count\(Int64\(1\)\) (AS count\(\*\) )?AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - 66 AS col2, - 45 + + COUNT ( ALL + 57 ) + - 58 + - + 9 / + + 80 - - COUNT ( ALL + + 83 ) + COUNT ( * ) AS col2 query I rowsort @@ -44753,7 +44753,7 @@ SELECT DISTINCT - 65 * + + 22 * - 64 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 "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\(\*\) )?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 ( * ) AS col0, - COUNT ( * ) AS col0 query I rowsort @@ -50821,7 +50821,7 @@ SELECT ALL - 96 * + - COUNT ( * ) * - 19 # 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 "Int64\(85\) 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\(85\) 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 + 85 AS col1, COUNT ( * ) AS col1 query I rowsort label-9663 @@ -51901,7 +51901,7 @@ SELECT ALL - 77 * 2 + 9 + + COUNT ( * ) + - - 3 + 2 * 13 * SUM ( - ( - 79 ) ) * # 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 "count\(Int64\(67\)\) \* coalesce\(\(\- Int64\(\-73\)\), \(\- nullif\(\(\- nullif\(Int64\(61\), count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(8\) \+ Int64\(\-13\) \+ Int64\(69\) \* Int64\(\-51\)\)\), count\(Int64\(1\)\) AS count\(\*\)\)\)\) \+ 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 "count\(Int64\(67\)\) \* coalesce\(\(\- Int64\(\-73\)\), \(\- nullif\(\(\- nullif\(Int64\(61\), count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(8\) \+ Int64\(\-13\) \+ Int64\(69\) \* Int64\(\-51\)\)\), count\(Int64\(1\)\) AS count\(\*\)\)\)\) \+ 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 DISTINCT + COUNT ( ALL + ( + 67 ) ) * COALESCE ( - - 73, - NULLIF ( - NULLIF ( + 61, COUNT ( * ) + 8 + - 13 + + 69 * + - 51 ), COUNT ( * ) ) ) + + COUNT ( * ) AS col1, + 12 AS col1 query I rowsort label-9870 diff --git a/data/sqlite/random/groupby/slt_good_12.slt b/data/sqlite/random/groupby/slt_good_12.slt index c2d51f2..d16dee0 100644 --- a/data/sqlite/random/groupby/slt_good_12.slt +++ b/data/sqlite/random/groupby/slt_good_12.slt @@ -32524,7 +32524,7 @@ SELECT DISTINCT - 48 + - col1 * + 71 + + - 11 * - 27 FROM tab0 GROUP BY col1 HAV # Datafusion - Expected - -79 # Datafusion - Expected - 149 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 / count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(63\) \+ \(\- \(\- cor0\.col2\)\) / \(\- cor0\.col2\) AS col0" at position 0 and "\(\- cor0\.col2\) \* 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 "cor0\.col2 / count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(63\) \+ \(\- \(\- cor0\.col2\)\) / \(\- cor0\.col2\) AS col0" at position 0 and "\(\- cor0\.col2\) \* count\(Int64\(1\)\) (AS count\(\*\) )?AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + col2 / + COUNT ( * ) + 63 + - ( - col2 ) / - col2 AS col0, - col2 * + COUNT ( * ) AS col0 FROM tab2 AS cor0 GROUP BY col2 # Postgresql - Postgres error: db error: ERROR: column "tab1.col0" must appear in the GROUP BY clause or be used in an aggregate function @@ -34688,7 +34688,7 @@ SELECT - COUNT ( DISTINCT + + ( + + col0 ) ) - + 62 FROM tab0 GROUP BY col0, col # Datafusion - Expected - -30 # Datafusion - Expected - 1 # Datafusion - Expected - -30 -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 Int64\(30\)\)\) \* count\(\(\- \(\- 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\(1\)\) (AS count\(\*\) )?AS col0" at position 0 and "\(\- sum\(DISTINCT Int64\(30\)\)\) \* count\(\(\- \(\- cor0\.col1\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, - SUM ( DISTINCT + + 30 ) * + COUNT ( ALL - - col1 ) col0 FROM tab2 AS cor0 GROUP BY col1 query II rowsort label-5690 @@ -38518,7 +38518,7 @@ SELECT + col0 / - col0 AS col1 FROM tab0 AS cor0 GROUP BY col0 HAVING NULL IS NO # Datafusion - Expected - 50 # Datafusion - Expected - 2 # Datafusion - Expected - 50 -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\(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\(Int64\(1\)\) (AS count\(\*\) )?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 ( * ) col2, + 50 AS col2 FROM tab0 cor0 GROUP BY col1, col1 query I rowsort label-6326 @@ -39636,7 +39636,7 @@ SELECT - COUNT ( * ) AS col1, col0 - + 4 - + 70 * + - CAST ( - - col0 AS FLOAT8 # Datafusion - Expected - 1 # Datafusion - Expected - -83 # 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 "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 "\(\- tab0\.col0\) 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 - col0 AS col2, COUNT ( * ) col2 FROM tab0 GROUP BY col0, col1 query II rowsort label-6510 @@ -50887,7 +50887,7 @@ SELECT - 11 + + col1 FROM tab0 GROUP BY col1, col1 70 # Datafusion - Datafusion expected results: -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\(0\) \* Int64\(\-69\) \* 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 "count\(Int64\(1\)\) (AS count\(\*\) )?AS col1" at position 0 and "Int64\(0\) \* Int64\(\-69\) \* Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, - 0 * + - 69 * + ( + 53 ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL GROUP BY col2 HAVING ( COUNT ( col1 ) ) IS NULL query I rowsort